aboutsummaryrefslogtreecommitdiff
path: root/terminal.c
diff options
context:
space:
mode:
authorDaniel Eklöf <daniel@ekloef.se>2020-02-11 18:39:23 +0000
committerDaniel Eklöf <daniel@ekloef.se>2020-02-11 18:39:23 +0000
commit335bf2e5b4cda58e56860d3cc3ad23e215c80a78 (patch)
tree93cffbfa13cb7b78a3051c3975b4fc32d387ad1f /terminal.c
parentterm: log error when failing to initialize the primary fonts (diff)
parentselection: handle line break at last column correctly (diff)
Merge branch 'text-reflow'
Diffstat (limited to 'terminal.c')
-rw-r--r--terminal.c12
1 files changed, 10 insertions, 2 deletions
diff --git a/terminal.c b/terminal.c
index b179862d..852d7fa4 100644
--- a/terminal.c
+++ b/terminal.c
@@ -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
@@ -1496,6 +1496,14 @@ term_scroll_reverse(struct terminal *term, int 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)
{
if (term->cursor.point.row == term->scroll_region.end - 1)