| 1 | <?xml version="1.0" encoding="UTF-8"?> |
| 2 | |
| 3 | <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" |
| 4 | "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"> |
| 5 | |
| 6 | <html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en"> |
| 7 | <head> |
| 8 | <title>GAP (hpc) - Chapter 4: Console User Interface</title> |
| 9 | <meta http-equiv="content-type" content="text/html; charset=UTF-8" /> |
| 10 | <meta name="generator" content="GAPDoc2HTML" /> |
| 11 | <link rel="stylesheet" type="text/css" href="manual.css" /> |
| 12 | <script src="manual.js" type="text/javascript"></script> |
| 13 | <script type="text/javascript">overwriteStyle();</script> |
| 14 | </head> |
| 15 | <body class="chap4" onload="jscontent()"> |
| 16 | |
| 17 | |
| 18 | <div class="chlinktop"><span class="chlink1">Goto Chapter: </span><a href="chap0.html">Top</a> <a href="chap1.html">1</a> <a href="chap2.html">2</a> <a href="chap3.html">3</a> <a href="chap4.html">4</a> <a href="chap5.html">5</a> <a href="chap6.html">6</a> <a href="chap7.html">7</a> <a href="chap8.html">8</a> <a href="chap9.html">9</a> <a href="chap10.html">10</a> <a href="chap11.html">11</a> <a href="chapInd.html">Ind</a> </div> |
| 19 | |
| 20 | <div class="chlinkprevnexttop"> <a href="chap0.html">[Top of Book]</a> <a href="chap0.html#contents">[Contents]</a> <a href="chap3.html">[Previous Chapter]</a> <a href="chap5.html">[Next Chapter]</a> </div> |
| 21 | |
| 22 | <p id="mathjaxlink" class="pcenter"><a href="chap4_mj.html">[MathJax on]</a></p> |
| 23 | <p><a id="X7AFF436381C319CD" name="X7AFF436381C319CD"></a></p> |
| 24 | <div class="ChapSects"><a href="chap4.html#X7AFF436381C319CD">4 <span class="Heading">Console User Interface</span></a> |
| 25 | <div class="ContSect"><span class="tocline"><span class="nocss"> </span><a href="chap4.html#X7B958D607F9E0EF3">4.1 <span class="Heading">Console UI commands</span></a> |
| 26 | </span> |
| 27 | <div class="ContSSBlock"> |
| 28 | <span class="ContSS"><br /><span class="nocss"> </span><a href="chap4.html#X8149CF507A188BFB">4.1-1 <span class="Heading">!shell [name]</span></a> |
| 29 | </span> |
| 30 | <span class="ContSS"><br /><span class="nocss"> </span><a href="chap4.html#X8589D19484DBBA7B">4.1-2 <span class="Heading">!fork [name]</span></a> |
| 31 | </span> |
| 32 | <span class="ContSS"><br /><span class="nocss"> </span><a href="chap4.html#X7E57FE757CBAD4BC">4.1-3 <span class="Heading">!list</span></a> |
| 33 | </span> |
| 34 | <span class="ContSS"><br /><span class="nocss"> </span><a href="chap4.html#X7C2721208570CF5D">4.1-4 <span class="Heading">!kill id</span></a> |
| 35 | </span> |
| 36 | <span class="ContSS"><br /><span class="nocss"> </span><a href="chap4.html#X86052CA284DD8E8E">4.1-5 <span class="Heading">!break id</span></a> |
| 37 | </span> |
| 38 | <span class="ContSS"><br /><span class="nocss"> </span><a href="chap4.html#X8022D93682DD8ABE">4.1-6 <span class="Heading">!name [id] name</span></a> |
| 39 | </span> |
| 40 | <span class="ContSS"><br /><span class="nocss"> </span><a href="chap4.html#X810ED84D848681B6">4.1-7 <span class="Heading">!info id</span></a> |
| 41 | </span> |
| 42 | <span class="ContSS"><br /><span class="nocss"> </span><a href="chap4.html#X847F80AB873516DC">4.1-8 <span class="Heading">!hide [id|*]</span></a> |
| 43 | </span> |
| 44 | <span class="ContSS"><br /><span class="nocss"> </span><a href="chap4.html#X87515BA77E6327EE">4.1-9 <span class="Heading">!watch [id|*]</span></a> |
| 45 | </span> |
| 46 | <span class="ContSS"><br /><span class="nocss"> </span><a href="chap4.html#X8295E57782EEF3ED">4.1-10 <span class="Heading">!keep num</span></a> |
| 47 | </span> |
| 48 | <span class="ContSS"><br /><span class="nocss"> </span><a href="chap4.html#X8305DFEA87C30627">4.1-11 <span class="Heading">!prompt (id|*) string</span></a> |
| 49 | </span> |
| 50 | <span class="ContSS"><br /><span class="nocss"> </span><a href="chap4.html#X8484498A787248A2">4.1-12 <span class="Heading">!prefix (id|*) string</span></a> |
| 51 | </span> |
| 52 | <span class="ContSS"><br /><span class="nocss"> </span><a href="chap4.html#X80CE7A5B874A8D6B">4.1-13 <span class="Heading">!select id</span></a> |
| 53 | </span> |
| 54 | <span class="ContSS"><br /><span class="nocss"> </span><a href="chap4.html#X7A5980F782780572">4.1-14 <span class="Heading">!next</span></a> |
| 55 | </span> |
| 56 | <span class="ContSS"><br /><span class="nocss"> </span><a href="chap4.html#X838676D07FBD27CE">4.1-15 <span class="Heading">!previous</span></a> |
| 57 | </span> |
| 58 | <span class="ContSS"><br /><span class="nocss"> </span><a href="chap4.html#X7B6441957CFB191E">4.1-16 <span class="Heading">!replay num [id]</span></a> |
| 59 | </span> |
| 60 | <span class="ContSS"><br /><span class="nocss"> </span><a href="chap4.html#X850D86EE8203F94D">4.1-17 <span class="Heading">!id</span></a> |
| 61 | </span> |
| 62 | <span class="ContSS"><br /><span class="nocss"> </span><a href="chap4.html#X84FE74AA7C34C493">4.1-18 <span class="Heading">!source file</span></a> |
| 63 | </span> |
| 64 | <span class="ContSS"><br /><span class="nocss"> </span><a href="chap4.html#X84BA0EF7803E2920">4.1-19 <span class="Heading">!alias shortcut expansion</span></a> |
| 65 | </span> |
| 66 | <span class="ContSS"><br /><span class="nocss"> </span><a href="chap4.html#X80E7398679C4B87C">4.1-20 <span class="Heading">!unalias shortcut</span></a> |
| 67 | </span> |
| 68 | <span class="ContSS"><br /><span class="nocss"> </span><a href="chap4.html#X79D5CE9A86D5FC6A">4.1-21 <span class="Heading">!eval expr</span></a> |
| 69 | </span> |
| 70 | <span class="ContSS"><br /><span class="nocss"> </span><a href="chap4.html#X831807A67C6B4B2D">4.1-22 <span class="Heading">!run function string</span></a> |
| 71 | </span> |
| 72 | </div></div> |
| 73 | <div class="ContSect"><span class="tocline"><span class="nocss"> </span><a href="chap4.html#X876007F6862BA1BD">4.2 <span class="Heading">GAP functions to access the Shell UI</span></a> |
| 74 | </span> |
| 75 | <div class="ContSSBlock"> |
| 76 | <span class="ContSS"><br /><span class="nocss"> </span><a href="chap4.html#X84154E44780A3402">4.2-1 TextUIRegisterCommand</a></span> |
| 77 | <span class="ContSS"><br /><span class="nocss"> </span><a href="chap4.html#X85312D647966343E">4.2-2 TextUIForegroundThread</a></span> |
| 78 | <span class="ContSS"><br /><span class="nocss"> </span><a href="chap4.html#X7AD377F882A1EEC8">4.2-3 TextUIForegroundThreadName</a></span> |
| 79 | <span class="ContSS"><br /><span class="nocss"> </span><a href="chap4.html#X8117AC7980300EF5">4.2-4 TextUISelectThread</a></span> |
| 80 | <span class="ContSS"><br /><span class="nocss"> </span><a href="chap4.html#X7C9543F07F0FECF5">4.2-5 TextUIOutputHistory</a></span> |
| 81 | <span class="ContSS"><br /><span class="nocss"> </span><a href="chap4.html#X839D85B97B23BC3C">4.2-6 TextUISetOutputHistoryLength</a></span> |
| 82 | <span class="ContSS"><br /><span class="nocss"> </span><a href="chap4.html#X81AB547681B0A2C8">4.2-7 TextUINewSession</a></span> |
| 83 | <span class="ContSS"><br /><span class="nocss"> </span><a href="chap4.html#X7B69D7177D7742D2">4.2-8 TextUIRunCommand</a></span> |
| 84 | <span class="ContSS"><br /><span class="nocss"> </span><a href="chap4.html#X8532502D78CE5475">4.2-9 TextUIWritePrompt</a></span> |
| 85 | </div></div> |
| 86 | </div> |
| 87 | |
| 88 | <h3>4 <span class="Heading">Console User Interface</span></h3> |
| 89 | |
| 90 | <p>HPC-GAP has a multi-threaded user interface to assist with the development and debugging of concurrent programs. This user interface is enabled by default; to disable it, and use the single-threaded interface, GAP has to be started with the <code class="code">-S</code> option.</p> |
| 91 | |
| 92 | <p><a id="X7B958D607F9E0EF3" name="X7B958D607F9E0EF3"></a></p> |
| 93 | |
| 94 | <h4>4.1 <span class="Heading">Console UI commands</span></h4> |
| 95 | |
| 96 | <p>The console user interface provides the user with the option to control threads by commands prefixed with an exclamation mark ("!"). Those commands are listed below.</p> |
| 97 | |
| 98 | <p>For ease of use, users only need to type as many letters of each commands so that it can be unambiguously selected. Thus, the shell will recognize <code class="code">!l</code> as an abbreviation for <code class="code">!list</code>.</p> |
| 99 | |
| 100 | <p><a id="X8149CF507A188BFB" name="X8149CF507A188BFB"></a></p> |
| 101 | |
| 102 | <h5>4.1-1 <span class="Heading">!shell [name]</span></h5> |
| 103 | |
| 104 | <p>Starts a new shell thread and switches to it. Optionally, a name for the thread can be provided.</p> |
| 105 | |
| 106 | |
| 107 | <div class="example"><pre> |
| 108 | <span class="GAPprompt">gap></span> <span class="GAPinput">!shell</span> |
| 109 | --- Switching to thread 4 |
| 110 | [4] gap> |
| 111 | </pre></div> |
| 112 | |
| 113 | <p><a id="X8589D19484DBBA7B" name="X8589D19484DBBA7B"></a></p> |
| 114 | |
| 115 | <h5>4.1-2 <span class="Heading">!fork [name]</span></h5> |
| 116 | |
| 117 | <p>Starts a new background shell thread. Optionally, a name for the thread can be provided.</p> |
| 118 | |
| 119 | |
| 120 | <div class="example"><pre> |
| 121 | <span class="GAPprompt">gap></span> <span class="GAPinput">!fork</span> |
| 122 | --- Created new thread 5 |
| 123 | </pre></div> |
| 124 | |
| 125 | <p><a id="X7E57FE757CBAD4BC" name="X7E57FE757CBAD4BC"></a></p> |
| 126 | |
| 127 | <h5>4.1-3 <span class="Heading">!list</span></h5> |
| 128 | |
| 129 | <p>List all current threads that are interacting with the user. This does not list threads created with <code class="code">CreateThread()</code> that have not entered a break loop.</p> |
| 130 | |
| 131 | |
| 132 | <div class="example"><pre> |
| 133 | <span class="GAPprompt">gap></span> <span class="GAPinput">!list</span> |
| 134 | --- Thread 0 [0] |
| 135 | --- Thread 4 [4] |
| 136 | --- Thread 5 [5] (pending output) |
| 137 | </pre></div> |
| 138 | |
| 139 | <p><a id="X7C2721208570CF5D" name="X7C2721208570CF5D"></a></p> |
| 140 | |
| 141 | <h5>4.1-4 <span class="Heading">!kill id</span></h5> |
| 142 | |
| 143 | <p>Terminates the specified thread.</p> |
| 144 | |
| 145 | <p><a id="X86052CA284DD8E8E" name="X86052CA284DD8E8E"></a></p> |
| 146 | |
| 147 | <h5>4.1-5 <span class="Heading">!break id</span></h5> |
| 148 | |
| 149 | <p>Makes the specified thread enter a break loop.</p> |
| 150 | |
| 151 | <p><a id="X8022D93682DD8ABE" name="X8022D93682DD8ABE"></a></p> |
| 152 | |
| 153 | <h5>4.1-6 <span class="Heading">!name [id] name</span></h5> |
| 154 | |
| 155 | <p>Give the thread with the numerical identifier or name <code class="code">id</code> the name <code class="code">name</code>.</p> |
| 156 | |
| 157 | |
| 158 | <div class="example"><pre> |
| 159 | <span class="GAPprompt">gap></span> <span class="GAPinput">!name 5 test</span> |
| 160 | <span class="GAPprompt">gap></span> <span class="GAPinput">!list</span> |
| 161 | --- Thread 0 [0] |
| 162 | --- Thread 4 [4] |
| 163 | --- Thread test [5] (pending output) |
| 164 | </pre></div> |
| 165 | |
| 166 | <p><a id="X810ED84D848681B6" name="X810ED84D848681B6"></a></p> |
| 167 | |
| 168 | <h5>4.1-7 <span class="Heading">!info id</span></h5> |
| 169 | |
| 170 | <p>Provide information about the thread with the numerical identifier or name <code class="code">id</code>. <em>Not yet implemented</em>.</p> |
| 171 | |
| 172 | <p><a id="X847F80AB873516DC" name="X847F80AB873516DC"></a></p> |
| 173 | |
| 174 | <h5>4.1-8 <span class="Heading">!hide [id|*]</span></h5> |
| 175 | |
| 176 | <p>Hide output from the thread with the numerical identifier or name <code class="code">id</code> when it is not the foreground thread. If no thread is specified, make this the default behavior for future threads.</p> |
| 177 | |
| 178 | <p><a id="X87515BA77E6327EE" name="X87515BA77E6327EE"></a></p> |
| 179 | |
| 180 | <h5>4.1-9 <span class="Heading">!watch [id|*]</span></h5> |
| 181 | |
| 182 | <p>Show output from the thread with the numerical identifier or name <code class="code">id</code> even when it is not the foreground thread. If no thread is specified, make this the default behavior for future threads.</p> |
| 183 | |
| 184 | <p><a id="X8295E57782EEF3ED" name="X8295E57782EEF3ED"></a></p> |
| 185 | |
| 186 | <h5>4.1-10 <span class="Heading">!keep num</span></h5> |
| 187 | |
| 188 | <p>Keep <code class="code">num</code> lines of output from each thread.</p> |
| 189 | |
| 190 | <p><a id="X8305DFEA87C30627" name="X8305DFEA87C30627"></a></p> |
| 191 | |
| 192 | <h5>4.1-11 <span class="Heading">!prompt (id|*) string</span></h5> |
| 193 | |
| 194 | <p>Set the prompt for the specified thread (or for all newly created threads if <code class="code">*</code> was specified) to be <code class="code">string</code>. If the string contains the pattern <code class="code">id</code>, it is replaced with the numerical id of the thread; if it contains the pattern <code class="code">name</code>, it is replaced with the name of the thread; if the thread has no name, the numerical id is displayed instead.</p> |
| 195 | |
| 196 | <p><a id="X8484498A787248A2" name="X8484498A787248A2"></a></p> |
| 197 | |
| 198 | <h5>4.1-12 <span class="Heading">!prefix (id|*) string</span></h5> |
| 199 | |
| 200 | <p>Prefix the output from the specified thread (or for all newly created threads if <code class="code">*</code> was specified) with <code class="code">string</code>. The same substitution rules as for the <code class="code">!prompt</code> command apply.</p> |
| 201 | |
| 202 | <p><a id="X80CE7A5B874A8D6B" name="X80CE7A5B874A8D6B"></a></p> |
| 203 | |
| 204 | <h5>4.1-13 <span class="Heading">!select id</span></h5> |
| 205 | |
| 206 | <p>Make the specified thread the foreground thread.</p> |
| 207 | |
| 208 | |
| 209 | <div class="example"><pre> |
| 210 | <span class="GAPprompt">gap></span> <span class="GAPinput">!select 4</span> |
| 211 | <span class="GAPprompt">gap></span> <span class="GAPinput">!select 4</span> |
| 212 | --- Switching to thread 4 |
| 213 | [4] gap> |
| 214 | </pre></div> |
| 215 | |
| 216 | <p><a id="X7A5980F782780572" name="X7A5980F782780572"></a></p> |
| 217 | |
| 218 | <h5>4.1-14 <span class="Heading">!next</span></h5> |
| 219 | |
| 220 | <p>Make the next thread in numerical order the foreground thread.</p> |
| 221 | |
| 222 | <p><a id="X838676D07FBD27CE" name="X838676D07FBD27CE"></a></p> |
| 223 | |
| 224 | <h5>4.1-15 <span class="Heading">!previous</span></h5> |
| 225 | |
| 226 | <p>Make the previous thread in numerical order the foreground thread.</p> |
| 227 | |
| 228 | <p><a id="X7B6441957CFB191E" name="X7B6441957CFB191E"></a></p> |
| 229 | |
| 230 | <h5>4.1-16 <span class="Heading">!replay num [id]</span></h5> |
| 231 | |
| 232 | <p>Display the last <code class="code">num</code> lines of output of the specified thread. If no thread was specified, display the last <code class="code">num</code> lines of the current foreground thread.</p> |
| 233 | |
| 234 | <p><a id="X850D86EE8203F94D" name="X850D86EE8203F94D"></a></p> |
| 235 | |
| 236 | <h5>4.1-17 <span class="Heading">!id</span></h5> |
| 237 | |
| 238 | <p><code class="code">!id</code> is a shortcut for <code class="code">!select id</code>.</p> |
| 239 | |
| 240 | <p><a id="X84FE74AA7C34C493" name="X84FE74AA7C34C493"></a></p> |
| 241 | |
| 242 | <h5>4.1-18 <span class="Heading">!source file</span></h5> |
| 243 | |
| 244 | <p>Read commands from file <code class="code">file</code>.</p> |
| 245 | |
| 246 | <p><a id="X84BA0EF7803E2920" name="X84BA0EF7803E2920"></a></p> |
| 247 | |
| 248 | <h5>4.1-19 <span class="Heading">!alias shortcut expansion</span></h5> |
| 249 | |
| 250 | <p>Create an alias. After defining the alias, <code class="code">!shortcut 'rest of line'</code> will be replaced with <code class="code">!expansion 'rest of line'</code>.</p> |
| 251 | |
| 252 | <p><a id="X80E7398679C4B87C" name="X80E7398679C4B87C"></a></p> |
| 253 | |
| 254 | <h5>4.1-20 <span class="Heading">!unalias shortcut</span></h5> |
| 255 | |
| 256 | <p>Removes the specified alias.</p> |
| 257 | |
| 258 | <p><a id="X79D5CE9A86D5FC6A" name="X79D5CE9A86D5FC6A"></a></p> |
| 259 | |
| 260 | <h5>4.1-21 <span class="Heading">!eval expr</span></h5> |
| 261 | |
| 262 | <p>Evaluates <code class="code">expr</code> as a command.</p> |
| 263 | |
| 264 | <p><a id="X831807A67C6B4B2D" name="X831807A67C6B4B2D"></a></p> |
| 265 | |
| 266 | <h5>4.1-22 <span class="Heading">!run function string</span></h5> |
| 267 | |
| 268 | <p>Calls the function with name <code class="code">function</code>, passing it the single argument <code class="code">string</code> as a GAP string.</p> |
| 269 | |
| 270 | <p><a id="X876007F6862BA1BD" name="X876007F6862BA1BD"></a></p> |
| 271 | |
| 272 | <h4>4.2 <span class="Heading">GAP functions to access the Shell UI</span></h4> |
| 273 | |
| 274 | <p>There are several functions to access the basic functionality of the shell user interface. Other than <code class="func">TextUIRegisterCommand</code> (<a href="chap4.html#X84154E44780A3402"><span class="RefLink">4.2-1</span></a>), they can only be called from within a registered command.</p> |
| 275 | |
| 276 | <p>Threads can be specified either by their numerical identifier or by their name (as a string). The empty string can be used to specify the current foreground thread.</p> |
| 277 | |
| 278 | <p><a id="X84154E44780A3402" name="X84154E44780A3402"></a></p> |
| 279 | |
| 280 | <h5>4.2-1 TextUIRegisterCommand</h5> |
| 281 | |
| 282 | <div class="func"><table class="func" width="100%"><tr><td class="tdleft"><code class="func">‣ TextUIRegisterCommand</code>( <var class="Arg">name</var>, <var class="Arg">func</var> )</td><td class="tdright">( function )</td></tr></table></div> |
| 283 | <p>Registers the command <code class="code">!name</code> with the shell UI. It will call <func> with the rest of the command line passed as a string argument when typed.</p> |
| 284 | |
| 285 | <p><a id="X85312D647966343E" name="X85312D647966343E"></a></p> |
| 286 | |
| 287 | <h5>4.2-2 TextUIForegroundThread</h5> |
| 288 | |
| 289 | <div class="func"><table class="func" width="100%"><tr><td class="tdleft"><code class="func">‣ TextUIForegroundThread</code>( )</td><td class="tdright">( function )</td></tr></table></div> |
| 290 | <p>Returns the numerical identifier of the current foreground thread.</p> |
| 291 | |
| 292 | <p><a id="X7AD377F882A1EEC8" name="X7AD377F882A1EEC8"></a></p> |
| 293 | |
| 294 | <h5>4.2-3 TextUIForegroundThreadName</h5> |
| 295 | |
| 296 | <div class="func"><table class="func" width="100%"><tr><td class="tdleft"><code class="func">‣ TextUIForegroundThreadName</code>( )</td><td class="tdright">( function )</td></tr></table></div> |
| 297 | <p>Returns the name of the current foreground thread or <code class="keyw">fail</code> if the current foreground thread has no name.</p> |
| 298 | |
| 299 | <p><a id="X8117AC7980300EF5" name="X8117AC7980300EF5"></a></p> |
| 300 | |
| 301 | <h5>4.2-4 TextUISelectThread</h5> |
| 302 | |
| 303 | <div class="func"><table class="func" width="100%"><tr><td class="tdleft"><code class="func">‣ TextUISelectThread</code>( <var class="Arg">id</var> )</td><td class="tdright">( function )</td></tr></table></div> |
| 304 | <p>Makes <var class="Arg">id</var> the current foreground thread. Returns <code class="keyw">true</code> or <code class="keyw">false</code> to indicate success.</p> |
| 305 | |
| 306 | <p><a id="X7C9543F07F0FECF5" name="X7C9543F07F0FECF5"></a></p> |
| 307 | |
| 308 | <h5>4.2-5 TextUIOutputHistory</h5> |
| 309 | |
| 310 | <div class="func"><table class="func" width="100%"><tr><td class="tdleft"><code class="func">‣ TextUIOutputHistory</code>( <var class="Arg">id</var>, <var class="Arg">count</var> )</td><td class="tdright">( function )</td></tr></table></div> |
| 311 | <p>Returns the last <var class="Arg">count</var> lines of the thread specified by <var class="Arg">id</var> (which can be a numerical identifier or a name). Returns <code class="keyw">fail</code> if there is no such thread.</p> |
| 312 | |
| 313 | <p><a id="X839D85B97B23BC3C" name="X839D85B97B23BC3C"></a></p> |
| 314 | |
| 315 | <h5>4.2-6 TextUISetOutputHistoryLength</h5> |
| 316 | |
| 317 | <div class="func"><table class="func" width="100%"><tr><td class="tdleft"><code class="func">‣ TextUISetOutputHistoryLength</code>( <var class="Arg">length</var> )</td><td class="tdright">( function )</td></tr></table></div> |
| 318 | <p>By default, retain <var class="Arg">length</var> lines of output history from each thread.</p> |
| 319 | |
| 320 | <p><a id="X81AB547681B0A2C8" name="X81AB547681B0A2C8"></a></p> |
| 321 | |
| 322 | <h5>4.2-7 TextUINewSession</h5> |
| 323 | |
| 324 | <div class="func"><table class="func" width="100%"><tr><td class="tdleft"><code class="func">‣ TextUINewSession</code>( <var class="Arg">foreground</var>, <var class="Arg">name</var> )</td><td class="tdright">( function )</td></tr></table></div> |
| 325 | <p>Creates a new shell thread. Here, <var class="Arg">foreground</var> is a boolean variable specifying whether it should be made the new foreground thread and <var class="Arg">name</var> is the name of the thread. The empty string can be used to leave the thread without a name.</p> |
| 326 | |
| 327 | <p><a id="X7B69D7177D7742D2" name="X7B69D7177D7742D2"></a></p> |
| 328 | |
| 329 | <h5>4.2-8 TextUIRunCommand</h5> |
| 330 | |
| 331 | <div class="func"><table class="func" width="100%"><tr><td class="tdleft"><code class="func">‣ TextUIRunCommand</code>( <var class="Arg">command</var> )</td><td class="tdright">( function )</td></tr></table></div> |
| 332 | <p>Run the command denoted by <var class="Arg">command</var> as though a user had typed it. The command must not contain a newline character.</p> |
| 333 | |
| 334 | <p><a id="X8532502D78CE5475" name="X8532502D78CE5475"></a></p> |
| 335 | |
| 336 | <h5>4.2-9 TextUIWritePrompt</h5> |
| 337 | |
| 338 | <div class="func"><table class="func" width="100%"><tr><td class="tdleft"><code class="func">‣ TextUIWritePrompt</code>( )</td><td class="tdright">( function )</td></tr></table></div> |
| 339 | <p>Display a prompt for the current thread.</p> |
| 340 | |
| 341 | |
| 342 | <div class="chlinkprevnextbot"> <a href="chap0.html">[Top of Book]</a> <a href="chap0.html#contents">[Contents]</a> <a href="chap3.html">[Previous Chapter]</a> <a href="chap5.html">[Next Chapter]</a> </div> |
| 343 | |
| 344 | |
| 345 | <div class="chlinkbot"><span class="chlink1">Goto Chapter: </span><a href="chap0.html">Top</a> <a href="chap1.html">1</a> <a href="chap2.html">2</a> <a href="chap3.html">3</a> <a href="chap4.html">4</a> <a href="chap5.html">5</a> <a href="chap6.html">6</a> <a href="chap7.html">7</a> <a href="chap8.html">8</a> <a href="chap9.html">9</a> <a href="chap10.html">10</a> <a href="chap11.html">11</a> <a href="chapInd.html">Ind</a> </div> |
| 346 | |
| 347 | <hr /> |
| 348 | <p class="foot">generated by <a href="https://www.math.rwth-aachen.de/~Frank.Luebeck/GAPDoc">GAPDoc2HTML</a></p> |
| 349 | </body> |
| 350 | </html> |