diff options
author | Jfreegman <Jfreegman@gmail.com> | 2013-08-05 16:34:55 -0400 |
---|---|---|
committer | Jfreegman <Jfreegman@gmail.com> | 2013-08-05 16:34:55 -0400 |
commit | 16a74ffaf991ffed364fce823c1689eb68b26bc9 (patch) | |
tree | c2676495479a8ea8fb2e4f2315ed3175a575eb3d /testing | |
parent | 4b76983a692e0234b220b1c8fee87edb12673be2 (diff) |
list commands on chat window popup
Diffstat (limited to 'testing')
-rw-r--r-- | testing/toxic/chat.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/testing/toxic/chat.c b/testing/toxic/chat.c index 5d0e14ad..175c6b05 100644 --- a/testing/toxic/chat.c +++ b/testing/toxic/chat.c | |||
@@ -225,11 +225,12 @@ static void chat_onInit(ToxWindow* self) { | |||
225 | scrollok(ctx->history, 1); | 225 | scrollok(ctx->history, 1); |
226 | 226 | ||
227 | ctx->linewin = subwin(self->window, 2, x, y - 3, 0); | 227 | ctx->linewin = subwin(self->window, 2, x, y - 3, 0); |
228 | print_help(ctx); | ||
228 | } | 229 | } |
229 | 230 | ||
230 | void print_help(ChatContext* self) { | 231 | void print_help(ChatContext* self) { |
231 | wattron(self->history, COLOR_PAIR(2) | A_BOLD); | 232 | wattron(self->history, COLOR_PAIR(2) | A_BOLD); |
232 | wprintw(self->history, "\nCommands:\n"); | 233 | wprintw(self->history, "Commands:\n"); |
233 | wattroff(self->history, A_BOLD); | 234 | wattroff(self->history, A_BOLD); |
234 | 235 | ||
235 | wprintw(self->history, " /status <message> : Set your status\n"); | 236 | wprintw(self->history, " /status <message> : Set your status\n"); |