Merge pull request #338 from Nominate/patch-1

Added a 'clear' function to the prompt
This commit is contained in:
irungentoo 2013-08-05 10:46:59 -07:00
commit dcb10c0264

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");