diff options
author | Andrés <andmarti@gmail.com> | 2021-03-14 00:13:15 -0300 |
---|---|---|
committer | Andrés <andmarti@gmail.com> | 2021-03-14 00:13:15 -0300 |
commit | c4372c31ce07f6fce8b41486f6b8ba2956965a96 (patch) | |
tree | 40e0708d728110e540a7482168df02292b9ddec2 /src/help.c | |
parent | 34705e4a01bb5c902f9d6bd8d6fc3e528d68e0a1 (diff) |
Fixed SIGWINCH when input bar is at bottom
Added new HEADINGS_ODD, GRID_PAIR, and GRID_ODD types.
Can be used like this:
DEFINE_COLOR "cornsilk" 255 248 220
DEFINE_COLOR "wheat" 245 222 179
DEFINE_COLOR "dark_khaki" 189 183 107
DEFINE_COLOR "gray50" 127 127 127
DEFINE_COLOR "gray80" 204 204 204
DEFINE_COLOR "gray90" 229 229 229
color "type=GRID_PAIR fg=dark_khaki bg=cornsilk"
color "type=GRID_ODD fg=dark_khaki bg=wheat"
color "type=HEADINGS fg=dark_khaki bg=gray50"
color "type=HEADINGS_ODD fg=gray50 bg=gray90"
Diffstat (limited to 'src/help.c')
-rw-r--r-- | src/help.c | 14 |
1 files changed, 7 insertions, 7 deletions
@@ -156,7 +156,7 @@ void help() { wclrtobot(input_win); wrefresh(input_win); - ui_set_ucolor(main_win, &ucolors[NORMAL]); + ui_set_ucolor(main_win, &ucolors[NORMAL], DEFAULT_COLOR); wtimeout(input_win, -1); noecho(); curs_set(0); @@ -337,7 +337,7 @@ void find_word(char * word, char order) { if (look_result == -1) { sc_info("Pattern not found."); } - ui_set_ucolor(input_win, &ucolors[NORMAL]); + ui_set_ucolor(input_win, &ucolors[NORMAL], DEFAULT_COLOR); return; } @@ -366,8 +366,8 @@ int show_lines() { #ifdef USECOLORS bold && ! key? - ui_set_ucolor(main_win, &ucolors[CELL_SELECTION_SC]) : - ui_set_ucolor(main_win, &ucolors[NORMAL]); + ui_set_ucolor(main_win, &ucolors[CELL_SELECTION_SC], DEFAULT_COLOR) : + ui_set_ucolor(main_win, &ucolors[NORMAL], DEFAULT_COLOR); #endif if (long_help[lineno + delta][i] == '<' || long_help[lineno + delta][i] == '{') { @@ -383,17 +383,17 @@ int show_lines() { if (long_help[lineno + delta][i] == '&') { #ifdef USECOLORS - ui_set_ucolor(main_win, &ucolors[NORMAL]); + ui_set_ucolor(main_win, &ucolors[NORMAL], DEFAULT_COLOR); #endif continue; } else if (look_result != -1 && i >= look_result && i < look_result + strlen(word_looked) ) { #ifdef USECOLORS - ui_set_ucolor(main_win, &ucolors[CELL_SELECTION_SC]); + ui_set_ucolor(main_win, &ucolors[CELL_SELECTION_SC], DEFAULT_COLOR); #endif } else if (key) { #ifdef USECOLORS - ui_set_ucolor(main_win, &ucolors[NUMB]); + ui_set_ucolor(main_win, &ucolors[NUMB], DEFAULT_COLOR); #endif } |