comp.lang.ada
 help / color / mirror / Atom feed
From: Markus E Leypold <development-2006-8ecbb5cc8aREMOVETHIS@ANDTHATm-e-leypold.de>
Subject: Re: Escape Codes
Date: Mon, 05 Mar 2007 15:50:49 +0100
Date: 2007-03-05T15:50:49+01:00	[thread overview]
Message-ID: <hxk5xvhhh2.fsf@hod.lan.m-e-leypold.de> (raw)
In-Reply-To: 45ec2335@news.post.ch


Martin Krischik <krischik@users.sourceforge.net> writes:

> brian.b.mcguinness@lmco.com 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




  reply	other threads:[~2007-03-05 14:50 UTC|newest]

Thread overview: 19+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2007-03-05 12:20 Escape Codes Martin Krischik
2007-03-05 12:53 ` Georg Bauhaus
2007-03-05 13:16   ` Thomas Dickey
2007-03-05 13:12 ` brian.b.mcguinness
2007-03-05 13:22   ` Thomas Dickey
2007-03-05 14:03   ` Martin Krischik
2007-03-05 14:50     ` Markus E Leypold [this message]
2007-03-06  7:47       ` Martin Krischik
2007-03-05 14:58     ` Thomas Dickey
2007-03-05 13:24 ` Markus E Leypold
2007-03-05 15:47 ` Ali Bendriss
2007-03-05 16:47 ` Adam Beneschan
2007-03-05 21:32   ` Thomas Dickey
2007-03-05 18:51 ` Jeffrey R. Carter
2007-03-06  3:16   ` Brian May
2007-03-06 12:00     ` Thomas Dickey
  -- strict thread matches above, loose matches on Subject: below --
2003-03-14 21:56 Escape codes J.Matthews
2003-03-14 23:01 ` tmoran
2003-03-15  2:15 ` Jeffrey Carter
replies disabled

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox