-
Notifications
You must be signed in to change notification settings - Fork 2
/
block-023.fth
32 lines (30 loc) · 1.16 KB
/
block-023.fth
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
#256 #71 or const key-home ( 27 91 72 )
#256 #72 or const key-up ( 27 91 65 )
#256 #73 or const key-pgup ( 27 91 53 126 )
#256 #75 or const key-left ( 27 91 68 )
#256 #77 or const key-right( 27 91 67 )
#256 #79 or const key-end ( 27 91 70 )
#256 #80 or const key-down ( 27 91 66 )
#256 #81 or const key-pgdn ( 27 91 54 126 )
#256 #82 or const key-ins ( 27 91 50 126 )
#256 #83 or const key-del ( 27 91 51 126 )
#256 #119 or const key-chome( 27 91 49 59 53 72 )
#256 #117 or const key-cend ( 27 91 49 59 53 70 )
win-key( --k )key #256 or ;
vk2( --k )key 126 <>if27 exitthen
a@ 50 =ifkey-ins exitthen
a@ 51 =ifkey-del exitthen
a@ 53 =ifkey-pgup exitthen
a@ 54 =ifkey-pgdn exitthen 27 ;
vk1( --k )key a!
a@ 65 =ifkey-up exitthen
a@ 66 =ifkey-down exitthen
a@ 67 =ifkey-right exitthen
a@ 68 =ifkey-left exitthen
a@ 70 =ifkey-end exitthen
a@ 72 =ifkey-home exitthen
a@ 50 55 btwiifvk2 exitthen 27 ;
vt-key( --k )key 91 =ifvk1 exitthen27 ;
vkey( --k )key
dup 224 =ifdrop win-key exitthen
dup 27 =ifdrop vt-key exitthen;