diff options
author | zeertzjq <zeertzjq@outlook.com> | 2025-01-21 21:00:56 +0800 |
---|---|---|
committer | zeertzjq <zeertzjq@outlook.com> | 2025-01-21 22:21:05 +0800 |
commit | 06a1f82f1cc37225b6acc46e63bd2eb36e034b1a (patch) | |
tree | f02943412f92739d334a66892d03b5f4fa4bd3c8 /test/unit | |
parent | 44dbfcfba4b09bb0e38f4a3f1960fa256a7bed71 (diff) | |
download | rneovim-06a1f82f1cc37225b6acc46e63bd2eb36e034b1a.tar.gz rneovim-06a1f82f1cc37225b6acc46e63bd2eb36e034b1a.tar.bz2 rneovim-06a1f82f1cc37225b6acc46e63bd2eb36e034b1a.zip |
feat(terminal): forward X1 and X2 mouse events
Ref:
https://invisible-island.net/xterm/ctlseqs/ctlseqs.html#h3-Other-buttons
Diffstat (limited to 'test/unit')
-rw-r--r-- | test/unit/vterm_spec.lua | 24 |
1 files changed, 24 insertions, 0 deletions
diff --git a/test/unit/vterm_spec.lua b/test/unit/vterm_spec.lua index bad2b3e658..c5293a21cb 100644 --- a/test/unit/vterm_spec.lua +++ b/test/unit/vterm_spec.lua @@ -2079,6 +2079,18 @@ putglyph 1f3f4,200d,2620,fe0f 2 0,4]]) mousebtn('u', 1, vt) expect_output('\x1b[<0;301;301m') + -- Button 8 on SGR extended encoding mode + mousebtn('d', 8, vt) + expect_output('\x1b[<128;301;301M') + mousebtn('u', 8, vt) + expect_output('\x1b[<128;301;301m') + + -- Button 9 on SGR extended encoding mode + mousebtn('d', 9, vt) + expect_output('\x1b[<129;301;301M') + mousebtn('u', 9, vt) + expect_output('\x1b[<129;301;301m') + -- DECRQM on SGR extended encoding mode push('\x1b[?1005$p', vt) expect_output('\x1b[?1005;2$y') @@ -2094,6 +2106,18 @@ putglyph 1f3f4,200d,2620,fe0f 2 0,4]]) mousebtn('u', 1, vt) expect_output('\x1b[3;301;301M') + -- Button 8 on rxvt extended encoding mode + mousebtn('d', 8, vt) + expect_output('\x1b[128;301;301M') + mousebtn('u', 8, vt) + expect_output('\x1b[3;301;301M') + + -- Button 9 on rxvt extended encoding mode + mousebtn('d', 9, vt) + expect_output('\x1b[129;301;301M') + mousebtn('u', 9, vt) + expect_output('\x1b[3;301;301M') + -- DECRQM on rxvt extended encoding mode push('\x1b[?1005$p', vt) expect_output('\x1b[?1005;2$y') |