File src/hstr.c changed (mode: 100644) (index f20ab30..321b32b) |
... |
... |
int print_prompt() |
161 |
161 |
void print_help_label() |
void print_help_label() |
162 |
162 |
{ |
{ |
163 |
163 |
snprintf(screenLine, getmaxx(stdscr), "%s", LABEL_HELP); |
snprintf(screenLine, getmaxx(stdscr), "%s", LABEL_HELP); |
164 |
|
mvprintw(Y_OFFSET_HELP, 0, screenLine); clrtoeol(); |
|
|
164 |
|
mvprintw(Y_OFFSET_HELP, 0, "%s", screenLine); clrtoeol(); |
165 |
165 |
refresh(); |
refresh(); |
166 |
166 |
} |
} |
167 |
167 |
|
|
|
... |
... |
void print_cmd_deleted_label(char *cmd, int occurences) |
172 |
172 |
color_attr_on(COLOR_PAIR(4)); |
color_attr_on(COLOR_PAIR(4)); |
173 |
173 |
color_attr_on(A_BOLD); |
color_attr_on(A_BOLD); |
174 |
174 |
} |
} |
175 |
|
mvprintw(Y_OFFSET_HELP, 0, screenLine); |
|
|
175 |
|
mvprintw(Y_OFFSET_HELP, 0, "%s", screenLine); |
176 |
176 |
if(hicolor) { |
if(hicolor) { |
177 |
177 |
color_attr_off(A_BOLD); |
color_attr_off(A_BOLD); |
178 |
178 |
color_attr_on(COLOR_PAIR(1)); |
color_attr_on(COLOR_PAIR(1)); |
|
... |
... |
void print_history_label(HistoryItems *history) |
198 |
198 |
color_attr_on(A_BOLD); |
color_attr_on(A_BOLD); |
199 |
199 |
} |
} |
200 |
200 |
color_attr_on(A_REVERSE); |
color_attr_on(A_REVERSE); |
201 |
|
mvprintw(Y_OFFSET_HISTORY, 0, screenLine); |
|
|
201 |
|
mvprintw(Y_OFFSET_HISTORY, 0, "%s", screenLine); |
202 |
202 |
color_attr_off(A_REVERSE); |
color_attr_off(A_REVERSE); |
203 |
203 |
if(hicolor) { |
if(hicolor) { |
204 |
204 |
color_attr_off(A_BOLD); |
color_attr_off(A_BOLD); |
|
... |
... |
unsigned make_selection(char *prefix, HistoryItems *history, int maxSelectionCou |
286 |
286 |
void print_selection_row(char *text, int y, int width, char *prefix) |
void print_selection_row(char *text, int y, int width, char *prefix) |
287 |
287 |
{ |
{ |
288 |
288 |
snprintf(screenLine, width, " %s", text); |
snprintf(screenLine, width, " %s", text); |
289 |
|
mvprintw(y, 0, screenLine); clrtoeol(); |
|
|
289 |
|
mvprintw(y, 0, "%s", screenLine); clrtoeol(); |
290 |
290 |
if(prefix && strlen(prefix)>0) { |
if(prefix && strlen(prefix)>0) { |
291 |
291 |
color_attr_on(A_BOLD); |
color_attr_on(A_BOLD); |
292 |
292 |
char *p; |
char *p; |