[vte] vte.sh: Use C1 controls in OSC sequences
- From: Christian Persch <chpe src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [vte] vte.sh: Use C1 controls in OSC sequences
- Date: Tue, 27 Mar 2018 17:44:24 +0000 (UTC)
commit e9fa511fe35ed38020671f1867ff0d3ccb76f07c
Author: Christian Persch <chpe src gnome org>
Date: Tue Mar 27 19:40:12 2018 +0200
vte.sh: Use C1 controls in OSC sequences
src/vte.sh | 4 ++--
1 files changed, 2 insertions(+), 2 deletions(-)
---
diff --git a/src/vte.sh b/src/vte.sh
index 2d211ca..5fb1699 100644
--- a/src/vte.sh
+++ b/src/vte.sh
@@ -46,13 +46,13 @@ __vte_ps1() {
}
__vte_osc7 () {
- printf "\033]7;file://%s%s\007" "${HOSTNAME:-}" "$(__vte_urlencode "${PWD}")"
+ printf "\u009D7;file://%s%s\u009C" "${HOSTNAME:-}" "$(__vte_urlencode "${PWD}")"
}
__vte_prompt_command() {
local pwd='~'
[ "$PWD" != "$HOME" ] && pwd=${PWD/#$HOME\//\~\/}
- printf "\033]0;%s@%s:%s\007%s" "${USER}" "${HOSTNAME%%.*}" "${pwd}" "$(__vte_osc7)"
+ printf "\u009D0;%s@%s:%s\u009C%s" "${USER}" "${HOSTNAME%%.*}" "${pwd}" "$(__vte_osc7)"
}
case "$TERM" in
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]