aboutsummaryrefslogtreecommitdiff
path: root/termkey.c
diff options
context:
space:
mode:
Diffstat (limited to 'termkey.c')
-rw-r--r--termkey.c10
1 files changed, 10 insertions, 0 deletions
diff --git a/termkey.c b/termkey.c
index 0294e26..bebaa9a 100644
--- a/termkey.c
+++ b/termkey.c
@@ -263,6 +263,16 @@ void termkey_destroy(termkey_t *tk)
termkey_free(tk);
}
+int termkey_get_flags(termkey_t *tk)
+{
+ return tk->flags;
+}
+
+void termkey_set_flags(termkey_t *tk, int newflags)
+{
+ tk->flags = newflags;
+}
+
void termkey_set_waittime(termkey_t *tk, int msec)
{
tk->waittime = msec;