diff options
Diffstat (limited to 'termkey.c')
-rw-r--r-- | termkey.c | 5 |
1 files changed, 5 insertions, 0 deletions
@@ -461,6 +461,11 @@ void termkey_set_canonflags(TermKey *tk, int flags) tk->flags &= ~TERMKEY_FLAG_SPACESYMBOL; } +size_t termkey_get_buffer_size(TermKey *tk) +{ + return tk->buffsize; +} + size_t termkey_get_buffer_remaining(TermKey *tk) { /* Return the total number of free bytes in the buffer, because that's what |