diff options
author | Andrés <andmarti@gmail.com> | 2021-05-08 21:39:32 -0300 |
---|---|---|
committer | Andrés <andmarti@gmail.com> | 2021-05-08 21:39:32 -0300 |
commit | 64f0d525c734cffcd512c11c577f8a4fbfc80c36 (patch) | |
tree | a156d5f8b46193019cfafd1b830718b6975d2d63 | |
parent | 4eaa69b2796f8ed87fc7d391496c94a8cfe99248 (diff) |
help page - Clean input_win and input_pad after wgetch(). Do not reset color in input_pad.
-rw-r--r-- | src/help.c | 16 |
1 files changed, 11 insertions, 5 deletions
@@ -171,6 +171,15 @@ void help() { while( ! quit_help_now ) { option = show_lines(); + + // clear input_win and input_pad + wmove(input_win, 0,0); + wclrtobot(input_win); + wrefresh(input_win); + wmove(input_pad, 0, 0); + wclrtoeol(input_pad); + ui_refresh_pad(0); + look_result = -1; switch (option) { @@ -342,15 +351,12 @@ void find_word(char * word, char order) { if (look_result == -1) { sc_info("Pattern not found."); } - wbkgd(input_win, COLOR_PAIR((ucolors[DEFAULT].fg+1) * (COLORS) + ucolors[DEFAULT].bg + 2)); - ui_set_ucolor(input_win, &ucolors[NORMAL], DEFAULT_COLOR); return; } /** - * \brief TODO Document show_lines() - * - * \return gwretch + * \brief show_lines() show text and ask for input from stdin + * \return int - wgetch */ int show_lines() { |