diff options
author | Mattias Andrée <m@maandree.se> | 2025-02-19 21:24:33 +0100 |
---|---|---|
committer | Mattias Andrée <m@maandree.se> | 2025-02-19 21:24:33 +0100 |
commit | a9498262cb523429fe0e7ce79e97d725d482b1a0 (patch) | |
tree | 8af04618ec478f691a6c58e04c0d2a754995e50b /libterminput.h | |
parent | misc cleanup, fixes, and clarifications, and escape sequence (diff) | |
download | libterminput-a9498262cb523429fe0e7ce79e97d725d482b1a0.tar.gz libterminput-a9498262cb523429fe0e7ce79e97d725d482b1a0.tar.bz2 libterminput-a9498262cb523429fe0e7ce79e97d725d482b1a0.tar.xz |
Add LIBTERMINPUT_MACRO_ON_BLOCK
Signed-off-by: Mattias Andrée <m@maandree.se>
Diffstat (limited to '')
-rw-r--r-- | libterminput.h | 13 |
1 files changed, 12 insertions, 1 deletions
diff --git a/libterminput.h b/libterminput.h index b0c55af..46d47e2 100644 --- a/libterminput.h +++ b/libterminput.h @@ -71,7 +71,18 @@ enum libterminput_flags { * This is required for distinguishing cursor position * reports from F3 key presses */ - LIBTERMINPUT_AWAITING_CURSOR_POSITION = 0x0040 + LIBTERMINPUT_AWAITING_CURSOR_POSITION = 0x0040, + + /** + * If CSI M is received without anything after it, + * return Macro keypress. Since the user probably + * does not have the Macro key, it seems having this + * as the default behaviour introduces an unncessary + * risk of misparsing input. However, if mouse tracking + * is not activated, it makes since to enable this + * flag. + */ + LIBTERMINPUT_MACRO_ON_BLOCK = 0x0080 }; /** |