Automatic Copyright Year update after running gdb/copyright.py
[deliverable/binutils-gdb.git] / gdb / tui / tui-io.h
CommitLineData
f377b406 1/* TUI support I/O functions.
bcdf1568 2
88b9d363 3 Copyright (C) 1998-2022 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
1a5c2598
TT
22#ifndef TUI_TUI_IO_H
23#define TUI_TUI_IO_H
c906108c 24
62f29fda
TT
25#include "gdb_curses.h"
26
bcdf1568 27struct ui_out;
112e8700 28class cli_ui_out;
c906108c 29
9e820dec
TT
30/* Print the string in the given curses window. If no window is
31 provided, the command window is used. */
62f29fda 32extern void tui_puts (const char *, WINDOW * = nullptr);
c906108c 33
9753a2f6
PA
34/* Print LENGTH characters from the buffer pointed to by BUF to the
35 curses command window. */
36extern void tui_write (const char *buf, size_t length);
37
a198b876
SC
38/* Setup the IO for curses or non-curses mode. */
39extern void tui_setup_io (int mode);
40
41/* Initialize the IO for gdb in curses mode. */
42extern void tui_initialize_io (void);
43
e09d2eba
SC
44/* Readline callback.
45 Redisplay the command line with its prompt after readline has
46 changed the edited text. */
47extern void tui_redisplay_readline (void);
48
55c10aca
PA
49/* Enter/leave reverse video mode. */
50extern void tui_set_reverse_mode (WINDOW *w, bool reverse);
51
a2a7af0c
TT
52/* Apply STYLE to the window. */
53extern void tui_apply_style (WINDOW *w, ui_file_style style);
54
2b68e2c5 55extern struct ui_out *tui_out;
112e8700 56extern cli_ui_out *tui_old_uiout;
c906108c 57
cd074e04
AB
58/* This should be called when the user has entered a command line in tui
59 mode. Inject the newline into the output and move the cursor to the
60 next line. */
61extern void tui_inject_newline_into_command_window ();
62
1a5c2598 63#endif /* TUI_TUI_IO_H */
This page took 2.682078 seconds and 4 git commands to generate.