File:  [gforth] / gforth / doskey.fs
Revision 1.1: download - view: text, annotated - select for diffs
Tue Oct 18 15:59:01 1994 UTC (24 years, 8 months ago) by pazsan
Branches: MAIN
CVS tags: HEAD
doskey.fs translates DOS-PC keys into emacs-keys
(like cursor and home/end keys)

\ MS-DOS key interpreter                               17oct94py

Create translate $100 allot
translate $100 erase

: trans:  char translate + c! ;

: dos-decode ( max span addr pos1 -- max span addr pos2 flag )
  key translate + c@ dup IF  decode  THEN ;

ctrl B trans: K
ctrl F trans: M
ctrl P trans: H
ctrl N trans: P
ctrl A trans: G
ctrl E trans: O

' dos-decode  ctrlkeys !

FreeBSD-CVSweb <freebsd-cvsweb@FreeBSD.org>