1
0
mirror of https://github.com/Tha14/toxic.git synced 2025-07-10 09:46:45 +02:00

cursor done better, fixed for chat windows

This commit is contained in:
Jfreegman
2013-08-02 21:36:01 -04:00
parent 2ebd30bdb3
commit 53f7d9af0d
4 changed files with 5 additions and 23 deletions

3
chat.c
View File

@ -106,6 +106,7 @@ static void chat_onKey(ToxWindow* self, int key) {
}
static void chat_onDraw(ToxWindow* self) {
curs_set(1);
int x, y;
ChatContext* ctx = (ChatContext*) self->x;
@ -117,7 +118,7 @@ static void chat_onDraw(ToxWindow* self) {
wclear(ctx->linewin);
mvwhline(ctx->linewin, 0, 0, '_', COLS);
mvwprintw(ctx->linewin, 1, 0, "%s\n", ctx->line);
mvwprintw(self->window, y-1, 0, "%s\n", ctx->line);
wrefresh(self->window);
}