mirror of
https://github.com/irungentoo/toxcore.git
synced 2024-03-22 13:30:51 +08:00
Added a 'clear' function to the prompt
This commit is contained in:
parent
dc3fe775fc
commit
39545a92da
|
@ -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");
|
||||
|
|
Loading…
Reference in New Issue
Block a user