From mboxrd@z Thu Jan 1 00:00:00 1970 X-Spam-Checker-Version: SpamAssassin 3.4.4 (2020-01-24) on polar.synack.me X-Spam-Level: X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00 autolearn=ham autolearn_force=no version=3.4.4 X-Google-Thread: 103376,6f4b2f1a3f091549 X-Google-Attributes: gid103376,public X-Google-Language: ENGLISH,ASCII-7-bit Newsgroups: comp.lang.ada Subject: Re: Escape Codes References: <45ec0b23$1@news.post.ch> <1173100348.824818.272400@s48g2000cws.googlegroups.com> <45ec2335@news.post.ch> From: Markus E Leypold Organization: N/A Date: Mon, 05 Mar 2007 15:50:49 +0100 Message-ID: User-Agent: Some cool user agent (SCUG) Cancel-Lock: sha1:q7uQQN52g2zthjmynSgSgAy1Wvk= MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii NNTP-Posting-Host: 88.72.207.169 X-Trace: news.arcor-ip.de 1173105883 88.72.207.169 (5 Mar 2007 15:44:43 +0200) X-Complaints-To: abuse@arcor-ip.de Path: g2news2.google.com!news3.google.com!border1.nntp.dca.giganews.com!nntp.giganews.com!nx01.iad01.newshosting.com!newshosting.com!198.186.194.250.MISMATCH!transit3.readnews.com!news-out.readnews.com!newspeer1.nwr.nac.net!newsfeed.freenet.de!news-lei1.dfn.de!news-fra1.dfn.de!newsfeed.arcor-ip.de!news.arcor-ip.de!not-for-mail Xref: g2news2.google.com comp.lang.ada:9701 Date: 2007-03-05T15:50:49+01:00 List-Id: Martin Krischik 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 or 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