1
0
mirror of https://github.com/Tha14/toxic.git synced 2025-07-15 16:06:42 +02:00

put help message in chatwindow box when in scroll mode

This commit is contained in:
Jfreegman
2014-03-27 05:08:48 -04:00
parent bd5453002e
commit 1b3c40b539
4 changed files with 41 additions and 23 deletions

View File

@@ -392,6 +392,17 @@ void line_info_onKey(ToxWindow *self, wint_t key)
}
}
void line_info_onDraw(ToxWindow *self)
{
ChatContext *ctx = self->chatwin;
wattron(ctx->linewin, A_BOLD | COLOR_PAIR(BLUE));
mvwprintw(ctx->linewin, 1, 0, "Scroll mode:\n");
wattroff(ctx->linewin, A_BOLD | COLOR_PAIR(BLUE));
mvwprintw(ctx->linewin, 1, 13, "Use up/down arrows, page up/page down, and home/end to navigate.\n"
" ESC to exit.\n");
}
void line_info_clear(struct history *hst)
{
hst->line_start = hst->line_end;