Hi! This patch improves the TUI mode by creating a specific readline keymap that can be installed to bind a single key to a gdb command. The fast key mode is entered when CTRL-X CTRL-O is entered. Then, the keys are bound as follows: c continue d down f finish n next r run s step u up v info locals w where x exit the fast key mode, go back to normal readline+gdb prompt Hitting a single key will execute the gdb command. Other keys temporarily switch the keymap to use the readline+gdb prompt so that a full gdb command can be entered. Once the command is entered (\n) the fast key mode is restored. I'll commit this patch in a few days unless there is some objection. Stephane 2002-08-26 Stephane Carrez * tui.c (tui_commands): Table of single key commands. (tui_rl_command_key): New function to execute gdb command. (tui_rl_command_mode): New function to leave fast key mode temporarily. (tui_rl_next_keymap): New function to enter/leave the fast key mode. (tui_rl_startup_hook): New function to avoid prompt display by readline functions. (tui_enter_key_mode): New function to enter fast key. (tui_leave_key_mode): New function to leave it. (tui_initialize_readline): Create TUI fast key readline map. (tui_enable): Install rl_startup_hook. (tui_disable): Remove it. * tui.h (tui_leave_key_mode): Declare. (tui_enter_key_mode): Declare. (tui_single_key_mode): Declare. * tuiIO.c (tui_after_char_processing_restart_key_mode): New function. (tui_redisplay_readline): Don't display the prompt in fast key mode. (tui_getc): When \n is received, re-enter fast key mode if we left it temporarily.