summaryrefslogtreecommitdiffstats
path: root/InfoScreen.c
diff options
context:
space:
mode:
authorHisham Muhammad <hisham@gobolinux.org>2018-01-27 23:28:37 -0200
committerHisham Muhammad <hisham@gobolinux.org>2018-02-26 20:13:09 -0300
commit1edcfad874e7ed093bd8489a42f7a6f86c19e5c5 (patch)
tree979449ec7745af2b37dce3b873434ccd8e9c2273 /InfoScreen.c
parentd4ea7cd65ccf8551cabb0706167b2c15aad7866d (diff)
Move responsibility for cursor placement to Panels
Diffstat (limited to 'InfoScreen.c')
-rw-r--r--InfoScreen.c8
1 files changed, 2 insertions, 6 deletions
diff --git a/InfoScreen.c b/InfoScreen.c
index fab8daea..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,11 +115,7 @@ void InfoScreen_run(InfoScreen* this) {
Panel_draw(panel, true);
- if (this->inc->active) {
- (void) move(LINES-1, CRT_cursorX);
- }
- set_escdelay(25);
- int ch = getch();
+ int ch = Panel_getCh(panel);
if (ch == ERR) {
if (As_InfoScreen(this)->onErr) {

© 2014-2024 Faster IT GmbH | imprint | privacy policy