mirror of
https://codeberg.org/dnkl/foot.git
synced 2026-04-09 08:21:01 -04:00
term_fill(): change ‘character’ parameter from char -> uint8_t
This commit is contained in:
parent
1b13deff04
commit
23908d9277
3 changed files with 21 additions and 20 deletions
11
csi.c
11
csi.c
|
|
@ -1924,10 +1924,11 @@ csi_dispatch(struct terminal *term, uint8_t final)
|
||||||
}
|
}
|
||||||
|
|
||||||
case 'x': { /* DECFRA */
|
case 'x': { /* DECFRA */
|
||||||
const char c = vt_param_get(term, 0, 0);
|
const uint8_t c = vt_param_get(term, 0, 0);
|
||||||
if (likely((c >= 32 && c < 126) ||
|
|
||||||
(c >= 160 && c <= 255)))
|
if (unlikely(!((c >= 32 && c < 126) || c >= 160)))
|
||||||
{
|
break;
|
||||||
|
|
||||||
int top, left, bottom, right;
|
int top, left, bottom, right;
|
||||||
if (!params_to_rectangular_area(
|
if (!params_to_rectangular_area(
|
||||||
term, 1, &top, &left, &bottom, &right))
|
term, 1, &top, &left, &bottom, &right))
|
||||||
|
|
@ -1943,7 +1944,7 @@ csi_dispatch(struct terminal *term, uint8_t final)
|
||||||
|
|
||||||
for (int r = top; r <= bottom; r++)
|
for (int r = top; r <= bottom; r++)
|
||||||
term_fill(term, r, left, c, right - left + 1, true);
|
term_fill(term, r, left, c, right - left + 1, true);
|
||||||
}
|
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -3511,7 +3511,7 @@ print_spacer(struct terminal *term, int col, int remaining)
|
||||||
* - double width characters not supported
|
* - double width characters not supported
|
||||||
*/
|
*/
|
||||||
void
|
void
|
||||||
term_fill(struct terminal *term, int r, int c, char data, size_t count,
|
term_fill(struct terminal *term, int r, int c, uint8_t data, size_t count,
|
||||||
bool use_sgr_attrs)
|
bool use_sgr_attrs)
|
||||||
{
|
{
|
||||||
struct row *row = grid_row(term->grid, r);
|
struct row *row = grid_row(term->grid, r);
|
||||||
|
|
|
||||||
|
|
@ -798,7 +798,7 @@ void term_cursor_down(struct terminal *term, int count);
|
||||||
void term_cursor_blink_update(struct terminal *term);
|
void term_cursor_blink_update(struct terminal *term);
|
||||||
|
|
||||||
void term_print(struct terminal *term, char32_t wc, int width);
|
void term_print(struct terminal *term, char32_t wc, int width);
|
||||||
void term_fill(struct terminal *term, int row, int col, char c, size_t count,
|
void term_fill(struct terminal *term, int row, int col, uint8_t c, size_t count,
|
||||||
bool use_sgr_attrs);
|
bool use_sgr_attrs);
|
||||||
|
|
||||||
void term_scroll(struct terminal *term, int rows);
|
void term_scroll(struct terminal *term, int rows);
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue