aboutsummaryrefslogtreecommitdiff
path: root/termkey.c
diff options
context:
space:
mode:
authorPaul LeoNerd Evans <leonerd@leonerd.org.uk>2012-02-13 21:57:33 +0000
committerPaul LeoNerd Evans <leonerd@leonerd.org.uk>2012-02-13 21:57:33 +0000
commit5779ec3cd1e2a286265837bad264125c55875be8 (patch)
tree2b87382bc3646827f28823e8ef787138d974308a /termkey.c
parentee12c698da34cb707899e666f7a57cc4bf241623 (diff)
downloadtermo-5779ec3cd1e2a286265837bad264125c55875be8.tar.gz
termo-5779ec3cd1e2a286265837bad264125c55875be8.tar.xz
termo-5779ec3cd1e2a286265837bad264125c55875be8.zip
Added (undocumented) termkey_get_buffer_size()
Diffstat (limited to 'termkey.c')
-rw-r--r--termkey.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/termkey.c b/termkey.c
index e3daa3e..1cc964b 100644
--- a/termkey.c
+++ b/termkey.c
@@ -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