aboutsummaryrefslogtreecommitdiffstats
path: root/kbd.h
diff options
context:
space:
mode:
Diffstat (limited to 'kbd.h')
-rw-r--r--kbd.h9
1 files changed, 9 insertions, 0 deletions
diff --git a/kbd.h b/kbd.h
new file mode 100644
index 0000000..cd15fd3
--- /dev/null
+++ b/kbd.h
@@ -0,0 +1,9 @@
+#include <linux/input.h>
+
+#define KEY_MOD_SHIFT (1 << 0)
+#define KEY_MOD_CTRL (1 << 1)
+
+uint32_t kbd_parse(const char *key, uint32_t *mod);
+
+void tty_raw(void);
+void tty_restore(void);