- struct WinConf winconf;
- winconf.id = (char) test;
- try_fgetc(file, f_name);
- try_fgets(line, linemax + 1, file, f_name);
- winconf.title = try_malloc(strlen(line), f_name);
- memcpy(winconf.title, line, strlen(line) - 1); /* Eliminate newline char */
- winconf.title[strlen(line) - 1] = '\0'; /* char at end of string. */
- try_fgets(line, linemax + 1, file, f_name);
- winconf.height = atoi(line);
- winconf.height_type = (0 >= winconf.height);
- try_fgets(line, linemax + 1, file, f_name);
- winconf.width = atoi(line);
- winconf.width_type = (0 >= winconf.width);
- read_keybindings_from_file(line, linemax, file, &winconf.kb);
- winconf.win = NULL;
- winconf.view = 0;
- winconf.center.y = 0;
- winconf.center.x = 0;
- if (world.winconf_db.ids)