Changeset 2899
- Timestamp:
- Mar 19, 2012 9:05:21 PM (14 months ago)
- Files:
-
- 10 edited
-
cpu/arm/mmp2/fw.bth (modified) (1 diff)
-
cpu/arm/olpc/prefw.fth (modified) (1 diff)
-
cpu/x86/pc/lxdevel/fw.bth (modified) (1 diff)
-
cpu/x86/pc/neptune/fw.bth (modified) (1 diff)
-
cpu/x86/pc/olpc/fw.bth (modified) (1 diff)
-
cpu/x86/pc/olpc/via/fw.bth (modified) (1 diff)
-
forth/kernel/kernel.fth (modified) (2 diffs)
-
forth/lib/decomp.fth (modified) (2 diffs)
-
forth/lib/editcmd.fth (modified) (4 diffs)
-
ofw/core/ofwcore.fth (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
cpu/arm/mmp2/fw.bth
r1987 r2899 478 478 quit 479 479 ; 480 481 \ This helps with TeraTerm, which sends ESC-O as the arrow key prefix482 also hidden also keys-forth definitions483 warning @ warning off484 : esc-o key lastchar ! [""] esc-[ do-command ;485 warning !486 previous previous definitions487 480 488 481 tag-file @ fclose tag-file off -
cpu/arm/olpc/prefw.fth
r2815 r2899 219 219 devalias nfs net//obp-tftp:last//nfs 220 220 221 \ This helps with TeraTerm, which sends ESC-O as the arrow key prefix222 also hidden also keys-forth definitions223 warning @ warning off224 : esc-o key lastchar ! [""] esc-[ do-command ;225 warning !226 previous previous definitions227 228 221 \ GUI 229 222 false value gui-safeboot? -
cpu/x86/pc/lxdevel/fw.bth
r2865 r2899 488 488 " begin-select /display 3 my-space 4 + config-w! unselect" evaluate 489 489 ; 490 491 \ This helps with TeraTerm, which sends ESC-O as the arrow key prefix492 also hidden also keys-forth definitions493 warning @ warning off494 : esc-o key lastchar ! [""] esc-[ do-command ;495 warning !496 previous previous definitions497 490 498 491 .( --- Saving fw.dic ...) -
cpu/x86/pc/neptune/fw.bth
r2865 r2899 438 438 quit 439 439 ; 440 441 \ This helps with TeraTerm, which sends ESC-O as the arrow key prefix442 also hidden also keys-forth definitions443 warning @ warning off444 : esc-o key lastchar ! [""] esc-[ do-command ;445 warning !446 previous previous definitions447 440 448 441 tag-file @ fclose tag-file off -
cpu/x86/pc/olpc/fw.bth
r2866 r2899 659 659 660 660 fload ${BP}/cpu/x86/pc/olpc/diskspeed.fth \ Mass storage speed test 661 662 \ This helps with TeraTerm, which sends ESC-O as the arrow key prefix663 also hidden also keys-forth definitions664 warning @ warning off665 : esc-o key lastchar ! [""] esc-[ do-command ;666 warning !667 previous previous definitions668 661 669 662 tag-file @ fclose tag-file off -
cpu/x86/pc/olpc/via/fw.bth
r2882 r2899 756 756 757 757 fload ${BP}/cpu/x86/pc/olpc/diskspeed.fth \ Mass storage speed test 758 759 \ This helps with TeraTerm, which sends ESC-O as the arrow key prefix760 also hidden also keys-forth definitions761 warning @ warning off762 : esc-o key lastchar ! [""] esc-[ do-command ;763 warning !764 previous previous definitions765 758 766 759 tag-file @ fclose tag-file off -
forth/kernel/kernel.fth
r2898 r2899 368 368 ; immediate 369 369 370 : [""] \ word (s Compile-time: -- )371 (s Run-time: -- pstr )372 compile (p") safe-parse-word ",373 ; immediate374 375 \ Obsolete376 : ["] \ string" (s -- str )377 compile (p") ,"378 ; immediate379 380 370 : \ \ rest-of-line (s -- ) \ skips rest of line 381 371 -1 parse 2drop 382 ; immediate383 384 : compile-pstring ( adr len -- )385 state @ if386 compile (p") ",387 else388 switch-string "temp npack389 then390 ;391 : "" \ name ( -- pstr )392 safe-parse-word compile-pstring393 ; immediate394 395 : p" \ string" ( -- pstr )396 get-escaped-string compile-pstring397 372 ; immediate 398 373 … … 637 612 ; 638 613 : ?throw ( flag throw-code -- ) swap if throw else drop then ; 639 : (p") (s -- str-addr ) skipstr ( addr len ) drop 1- ;640 614 641 615 nuser 'lastacf \ acf of latest definition -
forth/lib/decomp.fth
r2898 r2899 352 352 ( 16 ) [compile] (') ( 17 ) [compile] (of) 353 353 ( 18 ) [compile] (endof) ( 19 ) [compile] (endcase) 354 ( 20 ) [compile] (p")( 21 ) [compile] (is)354 ( 20 ) [compile] dummy ( 21 ) [compile] (is) 355 355 ( 22 ) [compile] (dlit) ( 23 ) [compile] (llit) 356 356 ( 24 ) [compile] (n") ( 25 ) [compile] isdefer … … 373 373 ( 16 ) .(') ( 17 ) .of 374 374 ( 18 ) .endof ( 19 ) .endcase 375 ( 20 ) .string( 21 ) .is375 ( 20 ) dummy ( 21 ) .is 376 376 ( 22 ) .dlit ( 23 ) .llit 377 377 ( 24 ) .nstring ( 25 ) .is -
forth/lib/editcmd.fth
r819 r2899 41 41 nuser lastchar \ most-recently-typed character 42 42 nuser beforechar \ next most-recently-typed character 43 : do-command ( prefix -string-- )44 name-buf "copy43 : do-command ( prefix$ -- ) 44 name-buf place 45 45 name-buf lastchar @ add-char-to-name 46 46 name-buf count keys token@ search-wordlist ( false | cfa true ) … … 68 68 dup bl h# 7e between 69 69 swap h# a0 h# fe between or 70 if lastchar @ printable-char else nullstringdo-command then70 if lastchar @ printable-char else " " do-command then 71 71 redisplay 72 72 finished @ until … … 183 183 : ^y yank ; 184 184 185 : ^{ key lastchar ! [""] esc- do-command ; 186 : esc-o only forth also definitions beep beep beep ; 185 : ^{ key lastchar ! " esc-" do-command ; 186 187 : esc-v only forth also definitions beep beep beep ; \ Reset search order 187 188 : esc-h erase-previous-word ; 188 189 : esc-d erase-next-word ; … … 196 197 197 198 \ ANSI cursor keys 198 : esc-[ key lastchar ! [""] esc-[ do-command ; 199 : esc-[ key lastchar ! " esc-[" do-command ; 200 : esc-o key lastchar ! " esc-[" do-command ; \ TeraTerm uses esc-o as the arrow prefix 199 201 : esc-[A previous-line ; 200 202 : esc-[B next-line ; -
ofw/core/ofwcore.fth
r2865 r2899 2371 2371 : (open-node) ( -- ) 2372 2372 "open" (apply-method) 0= if ( okay? ) 2373 close-chain p" open failed" throw( )2373 close-chain true abort" open failed" ( ) 2374 2374 then 2375 2375 ;
Note: See TracChangeset
for help on using the changeset viewer.
