From 765966606de9f1fc337818984220268af62926d6 Mon Sep 17 00:00:00 2001 From: Marc Cornellà Date: Sun, 27 Sep 2020 14:15:50 +0200 Subject: lib: correct :q syntax in title function for clarity --- lib/termsupport.zsh | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) (limited to 'lib/termsupport.zsh') 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 -- cgit v1.2.3-70-g09d2 From 4ec055b890dc52749f6f9f076aa5da24c3266c8d Mon Sep 17 00:00:00 2001 From: Marc Cornellà Date: Mon, 28 Sep 2020 20:39:56 +0200 Subject: lib: support alacritty $TERM in title function --- lib/termsupport.zsh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'lib/termsupport.zsh') diff --git a/lib/termsupport.zsh b/lib/termsupport.zsh index 235efec6a..1bab61b2a 100644 --- a/lib/termsupport.zsh +++ b/lib/termsupport.zsh @@ -17,7 +17,7 @@ function title { : ${2=$1} case "$TERM" in - cygwin|xterm*|putty*|rxvt*|konsole*|ansi|mlterm*) + cygwin|xterm*|putty*|rxvt*|konsole*|ansi|mlterm*|alacritty) print -Pn "\e]2;${2:q}\a" # set window name print -Pn "\e]1;${1:q}\a" # set tab name ;; -- cgit v1.2.3-70-g09d2 From 274df9dc2921deb0a773c4aee70a0c3d0542c31b Mon Sep 17 00:00:00 2001 From: Marc Cornellà Date: Tue, 29 Sep 2020 18:34:35 +0200 Subject: lib: support simple terminal in title function Fixes #9295 --- lib/termsupport.zsh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'lib/termsupport.zsh') diff --git a/lib/termsupport.zsh b/lib/termsupport.zsh index 1bab61b2a..8cb2389e2 100644 --- a/lib/termsupport.zsh +++ b/lib/termsupport.zsh @@ -17,7 +17,7 @@ function title { : ${2=$1} case "$TERM" in - cygwin|xterm*|putty*|rxvt*|konsole*|ansi|mlterm*|alacritty) + cygwin|xterm*|putty*|rxvt*|konsole*|ansi|mlterm*|alacritty|st*) print -Pn "\e]2;${2:q}\a" # set window name print -Pn "\e]1;${1:q}\a" # set tab name ;; -- cgit v1.2.3-70-g09d2