OSDN Git Service

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)
commite5513c40917cc9e14bc9523c0e64b4985261ead8
tree7f85b520dface97d1703033c485febeeea6ab50c
parent9981f738e5624efb7688cdcf4314aa27336c995c
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