render: urls: blank out keys already pressed

This commit is contained in:
Daniel Eklöf 2021-02-07 10:51:28 +01:00
parent 85f7503aec
commit 5af481cd89
No known key found for this signature in database
GPG key ID: 5BBD4992C116573F

View file

@ -2595,6 +2595,9 @@ render_urls(struct terminal *term)
for (size_t i = 0; i < wcslen(key); i++)
label[i] = towupper(label[i]);
for (size_t i = 0; i < entered_key_len; i++)
label[i] = L' ';
size_t len = wcslen(label);
int cols = wcswidth(label, len);
@ -2636,12 +2639,6 @@ render_urls(struct terminal *term)
render_osd(term, surf, sub_surf, buf, label,
fg, bg, width, height, x_margin, y_margin);
#if 1
/* TODO: somehow highlight the key(s) entered so far */
pixman_color_t color = color_hex_to_pixman(fg);
draw_strikeout(term, buf->pix[0], term->fonts[0], &color, x_margin, y_margin, entered_key_len);
#endif
}
}