|
Home > Archive > Unix Shell > October 2006 > zsh escape sequences
You are viewing an archived Text-only version of the thread.
To view this thread in it's original format and/or if you want to reply to
this thread please [click here]
| Author |
zsh escape sequences
|
|
|
| Hi,
In the following, what does \e]0; do? Where can I look up different
escape characters, and codes for zsh? Thanks.
case $TERM in
xterm*)
precmd () {print -Pn "\e]0;%n@%m: %~\a"}
;;
esac
| |
| Damian 'legion' Szuberski 2006-10-24, 7:17 pm |
| On 2006-10-24, yusuf wrote:
> In the following, what does \e]0; do? Where can I look up different
> escape characters, and codes for zsh? Thanks.
>
> case $TERM in
> xterm*)
> precmd () {print -Pn "\e]0;%n@%m: %~\a"}
> ;;
> esac
Keyword: ANSI codes
--
Damian Szuberski
| |
| Barry Margolin 2006-10-25, 1:32 am |
| In article <ehlsuu$92f$2@news.onet.pl>,
Damian 'legion' Szuberski <elegion@tlen.-nospamplz-pl> wrote:
> On 2006-10-24, yusuf wrote:
> Keyword: ANSI codes
What are these "Keywords" you keep referring to in your overly terse
replies? Is there a particular documentation site where he should enter
the keywords?
--
Barry Margolin, barmar@alum.mit.edu
Arlington, MA
*** PLEASE post questions in newsgroups, not directly to me ***
*** PLEASE don't copy me on replies, I'll read them in the group ***
| |
| PDreyer 2006-10-25, 7:18 am |
|
On Oct 24, 10:25 pm, "yusuf" <yus...@gmail.com> wrote:
> Hi,
>
> In the following, what does \e]0; do? Where can I look up different
> escape characters, and codes for zsh? Thanks.
>
> case $TERM in
> xterm*)
> precmd () {print -Pn "\e]0;%n@%m: %~\a"}
> ;;
> esac
For <ESC>]n;i<BEL>
where <BEL> is ctrl-G
if n is
0 then Change Icon Name and Window Title to i
1 then Change Icon Name to i
2 then Change Window Title to i
Read more about Xterm Control Sequences in
http://www.kitebird.com/csh-tcsh-book/ctlseqs.pdf (54 KB)
| |
|
|
| Damian 'legion' Szuberski 2006-10-25, 1:27 pm |
| On 2006-10-25, Barry Margolin wrote:
> What are these "Keywords" you keep referring to in your overly terse
> replies? Is there a particular documentation site where he should enter
> the keywords?
Root of all knowledge: google.com
Try to use this keyword and click on 1st link (fr instance).
--
Damian Szuberski
| |
| Barry Margolin 2006-10-26, 1:30 am |
| In article <ehno8m$jjt$1@news.onet.pl>,
Damian 'legion' Szuberski <elegion@tlen.-nospamplz-pl> wrote:
> On 2006-10-25, Barry Margolin wrote:
> Root of all knowledge: google.com
> Try to use this keyword and click on 1st link (fr instance).
OK, I think it would have been clearer if you'd said "google for ...".
Saying "Keywords" makes it sound like AOL.
--
Barry Margolin, barmar@alum.mit.edu
Arlington, MA
*** PLEASE post questions in newsgroups, not directly to me ***
*** PLEASE don't copy me on replies, I'll read them in the group ***
| |
| Damian 'legion' Szuberski 2006-10-26, 7:16 am |
| On 2006-10-26, Barry Margolin wrote:
> OK, I think it would have been clearer if you'd said "google for ...".
> Saying "Keywords" makes it sound like AOL.
Heh, ok. I'll remember 
--
Damian Szuberski
|
|
|
|
|