Re: RfD: EKEY return values



mhx@xxxxxx (Marcel Hendrix) writes:
Andreas Kochenburger <akk@xxxxxxxxxx> writes Re: RfD: EKEY return values

On Sun, 21 May 2006 10:04:03 GMT, anton@xxxxxxxxxxxxxxxxxxxxxxxxxx
(Anton Ertl) wrote:
Proposal

The following words produce the same values that EKEY produces when the user
presses the corresponding key.

K-LEFT ( -- u ) facility ext
The "cursor left" key

Depending on the terminal, key codes generated after pressing one
single key can be several characters long. I doubt that this will
always fit into one u number.

I don't know if that is what is intended by the proposal, but EKEY
could catch those escape sequences and translate them to unique
16/32/64 bit numbers, e.g. this K-LEFT constant.

The Gforth implementation actually works that way.

- anton
--
M. Anton Ertl http://www.complang.tuwien.ac.at/anton/home.html
comp.lang.forth FAQs: http://www.complang.tuwien.ac.at/forth/faq/toc.html
New standard: http://www.forth200x.org/forth200x.html
EuroForth 2006: http://www.complang.tuwien.ac.at/anton/euroforth2006/
.



Relevant Pages

  • Re: historical question
    ... threaded code for definitions, although there is ... During the interpretation of a ... special characters may only come as first ... M. Anton Ertl http://www.complang.tuwien.ac.at/anton/home.html ...
    (comp.lang.forth)
  • Re: File paths
    ... anton@xxxxxxxxxxxxxxxxxxxxxxxxxx (Anton Ertl) writes: ... the names of these strings should be restricted to legal ... >characters or _, continues with alphanumeric characters or _) ... so one would have to use the env program to use a ...
    (comp.lang.forth)
  • Re: IEEE-FP 0.5.3
    ... Anton Ertl wrote: ... the spec was adopted sometime ago: ... (ref: MPE VFX demo. ... finite numbers are printed with as many characters as are ...
    (comp.lang.forth)
  • Re: aus and chars (was: CMOVE wrong?)
    ... Anton Ertl wrote: ... Admit that characters visible to the users are 1 CHARS. ...
    (comp.lang.forth)
  • Re: RfD - Escaped Strings (long)
    ... (Anton Ertl) ... Actually we should restrict that to a few characters, ... escape sequences should the need ever arise. ...
    (comp.lang.forth)