From a9498262cb523429fe0e7ce79e97d725d482b1a0 Mon Sep 17 00:00:00 2001 From: Mattias Andrée Date: Wed, 19 Feb 2025 21:24:33 +0100 Subject: Add LIBTERMINPUT_MACRO_ON_BLOCK MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Mattias Andrée --- libterminput.h | 13 ++++++++++++- 1 file changed, 12 insertions(+), 1 deletion(-) (limited to 'libterminput.h') 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 }; /** -- cgit v1.2.3-70-g09d2