1 /* External/Public TUI Header File.
3 Copyright (C) 1998-2014 Free Software Foundation, Inc.
5 Contributed by Hewlett-Packard Company.
7 This file is part of GDB.
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.
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.
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/>. */
27 extern void strcat_to_buf (char *, int, const char *);
29 /* Types of error returns. */
36 /* Types of windows. */
43 /* This must ALWAYS be AFTER the major windows last. */
45 /* Auxillary windows. */
49 /* This must ALWAYS be next to last. */
51 UNDEFINED_WIN
/* LAST */
54 /* GENERAL TUI FUNCTIONS */
56 extern CORE_ADDR
tui_get_low_disassembly_address (struct gdbarch
*,
57 CORE_ADDR
, CORE_ADDR
);
58 extern void tui_show_assembly (struct gdbarch
*gdbarch
, CORE_ADDR addr
);
59 extern int tui_is_window_visible (enum tui_win_type type
);
60 extern int tui_get_command_dimension (unsigned int *width
,
61 unsigned int *height
);
63 /* Initialize readline and configure the keymap for the switching
65 extern void tui_initialize_readline (void);
67 /* True if enabling the TUI is allowed. Example, if the top level
68 interpreter is MI, enabling curses will certainly lose. */
69 extern int tui_allowed_p (void);
71 /* Enter in the tui mode (curses). */
72 extern void tui_enable (void);
74 /* Leave the tui mode. */
75 extern void tui_disable (void);
79 /* Plain command mode to enter gdb commands. */
82 /* SingleKey mode with some keys bound to gdb commands. */
85 /* Read/edit one command and return to SingleKey after it's
90 extern enum tui_key_mode tui_current_key_mode
;
92 /* Change the TUI key mode by installing the appropriate readline
94 extern void tui_set_key_mode (enum tui_key_mode mode
);
96 extern int tui_active
;
98 extern void tui_show_source (const char *fullname
, int line
);
100 extern struct ui_out
*tui_out_new (struct ui_file
*stream
);
103 extern enum tui_status
tui_set_layout_for_display_command (const char *);