summaryrefslogtreecommitdiff
path: root/tty.c
diff options
context:
space:
mode:
authorJohn Hawthorn <john.hawthorn@gmail.com>2014-08-16 20:33:24 -0700
committerJohn Hawthorn <john.hawthorn@gmail.com>2014-08-16 20:33:24 -0700
commitd0788eb8cf0d8795fd1140086d998913e4707c1f (patch)
treefa4167bd4966ca0c72faa9d7324829e2d285bf8a /tty.c
parent35c164afd200bdb0cf9192b85bbae76b51832eb1 (diff)
Refactor into tty_moveup
Diffstat (limited to 'tty.c')
-rw-r--r--tty.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/tty.c b/tty.c
index a96aafc..be3e388 100644
--- a/tty.c
+++ b/tty.c
@@ -67,6 +67,10 @@ void tty_setcol(tty_t *tty, int col){
tty_printf(tty, "%c%c%iG", 0x1b, '[', col);
}
+void tty_moveup(tty_t *tty, int i){
+ tty_printf(tty, "%c%c%iA", 0x1b, '[', i);
+}
+
void tty_printf(tty_t *tty, const char *fmt, ...){
va_list args;
va_start(args, fmt);