From a0101d96eae099f0d62507714d6977be7d5e53b6 Mon Sep 17 00:00:00 2001 From: Hugues Hiegel Date: Fri, 13 Feb 2009 14:13:36 +0100 Subject: [TERM TITLE] updates screen managment --- 01_Functions.zsh | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/01_Functions.zsh b/01_Functions.zsh index 534c2ed..d598023 100644 --- a/01_Functions.zsh +++ b/01_Functions.zsh @@ -33,9 +33,11 @@ term_title() print -Pn "\e]0;%n@%m (%l) %~$@\a" # Sets term title ;; screen) - print -Pn "\e]2;[SCREEN #n] %n@%m (%l) %~$@\a" # Sets hardstatus line (term title) - [ $# -gt 0 ] && shift # discards separator - print -Pn "\ek${@:-%n@%m (%l) %~}\e\\" # Sets screen title + # hardstatus + print -Pn "\e]2;[SCREEN #n] ?u(u) ?%n@%m (%l) %~$@\a" # Sets hardstatus line (term title) + # caption + [ $# -gt 0 ] && shift # discards the first arg, which is the separator, if any + print -Pn "\ek${@:-%~}\e\\" ;; *) ;; -- cgit v1.2.3