diff options
author | Stephane Carrez <stcarrez@nerim.fr> | 2001-07-21 19:56:54 +0000 |
---|---|---|
committer | Stephane Carrez <stcarrez@nerim.fr> | 2001-07-21 19:56:54 +0000 |
commit | a198b876bbcb08749731caf93957d6b90227cd81 (patch) | |
tree | 79678dd380073a739b4cbda357ab56728dff1778 /gdb/tui/tuiIO.h | |
parent | fea1470223dd1910e80bf0a5a4c60139d4846446 (diff) | |
download | gdb-a198b876bbcb08749731caf93957d6b90227cd81.zip gdb-a198b876bbcb08749731caf93957d6b90227cd81.tar.gz gdb-a198b876bbcb08749731caf93957d6b90227cd81.tar.bz2 |
* tuiIO.h: Remove old declarations and add the new ones.
* tuiIO.c: New management for curses and gdb terminal interactions.
(tui_tputs): Remove.
(tuiTermSetup, tuiTermUnsetup): Remove, must use normal curses ops.
(tuiBufferGetc, tui_vStartNewLines, _updateCommandInfo): Remove.
(tui_owns_terminal): Remove.
(tui_redisplay_readline): New function.
(tui_puts): New function.
(tui_prep_terminal): New function.
(tui_deprep_terminal): New function.
(tui_getc): Rename of tuiGetc, simplify and fix.
(tui_setup_io): New function.
(tui_initialize_io): New function.
Diffstat (limited to 'gdb/tui/tuiIO.h')
-rw-r--r-- | gdb/tui/tuiIO.h | 21 |
1 files changed, 11 insertions, 10 deletions
diff --git a/gdb/tui/tuiIO.h b/gdb/tui/tuiIO.h index 303867c..2ad92ce 100644 --- a/gdb/tui/tuiIO.h +++ b/gdb/tui/tuiIO.h @@ -24,16 +24,17 @@ #include <stdio.h> -extern void tuiPuts_unfiltered (const char *, struct ui_file *); -extern unsigned int tuiGetc (void); -extern unsigned int tuiBufferGetc (void); -extern int tuiRead (int, char *, int); -extern void tuiStartNewLines (int); -extern void tui_vStartNewLines (va_list); -extern unsigned int tui_vwgetch (va_list); -extern void tuiTermSetup (int); -extern void tuiTermUnsetup (int, int); +/* Print the string in the curses command window. */ +extern void tui_puts (const char *); +/* Setup the IO for curses or non-curses mode. */ +extern void tui_setup_io (int mode); + +/* Initialize the IO for gdb in curses mode. */ +extern void tui_initialize_io (void); + +/* Get a character from the command window. */ +extern int tui_getc (FILE*); #define m_tuiStartNewLine tuiStartNewLines(1) @@ -58,4 +59,4 @@ extern void tuiTermUnsetup (int, int); #endif -/*_TUI_IO_H*/ + |