1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58
|
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN" "http://www.w3.org/TR/1998/REC-html40-19980424/loose.dtd">
<html lang="en">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<title>K</title>
<link rel="stylesheet" href="doc.css" type="text/css">
</head>
<body>
<h1>K</h1>
<dl>
<dt><a name="+Key"><code>+Key</code></a>
<dd>Prefix class for maintaining unique indexes to <code><a
href="refR.html#+relation">+relation</a></code>s, a subclass of <code><a
href="refI.html#+index">+index</a></code>. Accepts an optional argument for a
<code><a href="refH.html#+Hook">+Hook</a></code> attribute. See also <code><a
href="ref.html#dbase">Database</a></code>.
<pre><code>
(rel nr (+Need +Key +Number)) # Mandatory, unique Customer/Supplier number
</code></pre>
<dt><a name="key"><code>(key ['cnt]) -> sym</code></a>
<dd>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 <code>select</code> system call is executed for all file descriptors and
timers in the <code>VAL</code> of the global variable <code><a
href="refR.html#*Run">*Run</a></code>. If <code>cnt</code> is
non-<code>NIL</code>, that amount of milliseconds is waited maximally, and
<code>NIL</code> is returned upon timeout. See also <code><a
href="refR.html#raw">raw</a></code> and <code><a
href="refW.html#wait">wait</a></code>.
<pre><code>
: (key) # Wait for a key
-> "a" # 'a' pressed
</code></pre>
<dt><a name="kill"><code>(kill 'pid ['cnt]) -> flg</code></a>
<dd>Sends a signal with the signal number <code>cnt</code> (or SIGTERM if
<code>cnt</code> is not given) to the process with the ID <code>pid</code>.
Returns <code>T</code> if successful.
<pre><code>
: (kill *Pid 20) # Stop current process
[2]+ Stopped pil + # Unix shell
$ fg # Job control: Foreground
pil +
-> T # 'kill' was successful
</code></pre>
</dl>
</body>
</html>
|