Commit | Line | Data |
---|---|---|
f377b406 | 1 | /* TUI support I/O functions. |
bcdf1568 | 2 | |
32d0add0 | 3 | Copyright (C) 1998-2015 Free Software Foundation, Inc. |
bcdf1568 | 4 | |
f377b406 SC |
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 | |
a9762ec7 | 11 | the Free Software Foundation; either version 3 of the License, or |
f377b406 SC |
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 | |
a9762ec7 | 20 | along with this program. If not, see <http://www.gnu.org/licenses/>. */ |
f377b406 | 21 | |
bcdf1568 AC |
22 | #ifndef TUI_IO_H |
23 | #define TUI_IO_H | |
c906108c | 24 | |
bcdf1568 | 25 | struct ui_out; |
c906108c | 26 | |
a198b876 SC |
27 | /* Print the string in the curses command window. */ |
28 | extern void tui_puts (const char *); | |
c906108c | 29 | |
a198b876 SC |
30 | /* Setup the IO for curses or non-curses mode. */ |
31 | extern void tui_setup_io (int mode); | |
32 | ||
33 | /* Initialize the IO for gdb in curses mode. */ | |
34 | extern void tui_initialize_io (void); | |
35 | ||
36 | /* Get a character from the command window. */ | |
bcdf1568 | 37 | extern int tui_getc (FILE *); |
c906108c | 38 | |
e09d2eba SC |
39 | /* Readline callback. |
40 | Redisplay the command line with its prompt after readline has | |
41 | changed the edited text. */ | |
42 | extern void tui_redisplay_readline (void); | |
43 | ||
312809f8 EZ |
44 | /* Expand TABs into spaces. */ |
45 | extern char *tui_expand_tabs (const char *, int); | |
46 | ||
2b68e2c5 SC |
47 | extern struct ui_out *tui_out; |
48 | extern struct ui_out *tui_old_uiout; | |
c906108c | 49 | |
bcdf1568 AC |
50 | extern int key_is_start_sequence (int ch); |
51 | extern int key_is_end_sequence (int ch); | |
52 | extern int key_is_backspace (int ch); | |
53 | extern int key_is_command_char (int ch); | |
c906108c | 54 | |
c5aa993b | 55 | #endif |