K

(key ['cnt]) -> sym
Returns the next character from standard input as a single-character transient symbol. The console is set to raw mode. While waiting for a key press, a 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
Sends a signal with the signal number 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