From a198b876bbcb08749731caf93957d6b90227cd81 Mon Sep 17 00:00:00 2001 From: Stephane Carrez Date: Sat, 21 Jul 2001 19:56:54 +0000 Subject: * 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. --- gdb/tui/tuiIO.h | 21 +++++++++++---------- 1 file changed, 11 insertions(+), 10 deletions(-) (limited to 'gdb/tui/tuiIO.h') 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 -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*/ + -- cgit v1.1