Re: Escape Codes
- From: Markus E Leypold <development-2006-8ecbb5cc8aREMOVETHIS@xxxxxxxxxxxxxxxxxxxxx>
- Date: Mon, 05 Mar 2007 15:50:49 +0100
Martin Krischik <krischik@xxxxxxxxxxxxxxxxxxxxx> writes:
brian.b.mcguinness@xxxxxxxx schrieb:
Google for ANSI escape sequences
Results include:
http://www.dee.ufcg.edu.br/~rrbrandt/tools/ansi.html
http://isthe.com/chongo/tech/comp/ansi_escapes.html
http://en.wikipedia.org/wiki/ANSI_escape_code
None of which will tell you which sequence the terminal sends when
i.E. you press the <Home> or <End> key :-(.
But Georg's hint to search for "Xterm Control Sequences" turned up
http://sunsite.ualberta.ca/Documentation/Gnu/screen-3.9.4/html_chapter/screen_11.html
which does :-):
Home kh stuff \033[1~
End kH stuff \033[4~
Insert kI stuff \033[2~
Delete kD stuff \033[3~
Page up kP stuff \033[5~
Page down kN stuff \033[6~
My Xterm produces ^[[H~ for HOME and ^[[F~ for END.
You can check that by either pressing ^V and the key in the shell (if
you have readline) or by using cat.
Regards -- Markus
.
- Follow-Ups:
- Re: Escape Codes
- From: Martin Krischik
- Re: Escape Codes
- References:
- Escape Codes
- From: Martin Krischik
- Re: Escape Codes
- From: brian . b . mcguinness
- Re: Escape Codes
- From: Martin Krischik
- Escape Codes
- Prev by Date: Re: Escape Codes
- Next by Date: Re: Escape Codes
- Previous by thread: Re: Escape Codes
- Next by thread: Re: Escape Codes
- Index(es):
Relevant Pages
|