diff options
author | John Hawthorn <john.hawthorn@gmail.com> | 2014-09-16 19:13:41 -0700 |
---|---|---|
committer | John Hawthorn <john.hawthorn@gmail.com> | 2014-09-16 19:13:41 -0700 |
commit | 2f4a44c8b896c899432df0580fd21d1f977a9e11 (patch) | |
tree | d924d80bfe767c25dd04b31fc762666cd221aebe /tty.h | |
parent | 10714ebd1c9688624216dc22ed65216d4032a45e (diff) |
Cap max lines at terminal height
Diffstat (limited to 'tty.h')
-rw-r--r-- | tty.h | 2 |
1 files changed, 2 insertions, 0 deletions
@@ -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 |