Commit Diff


commit - 172f4d223a6ded46ac9c24c22b7e6f6f98a96b19
commit + d3156eb934103cf1c3498a8908ef62b7dfa1b4d5
blob - 5ef223c3c7a3b499f4f66d719088edd71904722e
blob + e63ee18dbaf0b739916640ae036259c98f734058
--- commands.c
+++ commands.c
@@ -1132,6 +1132,7 @@ static char unsetenvhelp[];
 static char saveenvhelp[];
 static char verbosehelp[];
 static char editinghelp[];
+static char clearhelp[];
 static char shellhelp[];
 static char manhelp[];
 static char interfacehelp[];
@@ -1233,6 +1234,7 @@ struct intlist Intlist[] = {
 	{ "who",	whohelp,				CMPL0 0, 0, int_who, 0 },
 	{ "verbose",	verbosehelp,				CMPL0 0, 0, int_doverbose, 1 },
 	{ "editing",	editinghelp,				CMPL0 0, 0, int_doediting, 1 },
+	{ "clear",	clearhelp,				CMPL0 0, 0, int_clear, 0 },
 	{ "!",		shellhelp,				CMPL0 0, 0, int_shell, 0 },
         { "?",		"Options",				CMPL0 0, 0, int_help, 0 },
 	{ "manual",	manhelp,				CMPL(H) (char **)mantab, sizeof(struct ghs), int_manual, 0 },
@@ -1288,6 +1290,7 @@ struct intlist Bridgelist[] = {
 	{ "who",	whohelp,				CMPL0 0, 0, int_who, 0 },
 	{ "verbose",	verbosehelp,				CMPL0 0, 0, int_doverbose, 1 },
 	{ "editing",	editinghelp,				CMPL0 0, 0, int_doediting, 1 },
+	{ "clear",	clearhelp,				CMPL0 0, 0, int_clear, 0 },
 	{ "!",		shellhelp,				CMPL0 0, 0, int_shell, 0 },
 
 /* Help commands */
@@ -1812,6 +1815,12 @@ int_shell(char *ifname, int ifs, int argc, char **argv
 }
 
 static int
+int_clear(void)
+{
+	clear();
+}
+
+static int
 int_help(void)
 {
 	struct intlist *i; /* pointer to current command */