1
0
mirror of https://github.com/rkd77/elinks.git synced 2024-06-25 01:05:37 +00:00

[color] draw background

This commit is contained in:
Witold Filipczyk 2022-10-16 15:26:49 +02:00
parent c086cbe26e
commit f7c44b52fc

View File

@ -621,8 +621,13 @@ void
clear_terminal(struct terminal *term)
{
struct el_box box;
int bgchar = get_opt_int("ui.background_char", NULL);
set_box(&box, 0, 0, term->width, term->height);
draw_box(term, &box, ' ', 0, NULL);
#ifdef CONFIG_UTF8
draw_box(term, &box, bgchar, 0, get_bfu_color(term, "desktop"));
#else
draw_box(term, &box, (unsigned char)bgchar, 0, get_bfu_color(term, "desktop"));
#endif
set_cursor(term, 0, 0, 1);
}