summaryrefslogtreecommitdiff
path: root/tty.h
diff options
context:
space:
mode:
authorJohn Hawthorn <john.hawthorn@gmail.com>2014-09-16 19:13:41 -0700
committerJohn Hawthorn <john.hawthorn@gmail.com>2014-09-16 19:13:41 -0700
commit2f4a44c8b896c899432df0580fd21d1f977a9e11 (patch)
treed924d80bfe767c25dd04b31fc762666cd221aebe /tty.h
parent10714ebd1c9688624216dc22ed65216d4032a45e (diff)
Cap max lines at terminal height
Diffstat (limited to 'tty.h')
-rw-r--r--tty.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/tty.h b/tty.h
index 0586977..1f3a4f7 100644
--- a/tty.h
+++ b/tty.h
@@ -9,6 +9,7 @@ typedef struct{
struct termios original_termios;
int fgcolor;
size_t maxwidth;
+ size_t maxheight;
} tty_t;
void tty_reset(tty_t *tty);
@@ -48,5 +49,6 @@ void tty_printf(tty_t *tty, const char *fmt, ...);
void tty_flush(tty_t *tty);
size_t tty_getwidth(tty_t *tty);
+size_t tty_getheight(tty_t *tty);
#endif