1
0
mirror of https://github.com/Tha14/toxic.git synced 2024-11-23 01:43:01 +01: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); scrollok(ctx->history, 1);
ctx->linewin = subwin(self->window, 2, x, y - 3, 0); ctx->linewin = subwin(self->window, 2, x, y - 3, 0);
print_help(ctx);
} }
void print_help(ChatContext* self) { void print_help(ChatContext* self) {
wattron(self->history, COLOR_PAIR(2) | A_BOLD); wattron(self->history, COLOR_PAIR(2) | A_BOLD);
wprintw(self->history, "\nCommands:\n"); wprintw(self->history, "Commands:\n");
wattroff(self->history, A_BOLD); wattroff(self->history, A_BOLD);
wprintw(self->history, " /status <message> : Set your status\n"); wprintw(self->history, " /status <message> : Set your status\n");