summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBoris Faure <billiob@gmail.com>2019-07-17 23:54:54 +0200
committerBoris Faure <billiob@gmail.com>2019-07-17 23:57:44 +0200
commit6a8a515c01d3c1da16cee71eddd1497266f5ebe7 (patch)
tree8544a5c5cd91f2b72e17308bd540384cdbaee297
parent5e67443379852f9f52c2cb2b28857408fe8c6fea (diff)
termptyesc: xterm is actually emitting \033 and not ST
ST is as described in https://invisible-island.net/xterm/ctlseqs/ctlseqs.html#h2-Operating-System-Commands
-rw-r--r--src/bin/termptyesc.c2
-rw-r--r--tests/tests.results2
2 files changed, 2 insertions, 2 deletions
diff --git a/src/bin/termptyesc.c b/src/bin/termptyesc.c
index 847a5e5..ca3488b 100644
--- a/src/bin/termptyesc.c
+++ b/src/bin/termptyesc.c
@@ -3675,7 +3675,7 @@ _handle_xterm_11_command(Termpty *ty, Eina_Unicode *p)
3675 l = snprintf(buf, sizeof(buf), "%.2x%.2x/%.2x%.2x/%.2x%.2x", 3675 l = snprintf(buf, sizeof(buf), "%.2x%.2x/%.2x%.2x/%.2x%.2x",
3676 r, r, g, g, b, b); 3676 r, r, g, g, b, b);
3677 termpty_write(ty, buf, l); 3677 termpty_write(ty, buf, l);
3678 TERMPTY_WRITE_STR("\x9c"); 3678 TERMPTY_WRITE_STR("\033");
3679 3679
3680 return; 3680 return;
3681err: 3681err:
diff --git a/tests/tests.results b/tests/tests.results
index 4e6b8c1..8175aea 100644
--- a/tests/tests.results
+++ b/tests/tests.results
@@ -121,4 +121,4 @@ mouse_reporting_mode_normal_ext_urxvt.sh bf68099047410f102e71d2e451875c69
121mouse_reporting_mode_mouse_move_pressed_ext_urxvt.sh 59f3e59b60b3a43260de6a80135489eb 121mouse_reporting_mode_mouse_move_pressed_ext_urxvt.sh 59f3e59b60b3a43260de6a80135489eb
122mouse_reporting_mode_all_ext_urxvt.sh a11bbc8ebea42d06cc3ad823b52c09b3 122mouse_reporting_mode_all_ext_urxvt.sh a11bbc8ebea42d06cc3ad823b52c09b3
123shift_in_out.sh 3896bcc6887998bbc41b43840a6b2e33 123shift_in_out.sh 3896bcc6887998bbc41b43840a6b2e33
124osc-11-query.sh 578c4cd351dbfb3671ffcb58645fde37 124osc-11-query.sh 880863bd914b7d58fb61aa4ec3fe50a0