diff options
author | Marc Cornellà <marc.cornella@live.com> | 2020-09-27 14:15:50 +0200 |
---|---|---|
committer | Marc Cornellà <marc.cornella@live.com> | 2020-09-27 14:15:50 +0200 |
commit | 765966606de9f1fc337818984220268af62926d6 (patch) | |
tree | dfdb8b680206ceedcb5b5cac29d83fc8560ea88f /lib/termsupport.zsh | |
parent | cacf5d0435cbd33d1b9460d118720c6a9b5f6420 (diff) | |
download | zsh-765966606de9f1fc337818984220268af62926d6.tar.gz zsh-765966606de9f1fc337818984220268af62926d6.tar.bz2 zsh-765966606de9f1fc337818984220268af62926d6.zip |
lib: correct :q syntax in title function for clarity
Diffstat (limited to 'lib/termsupport.zsh')
-rw-r--r-- | lib/termsupport.zsh | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/lib/termsupport.zsh b/lib/termsupport.zsh index 682925211..235efec6a 100644 --- a/lib/termsupport.zsh +++ b/lib/termsupport.zsh @@ -18,16 +18,16 @@ function title { case "$TERM" in cygwin|xterm*|putty*|rxvt*|konsole*|ansi|mlterm*) - print -Pn "\e]2;$2:q\a" # set window name - print -Pn "\e]1;$1:q\a" # set tab name + print -Pn "\e]2;${2:q}\a" # set window name + print -Pn "\e]1;${1:q}\a" # set tab name ;; screen*|tmux*) - print -Pn "\ek$1:q\e\\" # set screen hardstatus + print -Pn "\ek${1:q}\e\\" # set screen hardstatus ;; *) if [[ "$TERM_PROGRAM" == "iTerm.app" ]]; then - print -Pn "\e]2;$2:q\a" # set window name - print -Pn "\e]1;$1:q\a" # set tab name + print -Pn "\e]2;${2:q}\a" # set window name + print -Pn "\e]1;${1:q}\a" # set tab name else # Try to use terminfo to set the title # If the feature is available set title |