term: add term_put_char()

This function prints a single, non-double width, character to the
grid. It handles OSC-8 hyperlinks, but does not:

* update the cursor location
* erase sixels
This commit is contained in:
Daniel Eklöf 2021-12-26 14:34:17 +01:00
parent 3e6f0e63f3
commit ea851962c1
No known key found for this signature in database
GPG key ID: 5BBD4992C116573F
2 changed files with 37 additions and 0 deletions

View file

@ -797,6 +797,7 @@ void term_cursor_up(struct terminal *term, int count);
void term_cursor_down(struct terminal *term, int count);
void term_cursor_blink_update(struct terminal *term);
void term_put_char(struct terminal *term, int r, int c, char32_t wc);
void term_print(struct terminal *term, char32_t wc, int width);
void term_scroll(struct terminal *term, int rows);