summaryrefslogtreecommitdiff
path: root/src/tty.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/tty.c')
-rw-r--r--src/tty.c8
1 files changed, 8 insertions, 0 deletions
diff --git a/src/tty.c b/src/tty.c
index 7271307..a8f014e 100644
--- a/src/tty.c
+++ b/src/tty.c
@@ -119,6 +119,14 @@ void tty_setnormal(tty_t *tty) {
tty->fgcolor = 9;
}
+void tty_setnowrap(tty_t *tty) {
+ tty_printf(tty, "%c%c?7l", 0x1b, '[');
+}
+
+void tty_setwrap(tty_t *tty) {
+ tty_printf(tty, "%c%c?7h", 0x1b, '[');
+}
+
void tty_newline(tty_t *tty) {
tty_printf(tty, "%c%cK\n", 0x1b, '[');
}