Automatic date update in version.in
[deliverable/binutils-gdb.git] / gdb / tui / tui-io.h
... / ...
CommitLineData
1/* TUI support I/O functions.
2
3 Copyright (C) 1998-2020 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_TUI_IO_H
23#define TUI_TUI_IO_H
24
25#include "gdb_curses.h"
26
27struct ui_out;
28class cli_ui_out;
29
30/* Print the string in the curses command window. */
31extern void tui_puts (const char *, WINDOW * = nullptr);
32
33/* Print LENGTH characters from the buffer pointed to by BUF to the
34 curses command window. */
35extern void tui_write (const char *buf, size_t length);
36
37/* Setup the IO for curses or non-curses mode. */
38extern void tui_setup_io (int mode);
39
40/* Initialize the IO for gdb in curses mode. */
41extern void tui_initialize_io (void);
42
43/* Readline callback.
44 Redisplay the command line with its prompt after readline has
45 changed the edited text. */
46extern void tui_redisplay_readline (void);
47
48/* Expand TABs into spaces. */
49extern gdb::unique_xmalloc_ptr<char> tui_expand_tabs (const char *);
50
51/* Enter/leave reverse video mode. */
52extern void tui_set_reverse_mode (WINDOW *w, bool reverse);
53
54/* Apply STYLE to the window. */
55extern void tui_apply_style (WINDOW *w, ui_file_style style);
56
57extern struct ui_out *tui_out;
58extern cli_ui_out *tui_old_uiout;
59
60#endif /* TUI_TUI_IO_H */
This page took 0.022676 seconds and 4 git commands to generate.