1 /* External/Public TUI Header File.
3 Copyright (C) 1998, 1999, 2000, 2001, 2004, 2007, 2008
4 Free Software Foundation, Inc.
6 Contributed by Hewlett-Packard Company.
8 This file is part of GDB.
10 This program is free software; you can redistribute it and/or modify
11 it under the terms of the GNU General Public License as published by
12 the Free Software Foundation; either version 3 of the License, or
13 (at your option) any later version.
15 This program is distributed in the hope that it will be useful,
16 but WITHOUT ANY WARRANTY; without even the implied warranty of
17 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
18 GNU General Public License for more details.
20 You should have received a copy of the GNU General Public License
21 along with this program. If not, see <http://www.gnu.org/licenses/>. */
28 extern void strcat_to_buf (char *, int, const char *);
30 /* Types of error returns. */
37 /* Types of windows. */
44 /* This must ALWAYS be AFTER the major windows last. */
46 /* Auxillary windows. */
50 /* This must ALWAYS be next to last. */
52 UNDEFINED_WIN /* LAST */
55 /* GENERAL TUI FUNCTIONS */
57 extern CORE_ADDR tui_get_low_disassembly_address (CORE_ADDR,
59 extern void tui_show_assembly (CORE_ADDR addr);
60 extern int tui_is_window_visible (enum tui_win_type type);
61 extern int tui_get_command_dimension (unsigned int *width,
62 unsigned int *height);
64 /* Initialize readline and configure the keymap for the switching
66 extern void tui_initialize_readline (void);
68 /* Enter in the tui mode (curses). */
69 extern void tui_enable (void);
71 /* Leave the tui mode. */
72 extern void tui_disable (void);
76 /* Plain command mode to enter gdb commands. */
79 /* SingleKey mode with some keys bound to gdb commands. */
82 /* Read/edit one command and return to SingleKey after it's
87 extern enum tui_key_mode tui_current_key_mode;
89 /* Change the TUI key mode by installing the appropriate readline
91 extern void tui_set_key_mode (enum tui_key_mode mode);
93 extern int tui_active;
95 extern void tui_show_source (const char *file, int line);
97 extern struct ui_out *tui_out_new (struct ui_file *stream);
100 extern enum tui_status tui_set_layout_for_display_command (const char *);