Skip to content

Commit

Permalink
* vt_parser.c: "CSI > q" (XTVERSION) is supported.
Browse files Browse the repository at this point in the history
  (The response is "DCS > | mlterm(3.9.1) ST")
  • Loading branch information
arakiken committed Jul 2, 2021
1 parent 2416b71 commit 13470bb
Show file tree
Hide file tree
Showing 4 changed files with 13 additions and 0 deletions.
5 changes: 5 additions & 0 deletions ChangeLog
Original file line number Diff line number Diff line change
@@ -1,3 +1,8 @@
2021-07-03 Araki Ken <arakiken@users.sf.net>

* vt_parser.c: "CSI > q" (XTVERSION) is supported.
(The response is "DCS > | mlterm(3.9.1) ST")

2021-07-01 Araki Ken <arakiken@users.sf.net>

* vt_parser.c: show_picture() restores vt_parser->is_visible_cursor
Expand Down
1 change: 1 addition & 0 deletions doc/en/ControlSequences
Original file line number Diff line number Diff line change
Expand Up @@ -281,6 +281,7 @@ O XTEXTSCRN (Save cursor as in DECSC and use Alternate Screen Buffer)
O XTBRACKET (Set bracketed paste mode) CSI ? 2004 [hl]
O XTMDKEY CSI > Pn;Ps m
O XTMDKYD CSI > Pn n
O XTVERSION CSI > Pn q
O XTMSEANY (Use All Motion Mouse Tracking) CSI ? 1003 [hl]
O XTMSEBTN (Use Cell Motion Mouse Tracking) CSI ? 1002 [hl]
O XTMSERXVT (Enable urxvt Mouse Mode) CSI ? 1015 [hl]
Expand Down
1 change: 1 addition & 0 deletions doc/en/ReleaseNote
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
* Support Fcitx5.
* Support GTK4 for mlconfig. (./configure --with-gtk=4.0)
* Support CSI > Ps q (XTVERSION).
* Add "MOSH_UDP_PORT" environmental variable to specify UDP port or port-range
to communicate with a mosh server.
* Add INSERT_CLIPBOARD shortcut key.
Expand Down
6 changes: 6 additions & 0 deletions vtemu/vt_parser.c
Original file line number Diff line number Diff line change
Expand Up @@ -4941,6 +4941,12 @@ inline static int parse_vt100_escape_sequence(
/* "CSI > p" pointer mode */

vt_parser->hide_pointer_mode = ps[0];
} else if (*str_p == 'q') {
/* "CSI > q" XTVERSION */

char xtversion[] = "\x1bP>|mlterm(3.9.1)\x1b\\";

vt_write_to_pty(vt_parser->pty, xtversion, sizeof(xtversion) - 1);
} else if (*str_p == 't') {
/* "CSI > t" */

Expand Down

0 comments on commit 13470bb

Please sign in to comment.