Made posix terminal IO avoid spin looping.
Using raw mode + delay in the right places to allow tasks to work while also supporting key?
This commit is contained in:
@ -28,6 +28,9 @@ forth definitions tasks also internals
|
||||
task-list @ cell+ @ sp! rp!
|
||||
;
|
||||
|
||||
( Check if there are other tasks. )
|
||||
: pause? ( -- f ) task-list @ dup @ <> ;
|
||||
|
||||
: task ( xt dsz rsz "name" )
|
||||
create here >r 0 , 0 , ( link, sp )
|
||||
swap here cell+ r@ cell+ ! cells allot
|
||||
|
||||
Reference in New Issue
Block a user