GDB (xrefs)
tui-io.h
Go to the documentation of this file.
1 /* TUI support I/O functions.
2 
3  Copyright (C) 1998-2018 Free Software Foundation, Inc.
4 
5  Contributed by Hewlett-Packard Company.
6 
7  This file is part of GDB.
8 
9  This program is free software; you can redistribute it and/or modify
10  it under the terms of the GNU General Public License as published by
11  the Free Software Foundation; either version 3 of the License, or
12  (at your option) any later version.
13 
14  This program is distributed in the hope that it will be useful,
15  but WITHOUT ANY WARRANTY; without even the implied warranty of
16  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
17  GNU General Public License for more details.
18 
19  You should have received a copy of the GNU General Public License
20  along with this program. If not, see <http://www.gnu.org/licenses/>. */
21 
22 #ifndef TUI_IO_H
23 #define TUI_IO_H
24 
25 struct ui_out;
26 class cli_ui_out;
27 
28 /* Print the string in the curses command window. */
29 extern void tui_puts (const char *);
30 
31 /* Print LENGTH characters from the buffer pointed to by BUF to the
32  curses command window. */
33 extern void tui_write (const char *buf, size_t length);
34 
35 /* Setup the IO for curses or non-curses mode. */
36 extern void tui_setup_io (int mode);
37 
38 /* Initialize the IO for gdb in curses mode. */
39 extern void tui_initialize_io (void);
40 
41 /* Get a character from the command window. */
42 extern int tui_getc (FILE *);
43 
44 /* Readline callback.
45  Redisplay the command line with its prompt after readline has
46  changed the edited text. */
47 extern void tui_redisplay_readline (void);
48 
49 /* Expand TABs into spaces. */
50 extern char *tui_expand_tabs (const char *, int);
51 
52 extern struct ui_out *tui_out;
54 
55 extern int key_is_start_sequence (int ch);
56 extern int key_is_end_sequence (int ch);
57 extern int key_is_backspace (int ch);
58 extern int key_is_command_char (int ch);
59 
60 #endif
int key_is_command_char(int ch)
int key_is_start_sequence(int ch)
Definition: tui-io.c:50
void tui_puts(const char *)
Definition: tui-io.c:220
int key_is_end_sequence(int ch)
Definition: tui-io.c:56
char * tui_expand_tabs(const char *, int)
Definition: tui-io.c:691
void tui_initialize_io(void)
Definition: tui-io.c:560
void tui_setup_io(int mode)
Definition: tui-io.c:472
void tui_redisplay_readline(void)
Definition: tui-io.c:234
Definition: ui-out.h:77
int tui_getc(FILE *)
Definition: tui-io.c:603
void tui_write(const char *buf, size_t length)
Definition: tui-io.c:206
int key_is_backspace(int ch)
Definition: tui-io.c:62
cli_ui_out * tui_old_uiout
Definition: tui-io.c:118
struct ui_out * tui_out
Definition: tui-io.c:113