(key ['cnt]) -> sym
select
system call is executed for all file descriptors and
timers in the VAL
of the global variable *Run
. If cnt
is
non-NIL
, that amount of milliseconds is waited maximally, and
NIL
is returned upon timeout. See also raw
and wait
.
: (key) # Wait for a key
-> "a" # 'a' pressed
(kill 'pid ['cnt]) -> flg
cnt
(or SIGTERM if
cnt
is not given) to the process with the ID pid
.
Returns T
if successful.
: (kill *Pid 20) # Stop current process
[2]+ Stopped bin/picolisp # Unix shell
$ fg # Job control: Foreground
bin/picolisp
-> T # 'kill' was successful