1
0
mirror of https://github.com/Tha14/toxic.git synced 2025-07-05 18:36:44 +02:00

added ability to close and reopen chat windows & other minor changes

This commit is contained in:
Jfreegman
2013-08-05 01:57:29 -04:00
parent 19efe3727a
commit 765a722c90
5 changed files with 150 additions and 75 deletions

View File

@ -254,7 +254,9 @@ static void execute(ToxWindow* self, char* cmd) {
wprintw(self->window, "Message successfully sent.\n");
}
}
else if (!strncmp(cmd, "clear", strlen("clear"))) {
wclear(self->window);
}
else {
wprintw(self->window, "Invalid command.\n");
}
@ -314,6 +316,7 @@ static void print_usage(ToxWindow* self) {
wprintw(self->window, " nick <nickname> : Set your nickname\n");
wprintw(self->window, " accept <number> : Accept friend request\n");
wprintw(self->window, " myid : Print your ID\n");
wprintw(self->window, " clear : Clear the screen\n");
wprintw(self->window, " quit/exit : Exit program\n");
wprintw(self->window, " help : Print this message again\n");