diff options
Diffstat (limited to 'termbox/termbox.c')
-rw-r--r-- | termbox/termbox.c | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/termbox/termbox.c b/termbox/termbox.c index 80aeb3a9..0e4d5a9f 100644 --- a/termbox/termbox.c +++ b/termbox/termbox.c @@ -153,6 +153,11 @@ void tb_shutdown(void) termw = termh = -1; } +int tb_is_active(void) +{ + return termw != -1; +} + void tb_present(void) { int x,y,w,i; |