+-xterm title escape codes. Title strings defineable in config file?
+
-allow setting banners for the internal menus, with the same method
as normal user-defined menus, but only the banner is used from them.
if no such menu is defined, then uses the default banner file.
case ERR:
case 'q': case 'Q':
case '\x1b':
- free_populated_games(games, len);
-#ifdef USE_SHMEM
- shmdt(shm_dg_data);
-#endif
- return;
+ goto leavewatchgame;
case KEY_RIGHT:
case '.':
sortmode_increment(watchcols, &sortmode, 1);
break;
} else selected = idx;
watchgame:
-
+ if (!(idx >= 0 && idx < len && games[idx] && games[idx]->name))
+ goto leavewatchgame;
/* valid choice has been made */
chosen_name = strdup (games[idx]->name);
snprintf (ttyrecname, 130, "%s",
selectedgame = NULL;
}
}
+leavewatchgame:
free_populated_games(games, len);
#ifdef USE_SHMEM
shmdt(shm_dg_data);