Commit b3b3c358 authored by Egmont Koblinger's avatar Egmont Koblinger

vte.sh: Revert to C0 controls in OSC sequences

parent 138baedc
......@@ -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
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment