[vte] caps: Adjust start-of-string / end-of-string to match xterm



commit f82209190742fca586641f21367b1fddcb14227a
Author: Behdad Esfahbod <behdad behdad org>
Date:   Thu May 22 17:57:33 2014 -0400

    caps: Adjust start-of-string / end-of-string to match xterm
    
    No idea what they are for, but here's a test case:
    
    $ echo -e "\eXas\e\\df
    
    It should only show "df".  Ie, the portion between ESC X and
    ESC \\ is skipped.

 src/caps.c |    3 +--
 1 files changed, 1 insertions(+), 2 deletions(-)
---
diff --git a/src/caps.c b/src/caps.c
index 3124642..0e7ab43 100644
--- a/src/caps.c
+++ b/src/caps.c
@@ -90,8 +90,7 @@ const char _vte_xterm_capability_strings[] =
         ENTRY(ESC "P%s" ST, "device-control-string")
         ENTRY(ESC "V", "start-of-guarded-area")
         ENTRY(ESC "W", "end-of-guarded-area")
-        ENTRY(ESC "X", "start-of-string")
-        ENTRY(ESC "\\", "end-of-string")
+        ENTRY(ESC "X%s" ST, "start-of-string / end-of-string")
         ENTRY(ESC "Z", "return-terminal-id")
         ENTRY(ESC "c", "full-reset")
         ENTRY(ESC "l", "memory-lock")


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]