diff options
author | Přemysl Janouch <p.janouch@gmail.com> | 2015-08-08 23:51:29 +0200 |
---|---|---|
committer | Přemysl Janouch <p.janouch@gmail.com> | 2015-08-09 14:52:02 +0200 |
commit | f05e40a30a008e0197fe0c8b192f399c448a95c6 (patch) | |
tree | fb3d2bb73687c6b56222196fca1fddec59d08e49 /termo-internal.h | |
parent | 0b5d8ecd0d4119f7fa3e1ef8bc060c6c7124de14 (diff) | |
download | termo-f05e40a30a008e0197fe0c8b192f399c448a95c6.tar.gz termo-f05e40a30a008e0197fe0c8b192f399c448a95c6.tar.xz termo-f05e40a30a008e0197fe0c8b192f399c448a95c6.zip |
Don't interpret an n*<Esc> as (n-1)*<Alt>-<Esc>
Diffstat (limited to 'termo-internal.h')
-rw-r--r-- | termo-internal.h | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/termo-internal.h b/termo-internal.h index adf3e8f..54948b0 100644 --- a/termo-internal.h +++ b/termo-internal.h @@ -37,6 +37,12 @@ struct termo_driver_node termo_driver_node_t *next; }; +enum peekey_flags +{ + PEEKKEY_FORCE = 1 << 0, + PEEKKEY_ALT_PREFIXED = 1 << 1 +}; + struct termo { int fd; @@ -75,7 +81,7 @@ struct termo void (*emit_codepoint) (termo_t *tk, uint32_t codepoint, termo_key_t *key); termo_result_t (*peekkey_simple) (termo_t *tk, - termo_key_t *key, int force, size_t *nbytes); + termo_key_t *key, int flags, size_t *nbytes); termo_result_t (*peekkey_mouse) (termo_t *tk, termo_key_t *key, size_t *nbytes); } |