diff options
author | Stephane Carrez <stcarrez@nerim.fr> | 2002-08-31 12:02:14 +0000 |
---|---|---|
committer | Stephane Carrez <stcarrez@nerim.fr> | 2002-08-31 12:02:14 +0000 |
commit | e09d2eba9e1ebda1f5a50fe14e34941c22e09173 (patch) | |
tree | 13671ea7da53fcc70a55eaed71c59580e74e03c7 /gdb/tui/tuiIO.h | |
parent | f5ad01299e7a0ae637936bc03108df1e59b3ce42 (diff) | |
download | gdb-e09d2eba9e1ebda1f5a50fe14e34941c22e09173.zip gdb-e09d2eba9e1ebda1f5a50fe14e34941c22e09173.tar.gz gdb-e09d2eba9e1ebda1f5a50fe14e34941c22e09173.tar.bz2 |
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.
Diffstat (limited to 'gdb/tui/tuiIO.h')
-rw-r--r-- | gdb/tui/tuiIO.h | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/gdb/tui/tuiIO.h b/gdb/tui/tuiIO.h index 2ad92ce..49c26fd 100644 --- a/gdb/tui/tuiIO.h +++ b/gdb/tui/tuiIO.h @@ -1,5 +1,5 @@ /* TUI support I/O functions. - Copyright 1998, 1999, 2000, 2001 Free Software Foundation, Inc. + Copyright 1998, 1999, 2000, 2001, 2002 Free Software Foundation, Inc. Contributed by Hewlett-Packard Company. This file is part of GDB. @@ -36,6 +36,11 @@ extern void tui_initialize_io (void); /* Get a character from the command window. */ extern int tui_getc (FILE*); +/* Readline callback. + Redisplay the command line with its prompt after readline has + changed the edited text. */ +extern void tui_redisplay_readline (void); + #define m_tuiStartNewLine tuiStartNewLines(1) #define m_isStartSequence(ch) (ch == 27) |