1
0
mirror of https://github.com/Tha14/toxic.git synced 2024-07-03 16:37:45 +02:00

list commands on chat window popup

This commit is contained in:
Jfreegman 2013-08-05 16:34:55 -04:00
parent 6494a4070b
commit 3d0b16c681

3
chat.c
View File

@ -225,11 +225,12 @@ static void chat_onInit(ToxWindow* self) {
scrollok(ctx->history, 1);
ctx->linewin = subwin(self->window, 2, x, y - 3, 0);
print_help(ctx);
}
void print_help(ChatContext* self) {
wattron(self->history, COLOR_PAIR(2) | A_BOLD);
wprintw(self->history, "\nCommands:\n");
wprintw(self->history, "Commands:\n");
wattroff(self->history, A_BOLD);
wprintw(self->history, " /status <message> : Set your status\n");