summaryrefslogtreecommitdiff
path: root/gdb/tui/tuiWin.c
diff options
context:
space:
mode:
authorStephane Carrez <stcarrez@nerim.fr>2001-07-28 19:30:54 +0000
committerStephane Carrez <stcarrez@nerim.fr>2001-07-28 19:30:54 +0000
commitf58b3b96a9254116f8d14e72dd825ef937c09b74 (patch)
treec7b3316936d4c7ab75e0bc1114107853f4b5cb56 /gdb/tui/tuiWin.c
parent3468ef25067705ed17ef5e0c18155808e1ee41c4 (diff)
downloadgdb-f58b3b96a9254116f8d14e72dd825ef937c09b74.tar.gz
* tuiWin.c (_initialize_tuiWin): Use specific tui prefix for
set/show configuration variables. (show_tui_cmd): New function. (set_tui_cmd): New function.
Diffstat (limited to 'gdb/tui/tuiWin.c')
-rw-r--r--gdb/tui/tuiWin.c39
1 files changed, 29 insertions, 10 deletions
diff --git a/gdb/tui/tuiWin.c b/gdb/tui/tuiWin.c
index 024a29546ac..4523c410eb0 100644
--- a/gdb/tui/tuiWin.c
+++ b/gdb/tui/tuiWin.c
@@ -257,6 +257,15 @@ tui_update_variables ()
return need_redraw;
}
+static void
+set_tui_cmd (char *args, int from_tty)
+{
+}
+
+static void
+show_tui_cmd (char *args, int from_tty)
+{
+}
/*
** _initialize_tuiWin().
@@ -266,14 +275,24 @@ void
_initialize_tuiWin (void)
{
struct cmd_list_element *c;
+ static struct cmd_list_element *tui_setlist;
+ static struct cmd_list_element *tui_showlist;
/* Define the classes of commands.
They will appear in the help list in the reverse of this order. */
-
add_cmd ("tui", class_tui, NO_FUNCTION,
"Text User Interface commands.",
&cmdlist);
+ add_prefix_cmd ("tui", class_tui, set_tui_cmd,
+ "TUI configuration variables",
+ &tui_setlist, "set tui ",
+ 0/*allow-unknown*/, &setlist);
+ add_prefix_cmd ("tui", class_tui, show_tui_cmd,
+ "TUI configuration variables",
+ &tui_showlist, "show tui ",
+ 0/*allow-unknown*/, &showlist);
+
add_com ("refresh", class_tui, _tuiRefreshAll_command,
"Refresh the terminal display.\n");
if (xdb_commands)
@@ -316,18 +335,18 @@ Usage: w <#lines>\n");
/* Define the tui control variables. */
c = add_set_enum_cmd
- ("tui-border-kind", class_tui,
+ ("border-kind", no_class,
tui_border_kind_enums, &tui_border_kind,
"Set the kind of border for TUI windows.\n"
"This variable controls the border of TUI windows:\n"
"space use a white space\n"
"ascii use ascii characters + - | for the border\n"
"acs use the Alternate Character Set\n",
- &setlist);
- add_show_from_set (c, &showlist);
+ &tui_setlist);
+ add_show_from_set (c, &tui_showlist);
c = add_set_enum_cmd
- ("tui-border-mode", class_tui,
+ ("border-mode", no_class,
tui_border_mode_enums, &tui_border_mode,
"Set the attribute mode to use for the TUI window borders.\n"
"This variable controls the attributes to use for the window borders:\n"
@@ -338,11 +357,11 @@ Usage: w <#lines>\n");
"half-standout use half bright and standout mode\n"
"bold use extra bright or bold\n"
"bold-standout use extra bright or bold with standout mode\n",
- &setlist);
- add_show_from_set (c, &showlist);
+ &tui_setlist);
+ add_show_from_set (c, &tui_showlist);
c = add_set_enum_cmd
- ("tui-active-border-mode", class_tui,
+ ("active-border-mode", no_class,
tui_border_mode_enums, &tui_active_border_mode,
"Set the attribute mode to use for the active TUI window border.\n"
"This variable controls the attributes to use for the active window border:\n"
@@ -353,8 +372,8 @@ Usage: w <#lines>\n");
"half-standout use half bright and standout mode\n"
"bold use extra bright or bold\n"
"bold-standout use extra bright or bold with standout mode\n",
- &setlist);
- add_show_from_set (c, &showlist);
+ &tui_setlist);
+ add_show_from_set (c, &tui_showlist);
}