1
0
mirror of https://github.com/Tha14/toxic.git synced 2024-11-12 23:33:03 +01:00

Added a 'clear' function to the prompt

This commit is contained in:
Nominate 2013-08-05 18:33:16 +01:00
parent 805eb0195a
commit 34a8d6ecb9

View File

@ -158,7 +158,9 @@ static void execute(ToxWindow* self, char* cmd) {
break;
}
}
else if(!strcmp(cmd, "clear")) {
wclear(self->window);
}
else if(!strcmp(cmd, "help")) {
print_usage(self);
}
@ -316,7 +318,7 @@ static void print_usage(ToxWindow* self) {
wprintw(self->window, " myid : Print your ID\n");
wprintw(self->window, " quit/exit : Exit program\n");
wprintw(self->window, " help : Print this message again\n");
wprintw(self->window, " clear: : Clear this window\n");
wattron(self->window, A_BOLD);
wprintw(self->window, "TIP: Use the TAB key to navigate through the tabs.\n\n");