From b47bc667a254c1b1a8d6b5a635ca73f6c91c2e1a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Christian=20G=C3=B6ttsche?= Date: Mon, 5 Oct 2020 15:14:54 +0200 Subject: Add key to pause process list updates --- IncSet.c | 19 ++++++++++--------- 1 file changed, 10 insertions(+), 9 deletions(-) (limited to 'IncSet.c') diff --git a/IncSet.c b/IncSet.c index 3e3a1b99..9dda3ce1 100644 --- a/IncSet.c +++ b/IncSet.c @@ -95,10 +95,11 @@ static bool search(IncMode* mode, Panel* panel, IncMode_GetPanelValue getPanelVa break; } } - if (found) - FunctionBar_draw(mode->bar, mode->buffer); - else - FunctionBar_drawAttr(mode->bar, mode->buffer, CRT_colors[FAILED_SEARCH]); + + FunctionBar_drawExtra(mode->bar, + mode->buffer, + found ? -1 : CRT_colors[FAILED_SEARCH], + true); return found; } @@ -177,7 +178,7 @@ bool IncSet_handleKey(IncSet* this, int ch, Panel* panel, IncMode_GetPanelValue } this->active = NULL; Panel_setDefaultBar(panel); - FunctionBar_draw(this->defaultBar, NULL); + FunctionBar_draw(this->defaultBar); doSearch = false; } if (doSearch) { @@ -198,15 +199,15 @@ const char* IncSet_getListItemValue(Panel* panel, int i) { void IncSet_activate(IncSet* this, IncType type, Panel* panel) { this->active = &(this->modes[type]); - FunctionBar_draw(this->active->bar, this->active->buffer); + FunctionBar_drawExtra(this->active->bar, this->active->buffer, -1, true); panel->currentBar = this->active->bar; } -void IncSet_drawBar(IncSet* this) { +void IncSet_drawBar(const IncSet* this) { if (this->active) { - FunctionBar_draw(this->active->bar, this->active->buffer); + FunctionBar_drawExtra(this->active->bar, this->active->buffer, -1, true); } else { - FunctionBar_draw(this->defaultBar, NULL); + FunctionBar_draw(this->defaultBar); } } -- cgit v1.2.3