[illumos-Developer] Terminfo handling of pg/home/etc keys

Guido Berhoerster guido+illumos.org at berhoerster.name
Tue Oct 19 11:45:25 PDT 2010


* Miika Vesti <miika+illumos at vesti.fi> [2010-10-19 20:05]:
> 19.10.2010 20:54, Guido Berhoerster kirjoitti:
> > * Joerg Schilling <Joerg.Schilling at fokus.fraunhofer.de> [2010-10-19 18:48]:
> >> Anil Gulecha <anil.verve at gmail.com> wrote:
> >>
> >>> Hi All,
> >>>
> >>> I'd like to take up integrating
> >>> https://defect.opensolaris.org/bz/show_bug.cgi?id=5574
> >>>
> >>> With the patch
> >>> https://defect.opensolaris.org/bz/attachment.cgi?id=1258&action=edit
> >>
> >> What keys do you understand by khome and kend?
> >>
> >> If you are talking about the keys labelled "pos1" and "end" above the cursor 
> >> keys from a PC keyboard, they create \EOH and \EOF if I call gnome terminal
> >> or xterm on my machine.
> > 
> > You'll only find "Pos1" on German keyboards, it's "Home" on my
> > 101 US PC keykboard.
> > They also generate \E[H and \E[F in my xterm, verified via
> > ksh93 -c 'set -o gmacs;function sc { printf "|%q|\n" "${.sh.edchar}";.sh.edchar=;};trap sc KEYBD;read -r c'
> > 
> 
> On my keyboard, output of this command after pressing Home and End keys
> is \EOF and \EOH
> 
> On my Linux systems, these are also the values I get from infocmp.
> 
> I have Finnish keyboard which is somewhat similar to German one.

This has nothing to do with the keyboard, it just depends on
wheter xterm is in application cursor mode. If the latter is
switched on xterm produces the \EO-type codes.

-- 
Guido Berhoerster



More information about the Developer mailing list