diff options
author | Stephane Carrez <stcarrez@nerim.fr> | 2002-09-13 20:06:56 +0000 |
---|---|---|
committer | Stephane Carrez <stcarrez@nerim.fr> | 2002-09-13 20:06:56 +0000 |
commit | e3da6fc58ac2eff07799864d80fce8aaf8e36b5d (patch) | |
tree | 115934f89b6bc05146d5f3b4df942090876b36e1 /gdb/tui/tuiIO.c | |
parent | bd9b0abf4e57f81d582fa5d5250634f99caeaa49 (diff) | |
download | gdb-e3da6fc58ac2eff07799864d80fce8aaf8e36b5d.zip gdb-e3da6fc58ac2eff07799864d80fce8aaf8e36b5d.tar.gz gdb-e3da6fc58ac2eff07799864d80fce8aaf8e36b5d.tar.bz2 |
* tui.c (tui_rl_switch_mode): Remove unecessary TUI switch printfs.
(tui_initialize_readline): Allow to use space to leave SingleKey
to enter one gdb command.
(tui_enable): Restore the TUI keymap when we are back to TUI.
(tui_disable): Restore normal keymap when leaving TUI.
* tuiIO.c (tui_redisplay_readline): Restore the SingleKey mode
when the buffer becomes empty and we are in tui_one_command_mode.
Diffstat (limited to 'gdb/tui/tuiIO.c')
-rw-r--r-- | gdb/tui/tuiIO.c | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/gdb/tui/tuiIO.c b/gdb/tui/tuiIO.c index 2e3d79f..f70df8f 100644 --- a/gdb/tui/tuiIO.c +++ b/gdb/tui/tuiIO.c @@ -185,7 +185,12 @@ tui_redisplay_readline (void) WINDOW *w; char *prompt; int start_line; - + + /* Detect when we temporarily left SingleKey and now the readline + edit buffer is empty, automatically restore the SingleKey mode. */ + if (tui_current_key_mode == tui_one_command_mode && rl_end == 0) + tui_set_key_mode (tui_single_key_mode); + if (tui_current_key_mode == tui_single_key_mode) prompt = ""; else |