From 46b7e0bf69817975273dd8d3c5dfb3eb8f951c6c Mon Sep 17 00:00:00 2001 From: tv Date: Mon, 16 Nov 2026 02:17:20 +0000 Subject: scan: return ESC [ alone as \ESC[ Alt-[ sends ESC [ and nothing else. scan returned that as ScanKey "\ESC", dropping the [. Now it is ScanKey "\ESC[", like ESC followed by any other character. --- src/Scanner.hs | 1 - 1 file changed, 1 deletion(-) (limited to 'src/Scanner.hs') diff --git a/src/Scanner.hs b/src/Scanner.hs index 3383920..2f89a75 100644 --- a/src/Scanner.hs +++ b/src/Scanner.hs @@ -67,7 +67,6 @@ scanCS h = do inters <- zeroOrMore h intermediateByte params s <- reverse <$> zeroOrOne h finalByte inters case s of - "\ESC[" -> return $ ScanKey "\ESC" -- TODO move this to scanESC "\ESC[M" -> scanX10MousePayload h '\ESC' : '[' : '<' : payload | Just m <- sgrMouse payload -> return m _ -> return $ ScanKey s -- cgit v1.3.1