+Key
- Prefix class for maintaining unique indexes to
+relations, a subclass of +index. Accepts an optional argument for a
+Hook attribute. See also Database.
(rel nr (+Need +Key +Number)) # Mandatory, unique Customer/Supplier number
(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 pil + # Unix shell
$ fg # Job control: Foreground
pil +
-> T # 'kill' was successful