]> git.ipfire.org Git - thirdparty/binutils-gdb.git/commit - gdb/tui/tui-io.h
2002-08-31 Stephane Carrez <stcarrez@nerim.fr>
authorStephane Carrez <stcarrez@nerim.fr>
Sat, 31 Aug 2002 12:02:14 +0000 (12:02 +0000)
committerStephane Carrez <stcarrez@nerim.fr>
Sat, 31 Aug 2002 12:02:14 +0000 (12:02 +0000)
commite09d2eba9e1ebda1f5a50fe14e34941c22e09173
tree13671ea7da53fcc70a55eaed71c59580e74e03c7
parentf5ad01299e7a0ae637936bc03108df1e59b3ce42
2002-08-31  Stephane Carrez  <stcarrez@nerim.fr>

* 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 temporarily leave SingleKey.
(tui_rl_next_keymap): New function to enter/leave the SingleKey mode.
(tui_rl_startup_hook): New function to avoid prompt display by
readline functions.
(tui_set_key_mode): New function to set the key mode and install
the readline keymap.
(tui_initialize_readline): Create TUI SingleKey readline map.
(tui_enable): Install rl_startup_hook.
(tui_disable): Remove it.
* tui.h (enum tui_key_mode): Declare.
(tui_set_key_mode, tui_current_key_mode): Declare.
* tuiIO.c (tui_redisplay_readline): Don't display the prompt in
SingleKey mode.
* tuiIO.h (tui_redisplay_readline): Declare.
gdb/tui/ChangeLog
gdb/tui/tui.c
gdb/tui/tui.h
gdb/tui/tuiIO.c
gdb/tui/tuiIO.h