summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorHugues Hiegel <hugues@hiegel.fr>2009-02-13 14:13:36 +0100
committerHugues Hiegel <hugues@hiegel.fr>2009-02-13 14:13:36 +0100
commita0101d96eae099f0d62507714d6977be7d5e53b6 (patch)
tree3a93d29164d3c493f6382227a969794ea1635a64
parent3467a4a6270e8f0ba01ff0b3decefbbd98f76475 (diff)
[TERM TITLE] updates screen managment
-rw-r--r--01_Functions.zsh8
1 files 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\\"
;;
*)
;;