[vte/vte-0-54] vte.sh: Revert to C0 controls in OSC sequences



commit c946112da87d920d5fe049097aec010fecb1c919
Author: Egmont Koblinger <egmont gmail com>
Date:   Mon Sep 10 14:09:19 2018 +0200

    vte.sh: Revert to C0 controls in OSC sequences
    
    (cherry picked from commit b3b3c3585528754a0923fcfc7a74126cd839784f)

 src/vte.sh | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)
---
diff --git a/src/vte.sh b/src/vte.sh
index 5fb16996..6d1a8734 100644
--- a/src/vte.sh
+++ b/src/vte.sh
@@ -46,13 +46,13 @@ __vte_ps1() {
 }
 
 __vte_osc7 () {
-  printf "\u009D7;file://%s%s\u009C" "${HOSTNAME:-}" "$(__vte_urlencode "${PWD}")"
+  printf "\033]7;file://%s%s\033\\" "${HOSTNAME:-}" "$(__vte_urlencode "${PWD}")"
 }
 
 __vte_prompt_command() {
   local pwd='~'
   [ "$PWD" != "$HOME" ] && pwd=${PWD/#$HOME\//\~\/}
-  printf "\u009D0;%s@%s:%s\u009C%s" "${USER}" "${HOSTNAME%%.*}" "${pwd}" "$(__vte_osc7)"
+  printf "\033]0;%s@%s:%s\033\\%s" "${USER}" "${HOSTNAME%%.*}" "${pwd}" "$(__vte_osc7)"
 }
 
 case "$TERM" in


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