commit - 172f4d223a6ded46ac9c24c22b7e6f6f98a96b19
commit + d3156eb934103cf1c3498a8908ef62b7dfa1b4d5
blob - 5ef223c3c7a3b499f4f66d719088edd71904722e
blob + e63ee18dbaf0b739916640ae036259c98f734058
--- commands.c
+++ commands.c
static char saveenvhelp[];
static char verbosehelp[];
static char editinghelp[];
+static char clearhelp[];
static char shellhelp[];
static char manhelp[];
static char interfacehelp[];
{ "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 },
{ "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 */
}
static int
+int_clear(void)
+{
+ clear();
+}
+
+static int
int_help(void)
{
struct intlist *i; /* pointer to current command */