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:
5
prompt.c
5
prompt.c
@ -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");
|
||||
|
||||
|
Reference in New Issue
Block a user