"Anton Ertl" <anton@...> writes:
> How do I write a portable Forth program that reacts to key presses of cursor
> keys (and possibly other keys not represented by ASCII), e.g., an editor?
>
> Proposal
>
> The following words produce the same values that EKEY produces when the user
> presses the corresponding key.
> K-LEFT ( -- u ) facility ext
[ ... ]
> Other Keys
>
> Gforth and PFE also have words K1...K10 for the function/keypad keys;
> they also contain S-K1...S-K10 for shifted function/keypad keys, but
> they don't work as widely. Moreover, Gforth (but not PFE) also has
> K-INSERT K-DELETE K11 K12 S-K11 S-K12. Should any of these words be
> added to this proposal?
I would like to see them all added to this proposal.
> Experience
>
> These words have been implemented for several years in PFE and
> Gforth. They are not used much [...]
I *do* use them. It would be very desirable to have the same words
available in different Forth implemantations.
Robert Epprecht