mirror of
https://github.com/Tha14/toxic.git
synced 2024-11-26 15:53:26 +01:00
list commands on chat window popup
This commit is contained in:
parent
6494a4070b
commit
3d0b16c681
3
chat.c
3
chat.c
@ -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");
|
||||||
|
Loading…
Reference in New Issue
Block a user