Merge branch 'text-reflow'

This commit is contained in:
Daniel Eklöf 2020-02-11 19:39:23 +01:00
commit 335bf2e5b4
No known key found for this signature in database
GPG key ID: 5BBD4992C116573F
8 changed files with 173 additions and 51 deletions

View file

@ -1154,13 +1154,13 @@ term_font_size_adjust(struct terminal *term, double amount)
void
term_font_size_increase(struct terminal *term)
{
term_font_size_adjust(term, 1.);
term_font_size_adjust(term, 0.5);
}
void
term_font_size_decrease(struct terminal *term)
{
term_font_size_adjust(term, -1.);
term_font_size_adjust(term, -0.5);
}
void
@ -1495,6 +1495,14 @@ term_scroll_reverse(struct terminal *term, int rows)
term_scroll_reverse_partial(term, term->scroll_region, rows);
}
void
term_formfeed(struct terminal *term)
{
if (term->cursor.point.col > 0)
term->grid->cur_row->cells[term->cursor.point.col - 1].attrs.linefeed = 1;
term_cursor_left(term, term->cursor.point.col);
}
void
term_linefeed(struct terminal *term)
{