70#include "readline/readline.h"
96 {
'v',
"info locals" },
117 rl_prep_terminal (0);
122 rl_deprep_terminal ();
126 catch (
const gdb_exception_forced_quit &ex)
133 catch (
const gdb_exception &ex)
138 rl_prep_terminal (0);
144 rl_kill_text (0, rl_end);
153 rl_newline (1,
'\n');
225 rl_newline (1,
'\n');
244 return rl_insert (count, key);
296 static bool initialized;
303 Keymap tui_ctlx_keymap;
314#if RL_READLINE_VERSION >= 0x800
318 tui_ctlx_keymap = rl_make_bare_keymap ();
324 rl_generic_bind (ISKMAP,
"\\C-x", (
char*) tui_ctlx_keymap,
tui_keymap);
328 for (i =
' '; i < 0x7f; i++)
370 term = getenv (
"TERM");
404 error (_(
"Cannot enable the TUI when the interpreter is '%s'"),
interp);
409 error (_(
"Cannot enable the TUI when output is not a terminal"));
411 s = newterm (NULL, stdout, stdin);
416 s = newterm ((
char *)
"unknown", stdout, stdin);
420 error (_(
"Cannot enable the TUI: error opening terminal [TERM=%s]"),
426#ifdef HAVE_USE_DEFAULT_COLORS
429 use_default_colors ();
437 cap = tigetstr ((
char *)
"cup");
438 if (cap == NULL || cap == (
char *) -1 || *cap ==
'\0')
442 error (_(
"Cannot enable the TUI: "
443 "terminal doesn't support cursor addressing [TERM=%s]"),
476 clearok (stdscr, TRUE);
536 rl_already_prompted = 0;
538#ifdef NCURSES_MOUSE_VERSION
613 _(
"Enable TUI display mode.\n\
617 _(
"Disable TUI display mode.\n\
623Set tui debugging."), _(
"\
624Show tui debugging."), _(
"\
625When 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 set_force_quit_flag()
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_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,...)