Zsh Mailing List Archive
Messages sorted by:
Reverse Date,
Date,
Thread,
Author
RE: xterm title/screen title+hardstatus
- X-seq: zsh-workers 13179
- From: "Andrej Borsenkow" <Andrej.Borsenkow@xxxxxxxxxxxxxx>
- To: "Glenn F. Maynard" <glennm@xxxxxxxxxxxx>, <zsh-workers@xxxxxxxxxxxxxx>
- Subject: RE: xterm title/screen title+hardstatus
- Date: Wed, 22 Nov 2000 09:52:37 +0300
- Importance: Normal
- In-reply-to: <20001121145838.A2755@xxxxxxxxxxxxxxxxxxxxxxxxxxxxx>
- Mailing-list: contact zsh-workers-help@xxxxxxxxxxxxxx; run by ezmlm
>
> I've been trying to solve the problems with getting reliable titles and
> hardstatus lines (for screen).
>
Every now and then I thought about it and always failed to find reliable
solution.
> Two major problems: dealing with all input lines, and following processes
> around when job switching.
>
> The first is the more difficult one. I couldn't get tcsh or bash to do
> this; zsh has come the closest. In particular, there're issues with
> dealing with commands containing single quotes, double quotes, both nested,
> and escaping.
It is worse than just quoting. You have to deal with pipelines and complex
commands. Consider:
bor@itsrm2% preexec() { print $1 > /tmp/foo }
bor@itsrm2% while false
while> do
while> print x
while> done
bor@itsrm2% cat /tmp/foo
while false
do
print x
done
That was the main reason I never came up with any solution.
[...]
-andrej
Messages sorted by:
Reverse Date,
Date,
Thread,
Author