diff options
author | John Hawthorn <john.hawthorn@gmail.com> | 2014-08-16 20:33:24 -0700 |
---|---|---|
committer | John Hawthorn <john.hawthorn@gmail.com> | 2014-08-16 20:33:24 -0700 |
commit | d0788eb8cf0d8795fd1140086d998913e4707c1f (patch) | |
tree | fa4167bd4966ca0c72faa9d7324829e2d285bf8a /tty.c | |
parent | 35c164afd200bdb0cf9192b85bbae76b51832eb1 (diff) |
Refactor into tty_moveup
Diffstat (limited to 'tty.c')
-rw-r--r-- | tty.c | 4 |
1 files changed, 4 insertions, 0 deletions
@@ -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); |