69#include "readline/readline.h"
95 {
'v',
"info locals" },
116 rl_prep_terminal (0);
121 rl_deprep_terminal ();
125 catch (
const gdb_exception &ex)
130 rl_prep_terminal (0);
136 rl_kill_text (0, rl_end);
145 rl_newline (1,
'\n');
217 rl_newline (1,
'\n');
236 return rl_insert (count, key);
259 rl_already_prompted = 1;
283 static bool initialized;
290 Keymap tui_ctlx_keymap;
301#if RL_READLINE_VERSION >= 0x800
305 tui_ctlx_keymap = rl_make_bare_keymap ();
311 rl_generic_bind (ISKMAP,
"\\C-x", (
char*) tui_ctlx_keymap,
tui_keymap);
315 for (i =
' '; i < 0x7f; i++)
357 term = getenv (
"TERM");
391 error (_(
"Cannot enable the TUI when the interpreter is '%s'"),
interp);
396 error (_(
"Cannot enable the TUI when output is not a terminal"));
398 s = newterm (NULL, stdout, stdin);
403 s = newterm ((
char *)
"unknown", stdout, stdin);
407 error (_(
"Cannot enable the TUI: error opening terminal [TERM=%s]"),
413#ifdef HAVE_USE_DEFAULT_COLORS
416 use_default_colors ();
424 cap = tigetstr ((
char *)
"cup");
425 if (cap == NULL || cap == (
char *) -1 || *cap ==
'\0')
429 error (_(
"Cannot enable the TUI: "
430 "terminal doesn't support cursor addressing [TERM=%s]"),
463 clearok (stdscr, TRUE);
523 rl_already_prompted = 0;
525#ifdef NCURSES_MOUSE_VERSION
600 _(
"Enable TUI display mode.\n\
604 _(
"Disable TUI display mode.\n\
610Set tui debugging."), _(
"\
611Show tui debugging."), _(
"\
612When true, tui specific internal debugging is enabled."),
const char * name() const
struct cmd_list_element * showdebuglist
struct cmd_list_element * setdebuglist
struct cmd_list_element * add_cmd(const char *name, enum command_class theclass, const char *doc, struct cmd_list_element **list)
set_show_commands add_setshow_boolean_cmd(const char *name, enum command_class theclass, bool *var, const char *set_doc, const char *show_doc, const char *help_doc, cmd_func_ftype *set_func, show_value_ftype *show_func, struct cmd_list_element **set_list, struct cmd_list_element **show_list)
void exception_print(struct ui_file *file, const struct gdb_exception &e)
frame_info_ptr deprecated_safe_get_selected_frame(void)
void gdb_save_tty_state(void)
struct interp * top_level_interpreter(void)
int gdb_in_secondary_prompt_p(struct ui *ui)
void tui_set_win_focus_to(struct tui_win_info *win_info)
void tui_set_term_width_to(int w)
void tui_set_win_resized_to(bool resized)
struct tui_win_info * tui_win_list[MAX_MAJOR_WINDOWS]
struct tui_win_info * tui_next_win(struct tui_win_info *cur_win)
void tui_set_term_height_to(int h)
struct tui_win_info * tui_win_with_focus(void)
void tui_remove_hooks(void)
void tui_install_hooks(void)
void tui_setup_io(int mode)
void tui_redisplay_readline(void)
void tui_set_initial_layout()
void tui_add_win_to_layout(enum tui_win_type type)
void tui_remove_some_windows()
bool tui_show_frame_info(frame_info_ptr fi)
void tui_show_locator_content()
void tui_rehighlight_all(void)
struct cmd_list_element ** tui_get_cmd_list(void)
void tui_resize_all(void)
void tui_refresh_all_win(void)
bool tui_update_variables()
void tui_update_gdb_sizes(void)
void tui_update_source_windows_with_addr(struct gdbarch *gdbarch, CORE_ADDR addr)
bool tui_get_command_dimension(unsigned int *width, unsigned int *height)
void tui_ensure_readline_initialized()
static int tui_rl_other_window(int count, int key)
static int tui_rl_command_key(int count, int key)
void tui_show_assembly(struct gdbarch *gdbarch, CORE_ADDR addr)
static void tui_enable_command(const char *args, int from_tty)
static void tui_disable_command(const char *args, int from_tty)
static Keymap tui_readline_standard_keymap
static const char * gdb_getenv_term(void)
static int tui_rl_next_keymap(int notused1, int notused2)
enum tui_key_mode tui_current_key_mode
static bool tui_finish_init
static int tui_rl_delete_other_windows(int notused1, int notused2)
bool tui_is_window_visible(enum tui_win_type type)
static void show_tui_debug(struct ui_file *file, int from_tty, struct cmd_list_element *c, const char *value)
static int tui_rl_switch_mode(int notused1, int notused2)
static const struct tui_char_command tui_commands[]
static int tui_rl_command_mode(int count, int key)
void tui_set_key_mode(enum tui_key_mode mode)
static int tui_rl_startup_hook(void)
static int tui_rl_change_windows(int notused1, int notused2)
#define TUI_SCOPED_DEBUG_ENTER_EXIT
void reinitialize_more_filter(void)
void gdb_printf(struct ui_file *stream, const char *format,...)