SSL chap3_mj.html
Sprache: HTML
|
|
| products/sources/formale Sprachen/GAP/doc/ref/chap3_mj.html |
 |
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en">
<head>
<script type="text/javascript"
src="https://cdn.jsdelivr.net/npm/mathjax@2/MathJax.js?config=TeX-AMS-MML_HTMLorMML">
</script>
<title>GAP (ref) - Chapter 3: Running GAP</title>
<meta http-equiv="content-type" content="text/html; charset=UTF-8" />
<meta name="generator" content="GAPDoc2HTML" />
<link rel="stylesheet" type="text/css" href="manual.css" />
<script src="manual.js" type="text/javascript"></script>
<script type="text/javascript">overwriteStyle();</script>
</head>
<body class="chap3" onload="jscontent()">
<div class="chlinktop"><span class="chlink1">Goto Chapter: </span><a href="chap0_mj.html">Top</a> <a href="chap1_mj.html">1</a> <a href="chap2_mj.html">2</a> <a href="chap3_mj.html">3</a> <a href="chap4_mj.html">4</a> <a href="chap5_mj.html">5</a> <a href="chap6_mj.html">6</a> <a href="chap7_mj.html">7</a> <a href="chap8_mj.html">8</a> <a href="chap9_mj.html">9</a> <a href="chap10_mj.html">10</a> <a href="chap11_mj.html">11</a> <a href="chap12_mj.html">12</a> <a href="chap13_mj.html">13</a> <a href="chap14_mj.html">14</a> <a href="chap15_mj.html">15</a> <a href="chap16_mj.html">16</a> <a href="chap17_mj.html">17</a> <a href="chap18_mj.html">18</a> <a href="chap19_mj.html">19</a> <a href="chap20_mj.html">20</a> <a href="chap21_mj.html">21</a> <a href="chap22_mj.html">22</a> <a href="chap23_mj.html">23</a> <a href="chap24_mj.html">24</a> <a href="chap25_mj.html">25</a> <a href="chap26_mj.html">26</a> <a href="chap27_mj.html">27</a> <a href="chap28_mj.html">28</a> <a href="chap29_mj.html">29</a> <a href="chap30_mj.html">30</a> <a href="chap31_mj.html">31</a> <a href="chap32_mj.html">32</a> <a href="chap33_mj.html">33</a> <a href="chap34_mj.html">34</a> <a href="chap35_mj.html">35</a> <a href="chap36_mj.html">36</a> <a href="chap37_mj.html">37</a> <a href="chap38_mj.html">38</a> <a href="chap39_mj.html">39</a> <a href="chap40_mj.html">40</a> <a href="chap41_mj.html">41</a> <a href="chap42_mj.html">42</a> <a href="chap43_mj.html">43</a> <a href="chap44_mj.html">44</a> <a href="chap45_mj.html">45</a> <a href="chap46_mj.html">46</a> <a href="chap47_mj.html">47</a> <a href="chap48_mj.html">48</a> <a href="chap49_mj.html">49</a> <a href="chap50_mj.html">50</a> <a href="chap51_mj.html">51</a> <a href="chap52_mj.html">52</a> <a href="chap53_mj.html">53</a> <a href="chap54_mj.html">54</a> <a href="chap55_mj.html">55</a> <a href="chap56_mj.html">56</a> <a href="chap57_mj.html">57</a> <a href="chap58_mj.html">58</a> <a href="chap59_mj.html">59</a> <a href="chap60_mj.html">60</a> <a href="chap61_mj.html">61</a> <a href="chap62_mj.html">62</a> <a href="chap63_mj.html">63</a> <a href="chap64_mj.html">64</a> <a href="chap65_mj.html">65</a> <a href="chap66_mj.html">66</a> <a href="chap67_mj.html">67</a> <a href="chap68_mj.html">68</a> <a href="chap69_mj.html">69</a> <a href="chap70_mj.html">70</a> <a href="chap71_mj.html">71</a> <a href="chap72_mj.html">72</a> <a href="chap73_mj.html">73</a> <a href="chap74_mj.html">74</a> <a href="chap75_mj.html">75</a> <a href="chap76_mj.html">76</a> <a href="chap77_mj.html">77</a> <a href="chap78_mj.html">78</a> <a href="chap79_mj.html">79</a> <a href="chap80_mj.html">80</a> <a href="chap81_mj.html">81</a> <a href="chap82_mj.html">82</a> <a href="chap83_mj.html">83</a> <a href="chap84_mj.html">84</a> <a href="chap85_mj.html">85</a> <a href="chap86_mj.html">86</a> <a href="chap87_mj.html">87</a> <a href="chapBib_mj.html">Bib</a> <a href="chapInd_mj.html">Ind</a> </div>
<div class="chlinkprevnexttop"> <a href="chap0_mj.html">[Top of Book]</a> <a href="chap0_mj.html#contents">[Contents]</a> <a href="chap2_mj.html">[Previous Chapter]</a> <a href="chap4_mj.html">[Next Chapter]</a> </div>
<p id="mathjaxlink" class="pcenter"><a href="chap3.html">[MathJax off]</a></p>
<p><a id="X79CCD3A6821E5A37" name="X79CCD3A6821E5A37"></a></p>
<div class="ChapSects"><a href="chap3_mj.html#X79CCD3A6821E5A37">3 <span class="Heading">Running GAP</span></a>
<div class="ContSect"><span class="tocline"><span class="nocss"> </span><a href="chap3_mj.html#X782751D5858A6EAF">3.1 <span class="Heading">Command Line Options</span></a>
</span>
</div>
<div class="ContSect"><span class="tocline"><span class="nocss"> </span><a href="chap3_mj.html#X7FD66F977A3B02DF">3.2 <span class="Heading">The gap.ini and gaprc files</span></a>
</span>
<div class="ContSSBlock">
<span class="ContSS"><br /><span class="nocss"> </span><a href="chap3_mj.html#X87DF11C885E73583">3.2-1 <span class="Heading">The gap.ini file</span></a>
</span>
<span class="ContSS"><br /><span class="nocss"> </span><a href="chap3_mj.html#X84D4CF587D437C00">3.2-2 <span class="Heading">The gaprc file</span></a>
</span>
<span class="ContSS"><br /><span class="nocss"> </span><a href="chap3_mj.html#X7B0AD104839B6C3C">3.2-3 <span class="Heading">Configuring User preferences</span></a>
</span>
<span class="ContSS"><br /><span class="nocss"> </span><a href="chap3_mj.html#X7F1DF6757B248014">3.2-4 DeclareUserPreference</a></span>
<span class="ContSS"><br /><span class="nocss"> </span><a href="chap3_mj.html#X870A11E7864F9CA7">3.2-5 <span class="Heading">User Preferences Defined by <strong class="pkg">GAP</strong></span></a>
</span>
</div></div>
<div class="ContSect"><span class="tocline"><span class="nocss"> </span><a href="chap3_mj.html#X7CB282757ACB1C09">3.3 <span class="Heading">Saving and Loading a Workspace</span></a>
</span>
<div class="ContSSBlock">
<span class="ContSS"><br /><span class="nocss"> </span><a href="chap3_mj.html#X876544A57C73C488">3.3-1 SaveWorkspace</a></span>
</div></div>
<div class="ContSect"><span class="tocline"><span class="nocss"> </span><a href="chap3_mj.html#X83BF07587F2CC6CD">3.4 <span class="Heading">Testing for the System Architecture</span></a>
</span>
<div class="ContSSBlock">
<span class="ContSS"><br /><span class="nocss"> </span><a href="chap3_mj.html#X7C825AF087A27884">3.4-1 ARCH_IS_UNIX</a></span>
<span class="ContSS"><br /><span class="nocss"> </span><a href="chap3_mj.html#X82A6893A7EC8FA72">3.4-2 ARCH_IS_MAC_OS_X</a></span>
<span class="ContSS"><br /><span class="nocss"> </span><a href="chap3_mj.html#X7A14B659847B8627">3.4-3 ARCH_IS_WINDOWS</a></span>
<span class="ContSS"><br /><span class="nocss"> </span><a href="chap3_mj.html#X87E7CC3B8395BBB3">3.4-4 ARCH_IS_WSL</a></span>
</div></div>
<div class="ContSect"><span class="tocline"><span class="nocss"> </span><a href="chap3_mj.html#X8719B2118511645F">3.5 <span class="Heading">Global Values that Control the <strong class="pkg">GAP</strong> Session</span></a>
</span>
<div class="ContSSBlock">
<span class="ContSS"><br /><span class="nocss"> </span><a href="chap3_mj.html#X8354754E7935F935">3.5-1 GAPInfo</a></span>
</div></div>
<div class="ContSect"><span class="tocline"><span class="nocss"> </span><a href="chap3_mj.html#X818F2DDC863C381E">3.6 <span class="Heading">Coloring the Prompt and Input</span></a>
</span>
<div class="ContSSBlock">
<span class="ContSS"><br /><span class="nocss"> </span><a href="chap3_mj.html#X84F3481C8466C7FC">3.6-1 ColorPrompt</a></span>
</div></div>
</div>
<h3>3 <span class="Heading">Running GAP</span></h3>
<p>This chapter contains information about the command line options for <strong class="pkg">GAP</strong> (see <a href="chap3_mj.html#X782751D5858A6EAF"><span class="RefLink">3.1</span></a>), about some files in user specific <strong class="pkg">GAP</strong> root directory (see <a href="chap3_mj.html#X7FD66F977A3B02DF"><span class="RefLink">3.2</span></a>) and about saving and loading a <strong class="pkg">GAP</strong> workspace (see <a href="chap3_mj.html#X7CB282757ACB1C09"><span class="RefLink">3.3</span></a>).</p>
<p><a id="X782751D5858A6EAF" name="X782751D5858A6EAF"></a></p>
<h4>3.1 <span class="Heading">Command Line Options</span></h4>
<p>When you start <strong class="pkg">GAP</strong> from a command line or from a script you may specify a number of options on the command-line to change the default behaviour of <strong class="pkg">GAP</strong>. All these options start with a hyphen <code class="code">-</code>, followed by a single letter. Options must not be grouped, e.g., <code class="code">gap -gq</code> is invalid, use <code class="code">gap -g -q</code> instead. Some options require an argument, this must follow the option and must be separated by whitespace, e.g., <code class="code">gap -m 256m</code>, it is not correct to say <code class="code">gap -m256m</code> instead. Certain boolean options (<code class="code">-b</code>, <code class="code">-q</code>, <code class="code">-e</code>, <code class="code">-r</code>, <code class="code">-A</code>, <code class="code">-D</code>, <code class="code">-M</code>, <code class="code">-T</code>, <code class="code">-X</code>, <code class="code">-Y</code>) toggle the current value so that <code class="code">gap -b -b</code> is equivalent to <code class="code">gap</code> and to <code class="code">gap -b -q -b -q</code> etc.</p>
<p><strong class="pkg">GAP</strong> for UNIX will distinguish between upper and lower case options.</p>
<p>As described in the <strong class="pkg">GAP</strong> installation instructions (see the <code class="file">INSTALL.md</code> file in the <strong class="pkg">GAP</strong> root directory), usually you will not execute <strong class="pkg">GAP</strong> directly. Instead you will call a (shell) script, with the name <code class="code">gap</code>, which in turn executes <strong class="pkg">GAP</strong>. This script sets some options which are necessary to make <strong class="pkg">GAP</strong> work on your system. This means that the default settings mentioned below may not be what you experience when you execute <strong class="pkg">GAP</strong> on your system.</p>
<p>During a <strong class="pkg">GAP</strong> session, one can find the current values of command line options in the record <code class="code">GAPInfo.CommandLineOptions</code> (see <code class="func">GAPInfo</code> (<a href="chap3_mj.html#X8354754E7935F935"><span class="RefLink">3.5-1</span></a>)), whose component names are the command line options (without the leading <code class="code">-</code>).</p>
<dl>
<dt><strong class="Mark">
<code class="code">-A</code></strong></dt>
<dd><p>By default, some needed and suggested <strong class="pkg">GAP</strong> packages (see <a href="chap76_mj.html#X79F76C1E834BFDCC"><span class="RefLink">76</span></a>) are loaded, if present, into the <strong class="pkg">GAP</strong> session when it starts. This option disables (actually toggles) the loading of suggested packages, which can be useful for debugging or testing. The needed packages (and their needed packages, and so on) are loaded in any case.</p>
</dd>
<dt><strong class="Mark">
<code class="code">-b</code></strong></dt>
<dd><p>tells <strong class="pkg">GAP</strong> to suppress the banner. That means that <strong class="pkg">GAP</strong> immediately prints the prompt. This is useful when, after a while, you get tired of the banner. This option can be repeated to enable the banner; each <code class="code">-b</code> toggles the state of banner display.</p>
</dd>
<dt><strong class="Mark">
<code class="code">-c </code><var class="Arg">gapcode</var></strong></dt>
<dd><p>tells <strong class="pkg">GAP</strong> to execute the given <strong class="pkg">GAP</strong> code as if it was entered into a temporary file which then is processed together with the other files given to GAP (see the explanation at the end of this list for further details on how filenames are processed).</p>
</dd>
<dt><strong class="Mark">
<code class="code">-D</code></strong></dt>
<dd><p>The <code class="code">-D</code> option tells <strong class="pkg">GAP</strong> to print short messages when it is reading files or loading modules. This option may be repeated to toggle this behavior on and off. The message,</p>
<div class="example"><pre>
#I READ_GAP_ROOT: loading 'lib/kernel.g' as GAP file
</pre></div>
<p>tells you that <strong class="pkg">GAP</strong> has started to read the library file <code class="file">lib/kernel.g</code>.</p>
<div class="example"><pre>
#I READ_GAP_ROOT: loading 'lib/kernel.g' statically
</pre></div>
<p>tells you that <strong class="pkg">GAP</strong> has used the compiled version of the library file <code class="file">lib/kernel.g</code>. This compiled module was statically linked to the <strong class="pkg">GAP</strong> kernel at the time the kernel was created.</p>
<div class="example"><pre>
#I READ_GAP_ROOT: loading 'lib/kernel.g' dynamically
</pre></div>
<p>tells you that <strong class="pkg">GAP</strong> has loaded the compiled version of the library file <code class="file">lib/kernel.g</code>. This compiled module was dynamically loaded to the <strong class="pkg">GAP</strong> kernel at runtime from a corresponding <code class="code">.so</code> file.</p>
<p>Obviously, this is a debugging option and most users will not need it.</p>
</dd>
<dt><strong class="Mark">
<code class="code">-E</code></strong></dt>
<dd><p>If your <strong class="pkg">GAP</strong> installation uses the <code class="code">readline</code> library for command line editing (see <a href="chap6_mj.html#X7AD8D65F7BA1C3E0"><span class="RefLink">6.9</span></a>), this may be disabled by using <code class="code">-E</code> option. This option may be repeated to toggle this behavior on and off. If your <strong class="pkg">GAP</strong> installation does not use the <code class="code">readline</code> library (you can check by <code class="code">IsBound(GAPInfo.UseReadline);</code> if this is the case), this option will have no effect at all.</p>
</dd>
<dt><strong class="Mark">
<code class="code">-e</code></strong></dt>
<dd><p>tells <strong class="pkg">GAP</strong> not to quit when receiving a <strong class="button">Ctrl-D</strong> on an empty input line (see <a href="chap6_mj.html#X83033EEB81CF4F49"><span class="RefLink">6.4-1</span></a>). This option should not be used when the input is a file or pipe. This option may be repeated to toggle this behavior on and off.</p>
</dd>
<dt><strong class="Mark">
<code class="code">-f</code></strong></dt>
<dd><p>tells <strong class="pkg">GAP</strong> to enable the line editing and history (see <a href="chap6_mj.html#X82234FD181899530"><span class="RefLink">6.8</span></a>).</p>
<p>In general line editing will be enabled if the input is connected to a terminal. There are rare circumstances, for example when using a remote session with a corrupted telnet implementation, when this detection fails. Try using <code class="code">-f</code> in this case to enable line editing. This option does not toggle; you must use <code class="code">-n</code> to disable line editing.</p>
</dd>
<dt><strong class="Mark">
<code class="code">-g</code></strong></dt>
<dd><p>tells <strong class="pkg">GAP</strong> to print a message every time a full garbage collection is performed. (This is available only if the <code class="code">GASMAN</code> garbage collector is used, see <a href="chap7_mj.html#X7F1F741D7F0899D1"><span class="RefLink">7.12-1</span></a>.)</p>
<div class="example"><pre>
#G FULL 44580/2479kb live 57304/4392kb dead 734/4096kb free
</pre></div>
<p>For example, this tells you that there are 44580 live objects that survived a full garbage collection, that 57304 unused objects were reclaimed by it, and that 734 kilobytes from a total allocated memory of 4096 kilobytes are available afterwards.</p>
</dd>
<dt><strong class="Mark">
<code class="code">-g -g</code></strong></dt>
<dd><p>If you give the option <code class="code">-g</code> twice, <strong class="pkg">GAP</strong> prints a information message every time a partial or full garbage collection is performed. (This is available only if the <code class="code">GASMAN</code> garbage collector is used, see <a href="chap7_mj.html#X7F1F741D7F0899D1"><span class="RefLink">7.12-1</span></a>.) The message,</p>
<div class="example"><pre>
#G PART 9405/961kb+live 7525/1324kb+dead 2541/4096kb free
</pre></div>
<p>for example, tells you that 9405 objects survived the partial garbage collection and 7525 objects were reclaimed, and that 2541 kilobytes from a total allocated memory of 4096 kilobytes are available afterwards.</p>
</dd>
<dt><strong class="Mark">
<code class="code">-h</code></strong></dt>
<dd></dd>
<dt><strong class="Mark">
<code class="code">--help</code></strong></dt>
<dd><p>tells <strong class="pkg">GAP</strong> to print a summary of all available options. <strong class="pkg">GAP</strong> exits after printing the summary, all options coming after are ignored.</p>
</dd>
<dt><strong class="Mark">
<code class="code">-K </code><var class="Arg">memory</var></strong></dt>
<dd></dd>
<dt><strong class="Mark">
<code class="code">--limitworkspace </code><var class="Arg">memory</var></strong></dt>
<dd><p>is like the <code class="code">-o</code> option. But while the latter actually allocates more memory if the system allows it and then prints a warning inside a break loop the <code class="code">-K</code> options tells <strong class="pkg">GAP</strong> not even to try to allocate more memory. Instead <strong class="pkg">GAP</strong> just exits with an appropriate message. The default is that this feature is switched off. You have to set it explicitly when you want to enable it.</p>
</dd>
<dt><strong class="Mark">
<code class="code">-L </code><var class="Arg">filename</var></strong></dt>
<dd><p>The option <code class="code">-L</code> tells <strong class="pkg">GAP</strong> to load a saved workspace. See section <a href="chap3_mj.html#X7CB282757ACB1C09"><span class="RefLink">3.3</span></a>. (This is available only if the <code class="code">GASMAN</code> garbage collector is used, see <a href="chap7_mj.html#X7F1F741D7F0899D1"><span class="RefLink">7.12-1</span></a>.)</p>
</dd>
<dt><strong class="Mark">
<code class="code">-l </code><var class="Arg">path_list</var></strong></dt>
<dd></dd>
<dt><strong class="Mark">
<code class="code">--roots </code><var class="Arg">path_list</var></strong></dt>
<dd><p>can be used to set or modify <strong class="pkg">GAP</strong>'s list of root directories (see 9.2). The default if no -l option is given is the current directory ./. This option can be used several times. Depending on the -r option a further user specific path is prepended to the list of root directories (the path in GAPInfo.UserGapRoot).
<p><var class="Arg">path_list</var> should be a list of directories separated by semicolons. No whitespace is permitted before or after a semicolon. If <var class="Arg">path_list</var> does not start or end with a semicolon, then <var class="Arg">path_list</var> replaces the existing list of root directories. If <var class="Arg">path_list</var> starts with a semicolon, then <var class="Arg">path_list</var> is appended to the existing list of root directories. If <var class="Arg">path_list</var> ends with a semicolon and does not start with one, then the new list of root directories is the concatenation of <var class="Arg">path_list</var> and the existing list of root directories. After <strong class="pkg">GAP</strong> has completed its startup procedure and displays the prompt, the list of root directories can be seen in the variable <code class="code">GAPInfo.RootPaths</code>, see <code class="func">GAPInfo</code> (<a href="chap3_mj.html#X8354754E7935F935"><span class="RefLink">3.5-1</span></a>).</p>
<p>Usually this option is used inside a startup script to specify where <strong class="pkg">GAP</strong> is installed on the system. The <code class="code">-l</code> option can also be used by individual users to tell <strong class="pkg">GAP</strong> about privately installed modifications of the library, additional <strong class="pkg">GAP</strong> packages and so on. Section <a href="chap9_mj.html#X7A4973627A5DB27D"><span class="RefLink">9.2</span></a> explains how several root paths can be used to do this.</p>
<p><strong class="pkg">GAP</strong> will attempt to read the file <var class="Arg">root_dir</var><code class="file">/lib/init.g</code> during startup where <var class="Arg">root_dir</var> is one of the directories in its list of root directories. If <strong class="pkg">GAP</strong> cannot find its <code class="file">init.g</code> file it will print the following warning.</p>
<div class="example"><pre>
gap: hmm, I cannot find 'lib/init.g' maybe use option '-l <gaproot>'?
</pre></div>
<p>It is not possible to use <strong class="pkg">GAP</strong> without the library files, so you must not ignore this warning. You should leave <strong class="pkg">GAP</strong> and start it again, specifying the correct root path using the <code class="code">-l</code> option.</p>
</dd>
<dt><strong class="Mark">
<code class="code">--packagedirs </code><var class="Arg">path_list</var></strong></dt>
<dd><p>can be used to add paths to <strong class="pkg">GAP</strong>'s list of package directories (see 9.3). The list always contains all subdirectories pkg in a GAP root directory.
<p><var class="Arg">path_list</var> should be a list of directories separated by semicolons. No whitespace is permitted before or after a semicolon, and the first and last character of <var class="Arg">path_list</var> may not be a semicolon. After <strong class="pkg">GAP</strong> has completed its startup procedure and displays the prompt, the list of package directories can be seen in the variable <code class="code">GAPInfo.PackageDirectories</code>, see <code class="func">GAPInfo</code> (<a href="chap3_mj.html#X8354754E7935F935"><span class="RefLink">3.5-1</span></a>).</p>
<p>Usually this option is used inside a startup script to specify where additional <strong class="pkg">GAP</strong> packages are located on the system. The <code class="code">--packagedirs</code> option can also be used by individual users to tell <strong class="pkg">GAP</strong> about additional <strong class="pkg">GAP</strong> packages, without the need to set up a complete root directory structure.</p>
</dd>
<dt><strong class="Mark">
<code class="code">-M</code></strong></dt>
<dd><p>tells <strong class="pkg">GAP</strong> not to check for, nor to use, compiled versions of library files. This option may be repeated to toggle this behavior on and off.</p>
</dd>
<dt><strong class="Mark">
<code class="code">-m </code><var class="Arg">memory</var></strong></dt>
<dd></dd>
<dt><strong class="Mark">
<code class="code">--minworkspace </code><var class="Arg">memory</var></strong></dt>
<dd><p>tells <strong class="pkg">GAP</strong> to allocate <var class="Arg">memory</var> bytes at startup time. If the last character of <var class="Arg">memory</var> is <code class="code">k</code> or <code class="code">K</code> it is taken as kilobytes, if the last character is <code class="code">m</code> or <code class="code">M</code> <var class="Arg">memory</var> is taken as megabytes and if it is <code class="code">g</code> or <code class="code">G</code> it is taken as gigabytes.</p>
<p>This amount of memory should be large enough so that computations do not require too many garbage collections. On the other hand, if <strong class="pkg">GAP</strong> allocates more memory than is physically available, it will spend most of the time paging.</p>
</dd>
<dt><strong class="Mark">
<code class="code">-n</code></strong></dt>
<dd><p>tells <strong class="pkg">GAP</strong> to disable the line editing and history (see <a href="chap6_mj.html#X82234FD181899530"><span class="RefLink">6.8</span></a>).</p>
<p>You may want to do this if the command line editing is incompatible with another program that is used to run <strong class="pkg">GAP</strong>. For example if <strong class="pkg">GAP</strong> is run from inside a GNU Emacs shell window, <code class="code">-n</code> should be used since otherwise every input line will be echoed twice, once by Emacs and once by <strong class="pkg">GAP</strong>. This option does not toggle; you must use <code class="code">-f</code> to enable line editing.</p>
</dd>
<dt><strong class="Mark">
<code class="code">-O</code></strong></dt>
<dd><p>disables loading obsolete variables (see Chapter <a href="chap77_mj.html#X78C85ED17F00DCC1"><span class="RefLink">77</span></a>). This option is used mainly for testing purposes, for example in order to make sure that a <strong class="pkg">GAP</strong> package or one's own GAP code does not rely on the obsolete variables.
</dd>
<dt><strong class="Mark">
<code class="code">-o </code><var class="Arg">memory</var></strong></dt>
<dd></dd>
<dt><strong class="Mark">
<code class="code">--maxworkspace </code><var class="Arg">memory</var></strong></dt>
<dd><p>tells <strong class="pkg">GAP</strong> to allocate at most <var class="Arg">memory</var> bytes without asking. The option argument <var class="Arg">memory</var> is specified as with the <code class="code">-m</code> option.</p>
<p>If more than this amount is required during the <strong class="pkg">GAP</strong> session, <strong class="pkg">GAP</strong> prints an error message and enters a break loop. In that case you can enter <code class="code">return;</code> which implicitly doubles the amount given with this option.</p>
</dd>
<dt><strong class="Mark">
<code class="code">-q</code></strong></dt>
<dd><p>tells <strong class="pkg">GAP</strong> to be quiet. This means that <strong class="pkg">GAP</strong> displays neither the banner nor the prompt <code class="code">gap></code>. This is useful if you want to run <strong class="pkg">GAP</strong> as a filter with input and output redirection and want to avoid the banner and the prompts appearing in the output file. This option may be repeated to disable quiet mode; each <code class="code">-q</code> toggles quiet mode.</p>
</dd>
<dt><strong class="Mark">
<code class="code">-R</code></strong></dt>
<dd><p>The option <code class="code">-R</code> tells <strong class="pkg">GAP</strong> not to load a saved workspace previously specified via the <code class="code">-L</code> option. This option does not toggle.</p>
</dd>
<dt><strong class="Mark">
<code class="code">-r</code></strong></dt>
<dd><p>The option <code class="code">-r</code> tells <strong class="pkg">GAP</strong> to ignore any user specific configuration files. In particular, the user specific root directory <code class="code">GAPInfo.UserGapRoot</code> is not added to the <strong class="pkg">GAP</strong> root directories and so <code class="file">gap.ini</code> and <code class="file">gaprc</code> files that may be contained in that directory are not read, see <a href="chap3_mj.html#X7FD66F977A3B02DF"><span class="RefLink">3.2</span></a>. Multiple <code class="code">-r</code> options toggle this behaviour.</p>
</dd>
<dt><strong class="Mark">
<code class="code">-s </code><var class="Arg">memory</var></strong></dt>
<dd><p>With this option <strong class="pkg">GAP</strong> does not use <code class="code">sbrk</code> to get memory from the operating system. Instead it uses <code class="code">mmap</code>, <code class="code">malloc</code> or some other command for the amount given with this option to allocate space for the <code class="code">GASMAN</code> memory manager. Usually <strong class="pkg">GAP</strong> does not really use all of this memory, the options <code class="code">-m</code>, <code class="code">-o</code>, <code class="code">-K</code> still work as documented. This feature assumes that the operating system only assigns physical memory to the <strong class="pkg">GAP</strong> process when it is accessed, so that specifying a large amount of memory with <code class="code">-s</code> should not cause any performance problem. The advantage of using this option is that <strong class="pkg">GAP</strong> can work together with kernel modules which allocate a lot of memory with <code class="code">malloc</code>.</p>
<p>The option argument <var class="Arg">memory</var> is specified as with the <code class="code">-m</code> option.</p>
</dd>
<dt><strong class="Mark">
<code class="code">-T</code></strong></dt>
<dd><p>suppresses the usual break loop behaviour of <strong class="pkg">GAP</strong>. With this option <strong class="pkg">GAP</strong> behaves as if the user <code class="keyw">quit</code> immediately from every break loop, and also suppresses displaying any error backtrace. This is intended for automated testing of <strong class="pkg">GAP</strong>. This option may be repeated to toggle this behavior on and off.</p>
</dd>
<dt><strong class="Mark">
<code class="code">--version</code></strong></dt>
<dd><p>tells <strong class="pkg">GAP</strong> to print its version and then exit immediately, all options coming after are ignored.</p>
</dd>
<dt><strong class="Mark">
<code class="code">-x </code><var class="Arg">length</var></strong></dt>
<dd></dd>
<dt><strong class="Mark">
<code class="code">--width </code><var class="Arg">length</var></strong></dt>
<dd><p>With this option you can tell <strong class="pkg">GAP</strong> how long lines are. <strong class="pkg">GAP</strong> uses this value to decide when to split long lines. After starting <strong class="pkg">GAP</strong> you may use <code class="func">SizeScreen</code> (<a href="chap6_mj.html#X8723E0A1837894F3"><span class="RefLink">6.12-1</span></a>) to alter the line length.</p>
<p>The default value is 80, unless another value can be obtained from the Operating System, which is the right value if you have a standard terminal application. If you have a larger monitor, or use a smaller font, or redirect the output to a printer, you may want to increase this value.</p>
</dd>
<dt><strong class="Mark">
<code class="code">-y </code><var class="Arg">length</var></strong></dt>
<dd></dd>
<dt><strong class="Mark">
<code class="code">--line </code><var class="Arg">length</var></strong></dt>
<dd><p>With this option you can tell <strong class="pkg">GAP</strong> how many lines your screen has. <strong class="pkg">GAP</strong> uses this value to decide after how many lines of on-line help it should wait. After starting <strong class="pkg">GAP</strong> you may use <code class="func">SizeScreen</code> (<a href="chap6_mj.html#X8723E0A1837894F3"><span class="RefLink">6.12-1</span></a>) to alter the number of lines.</p>
<p>The default value is 24, unless another value can be obtained from the Operating System, which is the right value if you have a standard terminal application. If you have a larger monitor, or use a smaller font, or redirect the output to a printer, you may want to increase this value.</p>
</dd>
<dt><strong class="Mark">
<var class="Arg">filename</var> ...</strong></dt>
<dd><p>Further arguments are taken as filenames of files that are read by <strong class="pkg">GAP</strong> during startup, after the system and private init files are read, but before the first prompt is printed. Filenames ending with <code class="code">.tst</code> are processed by <code class="func">Test</code> (<a href="chap7_mj.html#X87712F9D8732193C"><span class="RefLink">7.10-2</span></a>), all other files by <code class="func">Read</code> (<a href="chap9_mj.html#X8373AC6B7D5F9167"><span class="RefLink">9.8-1</span></a>). These files and also commands specified via the <code class="code">-c</code> option are processed in the order in which they appear on the command line. If a file cannot be opened or if executing the code in it raises an error, then the usual error handling for <code class="func">Read</code> (<a href="chap9_mj.html#X8373AC6B7D5F9167"><span class="RefLink">9.8-1</span></a>) respectively <code class="func">Test</code> (<a href="chap7_mj.html#X87712F9D8732193C"><span class="RefLink">7.10-2</span></a>) kicks in. If this enters a break loop, then exiting that break loop also exits <strong class="pkg">GAP</strong>.</p>
</dd>
</dl>
<p>Additional options, such as <code class="code">-C</code>, <code class="code">-P</code> and<code class="code">-p</code> are used internally by the <strong class="pkg">gac</strong> script (see <a href="chap76_mj.html#X85672DDD7D34D5F0"><span class="RefLink">76.3-11</span></a>) and/or on specific operating systems.</p>
<p><a id="X7FD66F977A3B02DF" name="X7FD66F977A3B02DF"></a></p>
<h4>3.2 <span class="Heading">The gap.ini and gaprc files</span></h4>
<p>When you start <strong class="pkg">GAP</strong>, it looks for files with the names <code class="file">gap.ini</code> and <code class="file">gaprc</code> in its root directories (see <a href="chap9_mj.html#X7A4973627A5DB27D"><span class="RefLink">9.2</span></a>), and reads the first <code class="file">gap.ini</code> and the first <code class="file">gaprc</code> file it finds. These files are used for certain initializations, as follows.</p>
<p>The file <code class="file">gap.ini</code> is read early in the startup process. Therefore, the parameters set in this file can influence the startup process, such as which packages are automatically loaded (see <code class="func">LoadPackage</code> (<a href="chap76_mj.html#X79B373A77B29D1F5"><span class="RefLink">76.2-1</span></a>)) and whether library files containing obsolete variables are read (see Chapter <a href="chap77_mj.html#X78C85ED17F00DCC1"><span class="RefLink">77</span></a>). On the other hand, only calls to a restricted set of <strong class="pkg">GAP</strong> functions are allowed in a <code class="file">gap.ini</code> file. Usually, it should only contain calls of <code class="func">SetUserPreference</code> (<a href="chap3_mj.html#X7B0AD104839B6C3C"><span class="RefLink">3.2-3</span></a>). This file can be generated (or updated when new releases introduce further user preferences) with the command <code class="func">WriteGapIniFile</code> (<a href="chap3_mj.html#X7B0AD104839B6C3C"><span class="RefLink">3.2-3</span></a>). This file is read whenever <strong class="pkg">GAP</strong> is started, with or without a workspace.</p>
<p>The file <code class="file">gaprc</code> is read after the startup process, before the first input file given on the command line (see <a href="chap3_mj.html#X782751D5858A6EAF"><span class="RefLink">3.1</span></a>). So the contents of this file cannot influence the startup process, but all <strong class="pkg">GAP</strong> library functions can be called in this file. When <strong class="pkg">GAP</strong> is started with a workspace then the file is read only if no <code class="file">gaprc</code> file had been read before the workspace was created. (With this setup, it is on the one hand possible that administrators provide a <strong class="pkg">GAP</strong> workspace for several users such that the user's gaprc file is read when GAP is started with the workspace, and on the other hand one can start GAP, read one's <code class="file">gaprc</code> file, save a workspace, and then start from this workspace <em>without</em> reading one's gaprc file again.)
<p>Note that by default, the user specific <strong class="pkg">GAP</strong> root directory <code class="code">GAPInfo.UserGapRoot</code> is the first <strong class="pkg">GAP</strong> root directory. So you can put your <code class="file">gap.ini</code> and <code class="file">gaprc</code> files into this directory.</p>
<p>This mechanism substitutes the much less flexible reading of a users <code class="file">.gaprc</code> file in versions of <strong class="pkg">GAP</strong> up to 4.4. For compatibility this <code class="file">.gaprc</code> file is still read if the directory <code class="code">GAPInfo.UserGapRoot</code> does not exist, see <a href="chap77_mj.html#X7F2FF72A7AD60E0C"><span class="RefLink">77.5</span></a> how to migrate your old setup.</p>
<p><a id="X87DF11C885E73583" name="X87DF11C885E73583"></a></p>
<h5>3.2-1 <span class="Heading">The gap.ini file</span></h5>
<p>The file <code class="file">gap.ini</code> is read after the declaration part of the <strong class="pkg">GAP</strong> library is read, before the declaration parts of the packages needed and suggested by <strong class="pkg">GAP</strong> are read, and before the implementation parts of <strong class="pkg">GAP</strong> and of the packages are read.</p>
<p>The file <code class="file">gap.ini</code> is expected to consist of calls to the function <code class="func">SetUserPreference</code> (<a href="chap3_mj.html#X7B0AD104839B6C3C"><span class="RefLink">3.2-3</span></a>), see Section <code class="func">SetUserPreference</code> (<a href="chap3_mj.html#X7B0AD104839B6C3C"><span class="RefLink">3.2-3</span></a>).</p>
<p>Since the file <code class="file">gap.ini</code> is read before the implementation part of <strong class="pkg">GAP</strong> is read, not all <strong class="pkg">GAP</strong> functions may be called in the file. Assignments of numbers, lists, and records are admissible as well as calls to basic functions such as <code class="func">Concatenation</code> (<a href="chap21_mj.html#X840C55A77D1BB2E1"><span class="RefLink">21.20-1</span></a>) and <code class="func">JoinStringsWithSeparator</code> (<a href="chap27_mj.html#X84624FEB825EC4B5"><span class="RefLink">27.7-20</span></a>).</p>
<p>Note that the file <code class="file">gap.ini</code> is read also when <strong class="pkg">GAP</strong> is started with a workspace.</p>
<p><a id="X84D4CF587D437C00" name="X84D4CF587D437C00"></a></p>
<h5>3.2-2 <span class="Heading">The gaprc file</span></h5>
<p>If a file <code class="file">gaprc</code> is found it is read after <strong class="pkg">GAP</strong>'s init.g, but before any of the files mentioned on the command line are read. You can use this file for your private customizations. (Many users may be happy with using just user preferences in the gap.ini file (see above) for private customization.) For example, if you have a file containing functions or data that you always need, you could read this from gaprc. Or if you find some of the names in the library too long, you could define abbreviations for those names in gaprc. The following sample gaprc file does both.
<div class="example"><pre>
Read( "/usr/you/dat/mygroups.grp" );
Ac := Action;
AcHom := ActionHomomorphism;
RepAc := RepresentativeAction;
</pre></div>
<p>Note that only one <code class="file">gaprc</code> file is read when <strong class="pkg">GAP</strong> is started. When a workspace is created in a <strong class="pkg">GAP</strong> session after a <code class="file">gaprc</code> file has been read then no more <code class="file">gaprc</code> file will be read when <strong class="pkg">GAP</strong> is started with this workspace.</p>
<p>Also note that the file must be called <code class="file">gaprc</code>. If you use a Windows text editor, in particular if your default is not to show file suffixes, you might accidentally create a file <code class="file">gaprc.txt</code> or <code class="file">gaprc.doc</code> which GAP will not recognize.</p>
<p><a id="X7B0AD104839B6C3C" name="X7B0AD104839B6C3C"></a></p>
<h5>3.2-3 <span class="Heading">Configuring User preferences</span></h5>
<div class="func"><table class="func" width="100%"><tr><td class="tdleft"><code class="func">‣ SetUserPreference</code>( [<var class="Arg">package</var>, ]<var class="Arg">name</var>, <var class="Arg">value</var> )</td><td class="tdright">( function )</td></tr></table></div>
<div class="func"><table class="func" width="100%"><tr><td class="tdleft"><code class="func">‣ UserPreference</code>( [<var class="Arg">package</var>, ]<var class="Arg">name</var> )</td><td class="tdright">( function )</td></tr></table></div>
<div class="func"><table class="func" width="100%"><tr><td class="tdleft"><code class="func">‣ ShowUserPreferences</code>( <var class="Arg">package1</var>, <var class="Arg">package2</var>, <var class="Arg">...</var> )</td><td class="tdright">( function )</td></tr></table></div>
<div class="func"><table class="func" width="100%"><tr><td class="tdleft"><code class="func">‣ WriteGapIniFile</code>( [<var class="Arg">dir</var>][,] [<var class="Arg">ignorecurrent</var>] )</td><td class="tdright">( function )</td></tr></table></div>
<p>Some aspects of the behaviour of <strong class="pkg">GAP</strong> can be customized by the user via <em>user preferences</em>. Examples include the way help sections are displayed or the use of colors in the terminal.</p>
<p>User preferences are specified via a pair of strings, the first is the (case insensitive) name of a package (or <code class="code">"GAP"</code> for the core <strong class="pkg">GAP</strong> library) and the second is some arbitrary case sensitive string.</p>
<p>User preferences can be set to some <var class="Arg">value</var> with <code class="func">SetUserPreference</code>. The current value of a user preference can be found with <code class="func">UserPreference</code>. In both cases, if no package name is given the default <code class="code">"GAP"</code> is used. If a user preference is not known or not set then <code class="func">UserPreference</code> returns <code class="keyw">fail</code>.</p>
<p>The stored values of user preferences are always immutable, see Section <a href="chap12_mj.html#X7F0C119682196D65"><span class="RefLink">12.6</span></a>.</p>
<p>The function <code class="func">ShowUserPreferences</code> with no argument shows in a pager an overview of all known user preferences together with some explanation and the current value. If one or more strings <var class="Arg">package1</var>, ... are given then only the user preferences for these packages are shown. The <strong class="pkg">Browse</strong> package provides the function <code class="func">BrowseUserPreferences</code> (<a href="../../pkg/browse/doc/chap6_mj.html#X7A7B712E7A06449F"><span class="RefLink">Browse: BrowseUserPreferences</span></a>) which gives an overview of the known user preferenes and also admits editing the values of the preferences.</p>
<p>The easiest way to make use of user preferences is probably to use the function <code class="func">WriteGapIniFile</code>, usually without argument. This function creates a file <code class="file">gap.ini</code> in your user specific <strong class="pkg">GAP</strong> root directory (<code class="code">GAPInfo.UserGapRoot</code>). If such a file already exists the function will make a backup of it first. This newly created file contains descriptions of all known user preferences and also calls of <code class="func">SetUserPreference</code> for those user preferences which currently do not have their default value. You can then edit that file to customize (further) the user preferences for future <strong class="pkg">GAP</strong> sessions.</p>
<p>Should a later version of <strong class="pkg">GAP</strong> or some packages introduce new user preferences then you can call <code class="func">WriteGapIniFile</code> again since it will set the previously known user preferences to their current values.</p>
<p>Optionally, a different directory for the resulting <code class="file">gap.ini</code> file can be specified as argument <var class="Arg">dir</var> to <code class="func">WriteGapIniFile</code>. Another optional argument is the boolean value <code class="keyw">true</code>, if this is given, the settings of all user preferences in the current session are ignored.</p>
<p>Note that your <code class="file">gap.ini</code> file is read by <strong class="pkg">GAP</strong> very early during its startup process. A consequence is that the <var class="Arg">value</var> argument in a call of <code class="func">SetUserPreference</code> must be some very basic <strong class="pkg">GAP</strong> object, usually a boolean, a number, a string or a list of those. A few user preferences support more complicated settings. For example, the user preference <code class="code">"UseColorPrompt"</code> admits a record as its value whose components are available only after the <strong class="pkg">GAPDoc</strong> package has been loaded, see <code class="func">ColorPrompt</code> (<a href="chap3_mj.html#X84F3481C8466C7FC"><span class="RefLink">3.6-1</span></a>). If you want to specify such a complicated value, then move the corresponding call of <code class="func">SetUserPreference</code> from your <code class="file">gap.ini</code> file into your <code class="file">gaprc</code> file (also in the directory <code class="code">GAPInfo.UserGapRoot</code>). This file is read much later.</p>
<div class="example"><pre>
<span class="GAPprompt">gap></span> <span class="GAPinput">SetUserPreference( "Pager", "less" );</span>
<span class="GAPprompt">gap></span> <span class="GAPinput">SetUserPreference("PagerOptions",</span>
<span class="GAPprompt">></span> <span class="GAPinput"> [ "-f", "-r", "-a", "-i", "-M", "-j2" ] );</span>
<span class="GAPprompt">gap></span> <span class="GAPinput">UserPreference("Pager");</span>
"less"
</pre></div>
<p>The first two lines of this example will cause <strong class="pkg">GAP</strong> to use the programm <code class="code">less</code> as a pager. This is highly recommended if <code class="code">less</code> is available on your system. The last line displays the current setting.</p>
<p><a id="X7F1DF6757B248014" name="X7F1DF6757B248014"></a></p>
<h5>3.2-4 DeclareUserPreference</h5>
<div class="func"><table class="func" width="100%"><tr><td class="tdleft"><code class="func">‣ DeclareUserPreference</code>( <var class="Arg">record</var> )</td><td class="tdright">( function )</td></tr></table></div>
<p>This function can be used (also in packages) to introduce new user preferences. It declares a user preference, determines a default value and contains documentation of the user preference. After declaration a user preference will be shown with <code class="func">ShowUserPreferences</code> (<a href="chap3_mj.html#X7B0AD104839B6C3C"><span class="RefLink">3.2-3</span></a>) and <code class="func">WriteGapIniFile</code> (<a href="chap3_mj.html#X7B0AD104839B6C3C"><span class="RefLink">3.2-3</span></a>).</p>
<p>When this declaration is evaluated it is checked, if this user preference is already set in the current session. If not the value of the user preference is set to its default. (Do not use <code class="keyw">fail</code> as default value since this indicated that a user preference is not set.)</p>
<p>The argument <var class="Arg">record</var> of <code class="func">DeclareUserPreference</code> must be a record with the following components.</p>
<dl>
<dt><strong class="Mark"><code class="code">name</code></strong></dt>
<dd><p>a string or a list of strings, the latter meaning several preferences which belong together,</p>
</dd>
<dt><strong class="Mark"><code class="code">description</code></strong></dt>
<dd><p>a list of strings describing the preference(s), one string for each paragraph; if several preferences are declared together then the description refers to all of them,</p>
</dd>
<dt><strong class="Mark"><code class="code">default</code></strong></dt>
<dd><p>the default value that is used, or a function without arguments that computes this default value; if several preferences are declared together then the value of this component must be the list of default values for the individual preferences.</p>
</dd>
</dl>
<p>The following components of <var class="Arg">record</var> are optional.</p>
<dl>
<dt><strong class="Mark"><code class="code">check</code></strong></dt>
<dd><p>a function that takes a value as its argument and returns either <code class="keyw">true</code> or <code class="keyw">false</code>, depending on whether the given value is admissible for this preference; if several preferences are declared together then the number of arguments of the function must equal the length of the <code class="code">name</code> list,</p>
</dd>
<dt><strong class="Mark"><code class="code">values</code></strong></dt>
<dd><p>the list of admissible values, or a function without arguments that returns this list,</p>
</dd>
<dt><strong class="Mark"><code class="code">multi</code></strong></dt>
<dd><p><code class="keyw">true</code> or <code class="keyw">false</code>, depending on whether one may choose several values from the given list or just one; needed (and useful only) if the <code class="code">values</code> component is present,</p>
</dd>
<dt><strong class="Mark"><code class="code">package</code></strong></dt>
<dd><p>the name of the <strong class="pkg">GAP</strong> package to which the preference is assigned; if the declaration happens inside a file that belongs to this package then the value of this component is computed, using <code class="code">GAPInfo.PackageCurrent</code>; otherwise, the default value for <code class="code">package</code> is <code class="code">"GAP"</code>,</p>
</dd>
<dt><strong class="Mark"><code class="code">omitFromGapIniFile</code></strong></dt>
<dd><p>if the value is <code class="keyw">true</code> then this user preference is ignored by <code class="func">WriteGapIniFile</code> (<a href="chap3_mj.html#X7B0AD104839B6C3C"><span class="RefLink">3.2-3</span></a>).</p>
</dd>
</dl>
<div class="example"><pre>
<span class="GAPprompt">gap></span> <span class="GAPinput">UserPreference( "MyFavouritePrime" );</span>
fail
<span class="GAPprompt">gap></span> <span class="GAPinput">DeclareUserPreference( rec(</span>
<span class="GAPprompt">></span> <span class="GAPinput"> name:= "MyFavouritePrime",</span>
<span class="GAPprompt">></span> <span class="GAPinput"> description:= [ "is not used, serves as an example" ],</span>
<span class="GAPprompt">></span> <span class="GAPinput"> default:= 2,</span>
<span class="GAPprompt">></span> <span class="GAPinput"> omitFromGapIniFile:= true ) );</span>
<span class="GAPprompt">gap></span> <span class="GAPinput">UserPreference( "MyFavouritePrime" );</span>
2
<span class="GAPprompt">gap></span> <span class="GAPinput">SetUserPreference( "MyFavouritePrime", 17 );</span>
<span class="GAPprompt">gap></span> <span class="GAPinput">UserPreference( "MyFavouritePrime" );</span>
17
</pre></div>
<p><a id="X870A11E7864F9CA7" name="X870A11E7864F9CA7"></a></p>
<h5>3.2-5 <span class="Heading">User Preferences Defined by <strong class="pkg">GAP</strong></span></h5>
<p>Here is the list of those user preferences that are currently declared via <code class="func">DeclareUserPreference</code> (<a href="chap3_mj.html#X7F1DF6757B248014"><span class="RefLink">3.2-4</span></a>) for <strong class="pkg">GAP</strong> itself. The preferences that are declared for <strong class="pkg">GAP</strong> packages belong to the documentation of these packages.</p>
<dl>
<dt><strong class="Mark">
<code class="code">Autocompleter</code>
</strong></dt>
<dd><p>Set how names are filtered during tab-autocomplete, this can be: <code class="code">"default"</code>: case-sensitive matching. <code class="code">"case-insensitive"</code>: case-insensitive matching, or a record with two components named <code class="code">filter</code> and <code class="code">completer</code>, which are both functions which take two arguments. <code class="code">filter</code> takes a list of names and a partial identifier and returns all the members of <code class="code">names</code> which are a valid extension of the partial identifier. <code class="code">completer</code> takes a list of names and a partial identifier and returns the partial identifier as extended as possible (it may also change the identifier, for example to correct the case, or spelling mistakes), or returns <code class="keyw">fail</code> to leave the existing partial identifier.</p>
<p>This preference is ignored if <strong class="pkg">GAP</strong> was not compiled with readline support.</p>
<p>Default: <code class="code">"default"</code>.</p>
</dd>
<dt><strong class="Mark">
<code class="code">Editor</code>,
<code class="code">EditorOptions</code>
</strong></dt>
<dd><p>Determines the editor and options (used by <strong class="pkg">GAP</strong>'s Edit (6.10- | |