diff options
author | Hisham Muhammad <hisham@gobolinux.org> | 2018-01-27 23:28:37 -0200 |
---|---|---|
committer | Hisham Muhammad <hisham@gobolinux.org> | 2018-02-17 15:30:15 -0200 |
commit | 52b5beb4e47b635712d9832ffe524d17c730f7b8 (patch) | |
tree | feae1d46425f262d1e4df752a26bd3548519d094 /InfoScreen.c | |
parent | df9922a67eb8e02ab4cf1ff8f24b40f14094e699 (diff) |
Move responsibility for cursor placement to Panels
Diffstat (limited to 'InfoScreen.c')
-rw-r--r-- | InfoScreen.c | 7 |
1 files changed, 2 insertions, 5 deletions
diff --git a/InfoScreen.c b/InfoScreen.c index dd5095c7..88dc9df3 100644 --- a/InfoScreen.c +++ b/InfoScreen.c @@ -85,7 +85,7 @@ void InfoScreen_drawTitled(InfoScreen* this, char* fmt, ...) { attrset(CRT_colors[DEFAULT_COLOR]); this->display->needsRedraw = true; Panel_draw(this->display, true); - IncSet_drawBar(this->inc); + IncSet_drawBar(this->inc, CRT_colors[FUNCTION_BAR]); va_end(ap); } @@ -115,10 +115,7 @@ void InfoScreen_run(InfoScreen* this) { Panel_draw(panel, true); - if (this->inc->active) - move(LINES-1, CRT_cursorX); - set_escdelay(25); - int ch = getch(); + int ch = Panel_getCh(panel); if (ch == ERR) { if (As_InfoScreen(this)->onErr) { |