aboutsummaryrefslogtreecommitdiff
path: root/terminal.h
diff options
context:
space:
mode:
authorDaniel Eklöf <daniel@ekloef.se>2019-07-10 14:02:03 +0000
committerDaniel Eklöf <daniel@ekloef.se>2019-07-10 14:02:03 +0000
commit3ab68c575b7b0b10eb6751f8b9eac0f1c4ce1701 (patch)
tree961ccb08998979f6d702ff39849e20a35a799ae3 /terminal.h
parentterminal: only support a single intermediate/private character (diff)
terminal: add term_linefeed() and term_reverse_index()
linefeed moves cursor down one row (columns stays the same), or, if the cursor is at the last row, scrolls up one row. reverse_index does the opposite; it moves the cursor *up* one row, or, if the cursor is at the top row, scrolls *down* one row.
Diffstat (limited to 'terminal.h')
-rw-r--r--terminal.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/terminal.h b/terminal.h
index 0ed7bcfe..f5e2cfa9 100644
--- a/terminal.h
+++ b/terminal.h
@@ -269,6 +269,9 @@ void term_scroll_partial(
void term_scroll_reverse_partial(
struct terminal *term, struct scroll_region region, int rows);
+void term_linefeed(struct terminal *term);
+void term_reverse_index(struct terminal *term);
+
void term_mouse_down(struct terminal *term, int button, int row, int col,
bool shift, bool alt, bool ctrl);
void term_mouse_up(struct terminal *term, int button, int row, int col,