From 3d0b16c68189aa70e47cfdd4bb9f962abd757d5d Mon Sep 17 00:00:00 2001 From: Jfreegman Date: Mon, 5 Aug 2013 16:34:55 -0400 Subject: [PATCH] list commands on chat window popup --- chat.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/chat.c b/chat.c index 5d0e14a..175c6b0 100644 --- a/chat.c +++ b/chat.c @@ -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 : Set your status\n");