annotate docs/nitros9guide/chap2.chapter @ 2857:d5220b220313 lwtools-port

Makefiles: Use native cp for copying dsk images The "os9 copy" is not able to do this on Cygwin, and is not the right tool for the job anyway. Thanks to Bob Devries for reporting this issue!
author Tormod Volden <debian.tormod@gmail.com>
date Sat, 13 Jul 2013 11:53:36 +0200
parents b00cf13c9f61
children
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
144
f4e798ea65b9 More splitups.
roug
parents:
diff changeset
1 <chapter>
f4e798ea65b9 More splitups.
roug
parents:
diff changeset
2 <title>Basic Interactive Functions</title>
f4e798ea65b9 More splitups.
roug
parents:
diff changeset
3
1093
4dae346c4969 Added crossreferences and lowercased synopsises
roug
parents: 1092
diff changeset
4 <section id="sec2.0">
144
f4e798ea65b9 More splitups.
roug
parents:
diff changeset
5 <title>Running Commands and Basic Shell Operation</title>
f4e798ea65b9 More splitups.
roug
parents:
diff changeset
6 <para>
1500
b00cf13c9f61 Major changes for new NitrOS-9 manual
boisy
parents: 1094
diff changeset
7 The <command>shell</command> is a the part of NitrOS-9 that accepts commands from your
144
f4e798ea65b9 More splitups.
roug
parents:
diff changeset
8 keyboard. It was designed to provide a convenient, flexible, and
f4e798ea65b9 More splitups.
roug
parents:
diff changeset
9 easy-to-use interface between you and the powerful functions of the
1500
b00cf13c9f61 Major changes for new NitrOS-9 manual
boisy
parents: 1094
diff changeset
10 operating system. The shell is automatically entered after NitrOS-9 is
144
f4e798ea65b9 More splitups.
roug
parents:
diff changeset
11 started up. You can tell when the shell is waiting for input
1011
cc153d1671f7 Updated for new manuals
boisy
parents: 148
diff changeset
12 because it displays the shell prompt. This prompt indicates that
144
f4e798ea65b9 More splitups.
roug
parents:
diff changeset
13 the shell is active and awaiting a command from your keyboard. It
f4e798ea65b9 More splitups.
roug
parents:
diff changeset
14 makes no difference whether you use upper-case letters, lower-case
1500
b00cf13c9f61 Major changes for new NitrOS-9 manual
boisy
parents: 1094
diff changeset
15 letters, or a combination of both because NitrOS-9 matches letters of
144
f4e798ea65b9 More splitups.
roug
parents:
diff changeset
16 either case.
f4e798ea65b9 More splitups.
roug
parents:
diff changeset
17 </para>
f4e798ea65b9 More splitups.
roug
parents:
diff changeset
18 <para>
f4e798ea65b9 More splitups.
roug
parents:
diff changeset
19 The command line always begins with a name of a program which can
f4e798ea65b9 More splitups.
roug
parents:
diff changeset
20 be:
f4e798ea65b9 More splitups.
roug
parents:
diff changeset
21 </para>
f4e798ea65b9 More splitups.
roug
parents:
diff changeset
22
f4e798ea65b9 More splitups.
roug
parents:
diff changeset
23 <itemizedlist>
f4e798ea65b9 More splitups.
roug
parents:
diff changeset
24 <listitem><para>The name of a machine language program on disk</para></listitem>
f4e798ea65b9 More splitups.
roug
parents:
diff changeset
25 <listitem><para>The name of a machine language program already in memory</para></listitem>
f4e798ea65b9 More splitups.
roug
parents:
diff changeset
26 <listitem><para>The name of an executable program compiled by a high-level
1011
cc153d1671f7 Updated for new manuals
boisy
parents: 148
diff changeset
27 language such as Basic09, Pascal, Cobol, etc.</para></listitem>
cc153d1671f7 Updated for new manuals
boisy
parents: 148
diff changeset
28 <listitem><para>The name of a procedure file</para></listitem>
144
f4e798ea65b9 More splitups.
roug
parents:
diff changeset
29 </itemizedlist>
f4e798ea65b9 More splitups.
roug
parents:
diff changeset
30 <para>
f4e798ea65b9 More splitups.
roug
parents:
diff changeset
31 If you're a beginner, you will almost always use the first case,
1053
b5ff125a1d60 Since this book was only typeset in fixed width, single-font, they used
roug
parents: 1017
diff changeset
32 which causes the program to be automatically loaded from the
b5ff125a1d60 Since this book was only typeset in fixed width, single-font, they used
roug
parents: 1017
diff changeset
33 <filename class="directory">CMDS</filename> directory and run.
144
f4e798ea65b9 More splitups.
roug
parents:
diff changeset
34 </para>
f4e798ea65b9 More splitups.
roug
parents:
diff changeset
35 <para>
f4e798ea65b9 More splitups.
roug
parents:
diff changeset
36 When processing the command line, the shell searches for a
f4e798ea65b9 More splitups.
roug
parents:
diff changeset
37 program having the name specified in the following sequence:
f4e798ea65b9 More splitups.
roug
parents:
diff changeset
38 </para>
f4e798ea65b9 More splitups.
roug
parents:
diff changeset
39
f4e798ea65b9 More splitups.
roug
parents:
diff changeset
40 <orderedlist numeration="arabic">
f4e798ea65b9 More splitups.
roug
parents:
diff changeset
41
1011
cc153d1671f7 Updated for new manuals
boisy
parents: 148
diff changeset
42 <listitem><para> If the program named is already in memory, it is run.</para></listitem>
144
f4e798ea65b9 More splitups.
roug
parents:
diff changeset
43
1053
b5ff125a1d60 Since this book was only typeset in fixed width, single-font, they used
roug
parents: 1017
diff changeset
44 <listitem><para> The &quot;execution directory&quot;, usually <filename class="directory">CMDS</filename>, is searched.
144
f4e798ea65b9 More splitups.
roug
parents:
diff changeset
45 If a file having the name given is found, it is loaded and
1011
cc153d1671f7 Updated for new manuals
boisy
parents: 148
diff changeset
46 run.</para></listitem>
144
f4e798ea65b9 More splitups.
roug
parents:
diff changeset
47
1011
cc153d1671f7 Updated for new manuals
boisy
parents: 148
diff changeset
48 <listitem><para> The user's &quot;data directory&quot; is searched. If a file having
144
f4e798ea65b9 More splitups.
roug
parents:
diff changeset
49 the name given is found, it is processed as a &quot;procedure
f4e798ea65b9 More splitups.
roug
parents:
diff changeset
50 file&quot; which means that the file is assumed to contain one
f4e798ea65b9 More splitups.
roug
parents:
diff changeset
51 or more command lines which are processed by the shell in
f4e798ea65b9 More splitups.
roug
parents:
diff changeset
52 the same manner as if they had manually typed in one by one.</para></listitem>
f4e798ea65b9 More splitups.
roug
parents:
diff changeset
53
f4e798ea65b9 More splitups.
roug
parents:
diff changeset
54 </orderedlist>
f4e798ea65b9 More splitups.
roug
parents:
diff changeset
55 <para>
f4e798ea65b9 More splitups.
roug
parents:
diff changeset
56 Mention is made above of the &quot;data directory&quot; and the &quot;execution
f4e798ea65b9 More splitups.
roug
parents:
diff changeset
57 directory&quot;. At all times each user is associated with two file
f4e798ea65b9 More splitups.
roug
parents:
diff changeset
58 directories. A more detailed explanation of directories is presented
1053
b5ff125a1d60 Since this book was only typeset in fixed width, single-font, they used
roug
parents: 1017
diff changeset
59 later. The execution directory (usually <filename class="directory">CMDS</filename>) includes
144
f4e798ea65b9 More splitups.
roug
parents:
diff changeset
60 files which are executable programs.
f4e798ea65b9 More splitups.
roug
parents:
diff changeset
61 </para>
f4e798ea65b9 More splitups.
roug
parents:
diff changeset
62 <para>
f4e798ea65b9 More splitups.
roug
parents:
diff changeset
63 The name given in the command line may be optionally followed by
f4e798ea65b9 More splitups.
roug
parents:
diff changeset
64 one or more &quot;parameters&quot; which are passed to the program called by
f4e798ea65b9 More splitups.
roug
parents:
diff changeset
65 the shell.
f4e798ea65b9 More splitups.
roug
parents:
diff changeset
66 </para>
f4e798ea65b9 More splitups.
roug
parents:
diff changeset
67 <para>
f4e798ea65b9 More splitups.
roug
parents:
diff changeset
68 For example, in the command line:
f4e798ea65b9 More splitups.
roug
parents:
diff changeset
69 </para>
f4e798ea65b9 More splitups.
roug
parents:
diff changeset
70 <screen>
1011
cc153d1671f7 Updated for new manuals
boisy
parents: 148
diff changeset
71 list file1
144
f4e798ea65b9 More splitups.
roug
parents:
diff changeset
72 </screen>
f4e798ea65b9 More splitups.
roug
parents:
diff changeset
73 <para>
1053
b5ff125a1d60 Since this book was only typeset in fixed width, single-font, they used
roug
parents: 1017
diff changeset
74 the program name is <command>list</command>, and the parameter passed to it is FILE1.
144
f4e798ea65b9 More splitups.
roug
parents:
diff changeset
75 </para>
f4e798ea65b9 More splitups.
roug
parents:
diff changeset
76 <para>
f4e798ea65b9 More splitups.
roug
parents:
diff changeset
77 A command line may also include one or more &quot;modifiers&quot; which are
f4e798ea65b9 More splitups.
roug
parents:
diff changeset
78 specifications used by the shell to alter the program's standard
1011
cc153d1671f7 Updated for new manuals
boisy
parents: 148
diff changeset
79 input/output files or memory assignments.
144
f4e798ea65b9 More splitups.
roug
parents:
diff changeset
80
f4e798ea65b9 More splitups.
roug
parents:
diff changeset
81
f4e798ea65b9 More splitups.
roug
parents:
diff changeset
82 </para>
1093
4dae346c4969 Added crossreferences and lowercased synopsises
roug
parents: 1092
diff changeset
83 <section id="sec2.0.1">
144
f4e798ea65b9 More splitups.
roug
parents:
diff changeset
84 <title>Sending Output to the Printer</title>
f4e798ea65b9 More splitups.
roug
parents:
diff changeset
85 <para>
1500
b00cf13c9f61 Major changes for new NitrOS-9 manual
boisy
parents: 1094
diff changeset
86 Normally, most commands and programs display output on the Color Computer video display. The output of these programs can
144
f4e798ea65b9 More splitups.
roug
parents:
diff changeset
87 alternatively be printed by specifying output redirection on the
f4e798ea65b9 More splitups.
roug
parents:
diff changeset
88 command line. This is done by including the following modifier to
f4e798ea65b9 More splitups.
roug
parents:
diff changeset
89 at the end of any command line:
f4e798ea65b9 More splitups.
roug
parents:
diff changeset
90 </para>
f4e798ea65b9 More splitups.
roug
parents:
diff changeset
91 <screen>
1011
cc153d1671f7 Updated for new manuals
boisy
parents: 148
diff changeset
92 &gt;/p
144
f4e798ea65b9 More splitups.
roug
parents:
diff changeset
93 </screen>
f4e798ea65b9 More splitups.
roug
parents:
diff changeset
94 <para>
1093
4dae346c4969 Added crossreferences and lowercased synopsises
roug
parents: 1092
diff changeset
95 The &quot;&gt;&quot; character tells the shell to redirect output (See <xref linkend="sec4.3.2"/>) to
1500
b00cf13c9f61 Major changes for new NitrOS-9 manual
boisy
parents: 1094
diff changeset
96 the printer using the Color Computer's printer port, which has the device
b00cf13c9f61 Major changes for new NitrOS-9 manual
boisy
parents: 1094
diff changeset
97 name &quot;/p&quot; (See <xref linkend="sec3.2"/>). For example, to redirect the output of the
1053
b5ff125a1d60 Since this book was only typeset in fixed width, single-font, they used
roug
parents: 1017
diff changeset
98 <command>dir</command> command to the printer, enter:
144
f4e798ea65b9 More splitups.
roug
parents:
diff changeset
99 </para>
f4e798ea65b9 More splitups.
roug
parents:
diff changeset
100 <screen>
1011
cc153d1671f7 Updated for new manuals
boisy
parents: 148
diff changeset
101 dir &gt;/p
144
f4e798ea65b9 More splitups.
roug
parents:
diff changeset
102 </screen>
f4e798ea65b9 More splitups.
roug
parents:
diff changeset
103 <para>
1053
b5ff125a1d60 Since this book was only typeset in fixed width, single-font, they used
roug
parents: 1017
diff changeset
104 The <command>xmode</command> command can be used to set the printer port's
144
f4e798ea65b9 More splitups.
roug
parents:
diff changeset
105 operating mode such as auto line feed, etc. For example, to examine
f4e798ea65b9 More splitups.
roug
parents:
diff changeset
106 the printer's current settings, type:
f4e798ea65b9 More splitups.
roug
parents:
diff changeset
107 </para>
f4e798ea65b9 More splitups.
roug
parents:
diff changeset
108 <screen>
1011
cc153d1671f7 Updated for new manuals
boisy
parents: 148
diff changeset
109 xmode /p
144
f4e798ea65b9 More splitups.
roug
parents:
diff changeset
110 </screen>
f4e798ea65b9 More splitups.
roug
parents:
diff changeset
111 <para>
f4e798ea65b9 More splitups.
roug
parents:
diff changeset
112 To change any of these type XMODE followed by the new value.
f4e798ea65b9 More splitups.
roug
parents:
diff changeset
113 For example, to set the printer port for automatic line feeds at the
f4e798ea65b9 More splitups.
roug
parents:
diff changeset
114 end of every line, enter:
f4e798ea65b9 More splitups.
roug
parents:
diff changeset
115 </para>
f4e798ea65b9 More splitups.
roug
parents:
diff changeset
116 <screen>
1500
b00cf13c9f61 Major changes for new NitrOS-9 manual
boisy
parents: 1094
diff changeset
117 xmode /p lf
144
f4e798ea65b9 More splitups.
roug
parents:
diff changeset
118 </screen>
f4e798ea65b9 More splitups.
roug
parents:
diff changeset
119 </section>
f4e798ea65b9 More splitups.
roug
parents:
diff changeset
120 </section>
f4e798ea65b9 More splitups.
roug
parents:
diff changeset
121
1093
4dae346c4969 Added crossreferences and lowercased synopsises
roug
parents: 1092
diff changeset
122 <section id="sec2.1">
144
f4e798ea65b9 More splitups.
roug
parents:
diff changeset
123 <title>Shell Command Line Parameters</title>
f4e798ea65b9 More splitups.
roug
parents:
diff changeset
124 <para>
f4e798ea65b9 More splitups.
roug
parents:
diff changeset
125 Parameters are generally used to either specify file name(s) or
f4e798ea65b9 More splitups.
roug
parents:
diff changeset
126 to select options to be used by the program specified in the command
f4e798ea65b9 More splitups.
roug
parents:
diff changeset
127 line given to the shell. Parameters are separated from the command
f4e798ea65b9 More splitups.
roug
parents:
diff changeset
128 name and from each other by space characters (hence parameters and
f4e798ea65b9 More splitups.
roug
parents:
diff changeset
129 options cannot themselves include spaces). Each command program
1500
b00cf13c9f61 Major changes for new NitrOS-9 manual
boisy
parents: 1094
diff changeset
130 supplied with NitrOS-9 has an individual description in the last section
144
f4e798ea65b9 More splitups.
roug
parents:
diff changeset
131 of this manual which describe the correct usage of the parameters of
f4e798ea65b9 More splitups.
roug
parents:
diff changeset
132 each command.
f4e798ea65b9 More splitups.
roug
parents:
diff changeset
133 </para>
f4e798ea65b9 More splitups.
roug
parents:
diff changeset
134 <para>
1094
958740284209 Use <emphasis> instead of CAPITALS
roug
parents: 1093
diff changeset
135 For example, the <command>list</command> program is used to display the contents of
958740284209 Use <emphasis> instead of CAPITALS
roug
parents: 1093
diff changeset
136 a text file on your display. It is necessary to tell to the <command>list</command>
144
f4e798ea65b9 More splitups.
roug
parents:
diff changeset
137 program which file it is to be displayed, therefore, the name of the
f4e798ea65b9 More splitups.
roug
parents:
diff changeset
138 desired file is given as a parameter in the command line. For
f4e798ea65b9 More splitups.
roug
parents:
diff changeset
139 example, to list the file called startup (the system initialization
f4e798ea65b9 More splitups.
roug
parents:
diff changeset
140 procedure file), you enter the command line:
f4e798ea65b9 More splitups.
roug
parents:
diff changeset
141 </para>
f4e798ea65b9 More splitups.
roug
parents:
diff changeset
142 <screen>
1011
cc153d1671f7 Updated for new manuals
boisy
parents: 148
diff changeset
143 list startup
144
f4e798ea65b9 More splitups.
roug
parents:
diff changeset
144 </screen>
f4e798ea65b9 More splitups.
roug
parents:
diff changeset
145 <para>
1053
b5ff125a1d60 Since this book was only typeset in fixed width, single-font, they used
roug
parents: 1017
diff changeset
146 Some commands have two parameters. For example, the <command>copy</command> command is
144
f4e798ea65b9 More splitups.
roug
parents:
diff changeset
147 used to make an exact copy of a file. It requires two parameters:
f4e798ea65b9 More splitups.
roug
parents:
diff changeset
148 The name of the file to be copied and the name of the file which is
f4e798ea65b9 More splitups.
roug
parents:
diff changeset
149 to be the copy, for example:
f4e798ea65b9 More splitups.
roug
parents:
diff changeset
150 </para>
f4e798ea65b9 More splitups.
roug
parents:
diff changeset
151 <screen>
1011
cc153d1671f7 Updated for new manuals
boisy
parents: 148
diff changeset
152 copy startup newstartup
144
f4e798ea65b9 More splitups.
roug
parents:
diff changeset
153 </screen>
f4e798ea65b9 More splitups.
roug
parents:
diff changeset
154 <para>
f4e798ea65b9 More splitups.
roug
parents:
diff changeset
155 Other commands have parameters which select options. For example:
f4e798ea65b9 More splitups.
roug
parents:
diff changeset
156 </para>
f4e798ea65b9 More splitups.
roug
parents:
diff changeset
157 <screen>
1011
cc153d1671f7 Updated for new manuals
boisy
parents: 148
diff changeset
158 dir
144
f4e798ea65b9 More splitups.
roug
parents:
diff changeset
159 </screen>
f4e798ea65b9 More splitups.
roug
parents:
diff changeset
160 <para>
f4e798ea65b9 More splitups.
roug
parents:
diff changeset
161 shows the names of the files in the user's data directory. Normally
1011
cc153d1671f7 Updated for new manuals
boisy
parents: 148
diff changeset
162 it simply lists the file names only, but if the &quot;-e&quot;
144
f4e798ea65b9 More splitups.
roug
parents:
diff changeset
163 (for <emphasis>e</emphasis>ntire)
f4e798ea65b9 More splitups.
roug
parents:
diff changeset
164 option is given, it will also give complete statistics for each file
f4e798ea65b9 More splitups.
roug
parents:
diff changeset
165 such as the date and time created, size, security codes, etc. To do
f4e798ea65b9 More splitups.
roug
parents:
diff changeset
166 so enter:
f4e798ea65b9 More splitups.
roug
parents:
diff changeset
167 </para>
f4e798ea65b9 More splitups.
roug
parents:
diff changeset
168 <screen>
1011
cc153d1671f7 Updated for new manuals
boisy
parents: 148
diff changeset
169 dir -e
144
f4e798ea65b9 More splitups.
roug
parents:
diff changeset
170 </screen>
f4e798ea65b9 More splitups.
roug
parents:
diff changeset
171 <para>
1053
b5ff125a1d60 Since this book was only typeset in fixed width, single-font, they used
roug
parents: 1017
diff changeset
172 The <command>dir</command> command also can accept a file name as a parameter which
144
f4e798ea65b9 More splitups.
roug
parents:
diff changeset
173 specifies a directory file other than the (default) data directory.
f4e798ea65b9 More splitups.
roug
parents:
diff changeset
174 For example, to list file names in the directory sys , type:
f4e798ea65b9 More splitups.
roug
parents:
diff changeset
175 </para>
f4e798ea65b9 More splitups.
roug
parents:
diff changeset
176 <screen>
1011
cc153d1671f7 Updated for new manuals
boisy
parents: 148
diff changeset
177 dir sys
144
f4e798ea65b9 More splitups.
roug
parents:
diff changeset
178 </screen>
f4e798ea65b9 More splitups.
roug
parents:
diff changeset
179 <para>
f4e798ea65b9 More splitups.
roug
parents:
diff changeset
180 It is also possible to specify both a directory name parameter and
1500
b00cf13c9f61 Major changes for new NitrOS-9 manual
boisy
parents: 1094
diff changeset
181 the -e option, such as:
144
f4e798ea65b9 More splitups.
roug
parents:
diff changeset
182 </para>
f4e798ea65b9 More splitups.
roug
parents:
diff changeset
183 <screen>
1011
cc153d1671f7 Updated for new manuals
boisy
parents: 148
diff changeset
184 dir sys -e
144
f4e798ea65b9 More splitups.
roug
parents:
diff changeset
185 </screen>
f4e798ea65b9 More splitups.
roug
parents:
diff changeset
186 <para>
1011
cc153d1671f7 Updated for new manuals
boisy
parents: 148
diff changeset
187 giving file names and complete statistics.
144
f4e798ea65b9 More splitups.
roug
parents:
diff changeset
188 </para>
f4e798ea65b9 More splitups.
roug
parents:
diff changeset
189 </section>
f4e798ea65b9 More splitups.
roug
parents:
diff changeset
190
1093
4dae346c4969 Added crossreferences and lowercased synopsises
roug
parents: 1092
diff changeset
191 <section id="sec2.3">
144
f4e798ea65b9 More splitups.
roug
parents:
diff changeset
192 <title>Some Common Command Formats</title>
f4e798ea65b9 More splitups.
roug
parents:
diff changeset
193 <para>
f4e798ea65b9 More splitups.
roug
parents:
diff changeset
194 This section is a summary of some commands commonly used by new
1500
b00cf13c9f61 Major changes for new NitrOS-9 manual
boisy
parents: 1094
diff changeset
195 or casual NitrOS-9 users, and some common formats. Each command is
144
f4e798ea65b9 More splitups.
roug
parents:
diff changeset
196 followed by an example. Refer to the individual command
1011
cc153d1671f7 Updated for new manuals
boisy
parents: 148
diff changeset
197 descriptions later int his book for more detailed information and
144
f4e798ea65b9 More splitups.
roug
parents:
diff changeset
198 additional examples. Parameters or options shown in brackets are
f4e798ea65b9 More splitups.
roug
parents:
diff changeset
199 optional. Whenever a command references a directory file name, the
f4e798ea65b9 More splitups.
roug
parents:
diff changeset
200 file <emphasis>must</emphasis> be a directory file.
f4e798ea65b9 More splitups.
roug
parents:
diff changeset
201
f4e798ea65b9 More splitups.
roug
parents:
diff changeset
202 <screen>
f4e798ea65b9 More splitups.
roug
parents:
diff changeset
203 CHD filename chd DATA.DIR
f4e798ea65b9 More splitups.
roug
parents:
diff changeset
204 </screen>
f4e798ea65b9 More splitups.
roug
parents:
diff changeset
205 Changes the current <emphasis>data</emphasis> working directory to
f4e798ea65b9 More splitups.
roug
parents:
diff changeset
206 the <emphasis>directory</emphasis> file specified.
f4e798ea65b9 More splitups.
roug
parents:
diff changeset
207 <screen>
f4e798ea65b9 More splitups.
roug
parents:
diff changeset
208 COPY filename1 filename2 copy oldfile newfile
f4e798ea65b9 More splitups.
roug
parents:
diff changeset
209 </screen>
f4e798ea65b9 More splitups.
roug
parents:
diff changeset
210 Creates filename2 as a new file, then copies all data from
f4e798ea65b9 More splitups.
roug
parents:
diff changeset
211 &quot;filename1&quot; to it. &quot;filename1&quot; is not affected.
f4e798ea65b9 More splitups.
roug
parents:
diff changeset
212 <screen>
f4e798ea65b9 More splitups.
roug
parents:
diff changeset
213 DEL filename del oldstuff
f4e798ea65b9 More splitups.
roug
parents:
diff changeset
214 </screen>
f4e798ea65b9 More splitups.
roug
parents:
diff changeset
215 Deletes (destroys) the file specified.
f4e798ea65b9 More splitups.
roug
parents:
diff changeset
216 <screen>
1011
cc153d1671f7 Updated for new manuals
boisy
parents: 148
diff changeset
217 DIR [filename] [-e] [-x] dir myfiles -e
144
f4e798ea65b9 More splitups.
roug
parents:
diff changeset
218 </screen>
1017
c9b63a3c0a17 More changes
boisy
parents: 1014
diff changeset
219 List names of files contained in a directory. If the &quot;-x&quot; option is
144
f4e798ea65b9 More splitups.
roug
parents:
diff changeset
220 used the files in the current <emphasis>execution</emphasis>
f4e798ea65b9 More splitups.
roug
parents:
diff changeset
221 directory are listed,
f4e798ea65b9 More splitups.
roug
parents:
diff changeset
222 othervise, if no directory name is given, the current
f4e798ea65b9 More splitups.
roug
parents:
diff changeset
223 <emphasis>data</emphasis> directory will be listed.
1017
c9b63a3c0a17 More changes
boisy
parents: 1014
diff changeset
224 The &quot;-e&quot; option selects the long format
144
f4e798ea65b9 More splitups.
roug
parents:
diff changeset
225 which shows detailed information about each file.
f4e798ea65b9 More splitups.
roug
parents:
diff changeset
226 <screen>
f4e798ea65b9 More splitups.
roug
parents:
diff changeset
227 FREE devicename free /d1
f4e798ea65b9 More splitups.
roug
parents:
diff changeset
228 </screen>
f4e798ea65b9 More splitups.
roug
parents:
diff changeset
229 Shows how much free space remains on the disk whose name is given.
f4e798ea65b9 More splitups.
roug
parents:
diff changeset
230 <screen>
f4e798ea65b9 More splitups.
roug
parents:
diff changeset
231 LIST filename list script
f4e798ea65b9 More splitups.
roug
parents:
diff changeset
232 </screen>
f4e798ea65b9 More splitups.
roug
parents:
diff changeset
233 Displays the (text) contents of the file on the terminal.
f4e798ea65b9 More splitups.
roug
parents:
diff changeset
234 <screen>
f4e798ea65b9 More splitups.
roug
parents:
diff changeset
235 MAKDIR filename makdir NEWFILES
f4e798ea65b9 More splitups.
roug
parents:
diff changeset
236 </screen>
f4e798ea65b9 More splitups.
roug
parents:
diff changeset
237 Creates a new directory file using the name given. Often followed
1053
b5ff125a1d60 Since this book was only typeset in fixed width, single-font, they used
roug
parents: 1017
diff changeset
238 by a <command>chd</command> command to make it the new working data directory.
144
f4e798ea65b9 More splitups.
roug
parents:
diff changeset
239 <screen>
f4e798ea65b9 More splitups.
roug
parents:
diff changeset
240 RENAME filename1 filename2 rename zip zap
f4e798ea65b9 More splitups.
roug
parents:
diff changeset
241 </screen>
f4e798ea65b9 More splitups.
roug
parents:
diff changeset
242 Changes the name of filename1 to filename2.
f4e798ea65b9 More splitups.
roug
parents:
diff changeset
243 </para>
f4e798ea65b9 More splitups.
roug
parents:
diff changeset
244 </section>
f4e798ea65b9 More splitups.
roug
parents:
diff changeset
245
1093
4dae346c4969 Added crossreferences and lowercased synopsises
roug
parents: 1092
diff changeset
246 <section id="sec2.4">
144
f4e798ea65b9 More splitups.
roug
parents:
diff changeset
247 <title>Using the Keyboard and Video Display</title>
f4e798ea65b9 More splitups.
roug
parents:
diff changeset
248 <para>
1500
b00cf13c9f61 Major changes for new NitrOS-9 manual
boisy
parents: 1094
diff changeset
249 NitrOS-9 has many features to expand the capability of the Color Computer
144
f4e798ea65b9 More splitups.
roug
parents:
diff changeset
250 keyboard and video display. The video display has screen pause,
f4e798ea65b9 More splitups.
roug
parents:
diff changeset
251 upper/lower case, and graphics functions. The keyboard can generate
f4e798ea65b9 More splitups.
roug
parents:
diff changeset
252 all ASCII characters and has a type-ahead feature that permits you
f4e798ea65b9 More splitups.
roug
parents:
diff changeset
253 to enter data before requested by a program (except if the disk is
1093
4dae346c4969 Added crossreferences and lowercased synopsises
roug
parents: 1092
diff changeset
254 running because interrupts are temporarily disabled).
4dae346c4969 Added crossreferences and lowercased synopsises
roug
parents: 1092
diff changeset
255 <xref linkend="video-display"/> of
144
f4e798ea65b9 More splitups.
roug
parents:
diff changeset
256 this manual is a list of the characters and codes that can be
f4e798ea65b9 More splitups.
roug
parents:
diff changeset
257 generated from the keyboard. The keyboard/video display can be used
f4e798ea65b9 More splitups.
roug
parents:
diff changeset
258 as a file known by the name &quot;/TERM&quot;.
f4e798ea65b9 More splitups.
roug
parents:
diff changeset
259 </para>
f4e798ea65b9 More splitups.
roug
parents:
diff changeset
260
f4e798ea65b9 More splitups.
roug
parents:
diff changeset
261 <section>
f4e798ea65b9 More splitups.
roug
parents:
diff changeset
262 <title>Video Display Functions</title>
f4e798ea65b9 More splitups.
roug
parents:
diff changeset
263 <para>
1500
b00cf13c9f61 Major changes for new NitrOS-9 manual
boisy
parents: 1094
diff changeset
264 Most Color Computers use reverse video (green letters in a black box) to
144
f4e798ea65b9 More splitups.
roug
parents:
diff changeset
265 represent lower-case letters. Normally they are not used, so you
f4e798ea65b9 More splitups.
roug
parents:
diff changeset
266 have to turn them on if you want to use them with the command:
f4e798ea65b9 More splitups.
roug
parents:
diff changeset
267 </para>
f4e798ea65b9 More splitups.
roug
parents:
diff changeset
268 <screen>
1011
cc153d1671f7 Updated for new manuals
boisy
parents: 148
diff changeset
269 tmode -upc
144
f4e798ea65b9 More splitups.
roug
parents:
diff changeset
270 </screen>
f4e798ea65b9 More splitups.
roug
parents:
diff changeset
271 <para>
1500
b00cf13c9f61 Major changes for new NitrOS-9 manual
boisy
parents: 1094
diff changeset
272 However, the Color Computer 3 and certain models of the Color Computer 2 can also do true lowercase on the 32x16 video display. To see if your Color Computer can do true lowercase, type the following command:
b00cf13c9f61 Major changes for new NitrOS-9 manual
boisy
parents: 1094
diff changeset
273 <screen>
b00cf13c9f61 Major changes for new NitrOS-9 manual
boisy
parents: 1094
diff changeset
274 xmode /term typ=1; display e
b00cf13c9f61 Major changes for new NitrOS-9 manual
boisy
parents: 1094
diff changeset
275 </screen>
b00cf13c9f61 Major changes for new NitrOS-9 manual
boisy
parents: 1094
diff changeset
276 If your Color Computer cannot do true lower case, your screen will show graphics garbage.
b00cf13c9f61 Major changes for new NitrOS-9 manual
boisy
parents: 1094
diff changeset
277 </para>
b00cf13c9f61 Major changes for new NitrOS-9 manual
boisy
parents: 1094
diff changeset
278 <para>
144
f4e798ea65b9 More splitups.
roug
parents:
diff changeset
279 The screen pause feature stops programs after 16 lines have been
f4e798ea65b9 More splitups.
roug
parents:
diff changeset
280 displayed. Output will continue if you hit any key. Normally this
1053
b5ff125a1d60 Since this book was only typeset in fixed width, single-font, they used
roug
parents: 1017
diff changeset
281 feature is on. It can be turned on or off with the <command>tmode</command> command as
144
f4e798ea65b9 More splitups.
roug
parents:
diff changeset
282 follows:
f4e798ea65b9 More splitups.
roug
parents:
diff changeset
283 </para>
f4e798ea65b9 More splitups.
roug
parents:
diff changeset
284 <screen>
1011
cc153d1671f7 Updated for new manuals
boisy
parents: 148
diff changeset
285 tmode -pause turns pause mode off
cc153d1671f7 Updated for new manuals
boisy
parents: 148
diff changeset
286 tmode pause turns pause mode on
144
f4e798ea65b9 More splitups.
roug
parents:
diff changeset
287 </screen>
f4e798ea65b9 More splitups.
roug
parents:
diff changeset
288 <para>
f4e798ea65b9 More splitups.
roug
parents:
diff changeset
289 The display system also has a complete set of commands to emulate
f4e798ea65b9 More splitups.
roug
parents:
diff changeset
290 commercial data terminals, plus a complete set of graphics commands.
1093
4dae346c4969 Added crossreferences and lowercased synopsises
roug
parents: 1092
diff changeset
291 These are described in detail in <xref linkend="key-definitions"/>.
144
f4e798ea65b9 More splitups.
roug
parents:
diff changeset
292 </para>
f4e798ea65b9 More splitups.
roug
parents:
diff changeset
293 </section>
f4e798ea65b9 More splitups.
roug
parents:
diff changeset
294
f4e798ea65b9 More splitups.
roug
parents:
diff changeset
295 <section>
f4e798ea65b9 More splitups.
roug
parents:
diff changeset
296 <title>Keyboard Shift and Control Functions</title>
f4e798ea65b9 More splitups.
roug
parents:
diff changeset
297 <para>
f4e798ea65b9 More splitups.
roug
parents:
diff changeset
298 Two keys are used in combination with other keys to change their
f4e798ea65b9 More splitups.
roug
parents:
diff changeset
299 meaning. The SHIFT KEY selects between upper case and lower case
1014
d9ed9d44b70c Some character entities had missing semicolons. It's &CPU;
roug
parents: 1011
diff changeset
300 letters or punctuation, and the &ctrlkey; key can be used to generate
1011
cc153d1671f7 Updated for new manuals
boisy
parents: 148
diff changeset
301 control characters.
144
f4e798ea65b9 More splitups.
roug
parents:
diff changeset
302 </para>
f4e798ea65b9 More splitups.
roug
parents:
diff changeset
303 <para>
f4e798ea65b9 More splitups.
roug
parents:
diff changeset
304 The keyboard has a shift lock function similar to a typewriter's,
f4e798ea65b9 More splitups.
roug
parents:
diff changeset
305 which is normally &quot;locked&quot;. The keyboard's shift lock may be
1092
f5d45fbe3a76 <keycap> elements
roug
parents: 1053
diff changeset
306 reversed by depressing the control key and <keycap>0</keycap> keys
144
f4e798ea65b9 More splitups.
roug
parents:
diff changeset
307 simultaneously. The shift lock only affects the letter (A-Z) keys.
f4e798ea65b9 More splitups.
roug
parents:
diff changeset
308 When the keyboard is locked, these keys generate upper case letters,
f4e798ea65b9 More splitups.
roug
parents:
diff changeset
309 and lower case only if the SHIFT key is depressed. When the
f4e798ea65b9 More splitups.
roug
parents:
diff changeset
310 keyboard is unlocked, the reverse is true, e.g., lower case letters
f4e798ea65b9 More splitups.
roug
parents:
diff changeset
311 are generated unless the SHIFT key is depressed at the same time as
f4e798ea65b9 More splitups.
roug
parents:
diff changeset
312 a letter key.
f4e798ea65b9 More splitups.
roug
parents:
diff changeset
313 </para>
f4e798ea65b9 More splitups.
roug
parents:
diff changeset
314 </section>
f4e798ea65b9 More splitups.
roug
parents:
diff changeset
315
1093
4dae346c4969 Added crossreferences and lowercased synopsises
roug
parents: 1092
diff changeset
316 <section id="sec2.4.3">
144
f4e798ea65b9 More splitups.
roug
parents:
diff changeset
317 <title>Control Key Functions</title>
f4e798ea65b9 More splitups.
roug
parents:
diff changeset
318 <para>
f4e798ea65b9 More splitups.
roug
parents:
diff changeset
319 There are a number of useful control functions that can be
f4e798ea65b9 More splitups.
roug
parents:
diff changeset
320 generated from the keyboard. Many of these functions use &quot;control
1014
d9ed9d44b70c Some character entities had missing semicolons. It's &CPU;
roug
parents: 1011
diff changeset
321 keys&quot; which are generated by simultaneously depressing the &ctrlkey; key
144
f4e798ea65b9 More splitups.
roug
parents:
diff changeset
322 plus some other key. For example, to generate the character for
1092
f5d45fbe3a76 <keycap> elements
roug
parents: 1053
diff changeset
323 <keycap>CONTROL</keycap> <keycap>D</keycap> press the &ctrlkey; and <keycap>D</keycap> keys at the same time.
144
f4e798ea65b9 More splitups.
roug
parents:
diff changeset
324 </para>
f4e798ea65b9 More splitups.
roug
parents:
diff changeset
325 <variablelist>
f4e798ea65b9 More splitups.
roug
parents:
diff changeset
326 <varlistentry>
1092
f5d45fbe3a76 <keycap> elements
roug
parents: 1053
diff changeset
327 <term><keycombo action="simul">
f5d45fbe3a76 <keycap> elements
roug
parents: 1053
diff changeset
328 <keycap>CONTROL</keycap> <keycap>A</keycap></keycombo></term>
144
f4e798ea65b9 More splitups.
roug
parents:
diff changeset
329 <listitem>
f4e798ea65b9 More splitups.
roug
parents:
diff changeset
330 <para>
f4e798ea65b9 More splitups.
roug
parents:
diff changeset
331 Repeat previous input line. The last line entered will be redisplayed but
f4e798ea65b9 More splitups.
roug
parents:
diff changeset
332 <emphasis>not</emphasis> processed, with the cursor positioned at the end of
f4e798ea65b9 More splitups.
roug
parents:
diff changeset
333 the line. You may hit return to enter the line, or edit the line by
f4e798ea65b9 More splitups.
roug
parents:
diff changeset
334 backspacing, typing over characters to correct them, and entering
f4e798ea65b9 More splitups.
roug
parents:
diff changeset
335 control A again to redisplay the edited line.
f4e798ea65b9 More splitups.
roug
parents:
diff changeset
336 </para>
f4e798ea65b9 More splitups.
roug
parents:
diff changeset
337 </listitem>
f4e798ea65b9 More splitups.
roug
parents:
diff changeset
338 </varlistentry>
f4e798ea65b9 More splitups.
roug
parents:
diff changeset
339 <varlistentry>
1092
f5d45fbe3a76 <keycap> elements
roug
parents: 1053
diff changeset
340 <term><keycombo action="simul">
f5d45fbe3a76 <keycap> elements
roug
parents: 1053
diff changeset
341 <keycap>CONTROL</keycap> <keycap>D</keycap></keycombo></term>
144
f4e798ea65b9 More splitups.
roug
parents:
diff changeset
342 <listitem>
f4e798ea65b9 More splitups.
roug
parents:
diff changeset
343 <para>
f4e798ea65b9 More splitups.
roug
parents:
diff changeset
344 Redisplay present input on next line.
f4e798ea65b9 More splitups.
roug
parents:
diff changeset
345 </para>
f4e798ea65b9 More splitups.
roug
parents:
diff changeset
346 </listitem>
f4e798ea65b9 More splitups.
roug
parents:
diff changeset
347 </varlistentry>
f4e798ea65b9 More splitups.
roug
parents:
diff changeset
348 <varlistentry>
1092
f5d45fbe3a76 <keycap> elements
roug
parents: 1053
diff changeset
349 <term><keycombo action="simul">
f5d45fbe3a76 <keycap> elements
roug
parents: 1053
diff changeset
350 <keycap>CONTROL</keycap> <keycap>W</keycap></keycombo></term>
144
f4e798ea65b9 More splitups.
roug
parents:
diff changeset
351 <listitem>
f4e798ea65b9 More splitups.
roug
parents:
diff changeset
352 <para>
f4e798ea65b9 More splitups.
roug
parents:
diff changeset
353 Display Wait - This will temporarily halt output to the display so
f4e798ea65b9 More splitups.
roug
parents:
diff changeset
354 the screen can be read before the data scrolls off. Output is
f4e798ea65b9 More splitups.
roug
parents:
diff changeset
355 resumed when any other key is hit.
f4e798ea65b9 More splitups.
roug
parents:
diff changeset
356 </para>
f4e798ea65b9 More splitups.
roug
parents:
diff changeset
357 </listitem>
f4e798ea65b9 More splitups.
roug
parents:
diff changeset
358 </varlistentry>
f4e798ea65b9 More splitups.
roug
parents:
diff changeset
359 <varlistentry>
1092
f5d45fbe3a76 <keycap> elements
roug
parents: 1053
diff changeset
360 <term><keycombo action="simul">
f5d45fbe3a76 <keycap> elements
roug
parents: 1053
diff changeset
361 <keycap>CONTROL</keycap> <keycap>0</keycap></keycombo></term>
144
f4e798ea65b9 More splitups.
roug
parents:
diff changeset
362 <listitem>
f4e798ea65b9 More splitups.
roug
parents:
diff changeset
363 <para>
f4e798ea65b9 More splitups.
roug
parents:
diff changeset
364 Shift lock. Reverses present shift lock state.
f4e798ea65b9 More splitups.
roug
parents:
diff changeset
365 </para>
f4e798ea65b9 More splitups.
roug
parents:
diff changeset
366 </listitem>
f4e798ea65b9 More splitups.
roug
parents:
diff changeset
367 </varlistentry>
f4e798ea65b9 More splitups.
roug
parents:
diff changeset
368 <varlistentry>
1092
f5d45fbe3a76 <keycap> elements
roug
parents: 1053
diff changeset
369 <term><keycap>BREAK</keycap> (or <keycombo action="simul">
f5d45fbe3a76 <keycap> elements
roug
parents: 1053
diff changeset
370 <keycap>CONTROL</keycap> <keycap>E</keycap></keycombo>)</term>
144
f4e798ea65b9 More splitups.
roug
parents:
diff changeset
371 <listitem>
f4e798ea65b9 More splitups.
roug
parents:
diff changeset
372 <para>
f4e798ea65b9 More splitups.
roug
parents:
diff changeset
373 Program abort - Stops the current running program
f4e798ea65b9 More splitups.
roug
parents:
diff changeset
374 </para>
f4e798ea65b9 More splitups.
roug
parents:
diff changeset
375 </listitem>
f4e798ea65b9 More splitups.
roug
parents:
diff changeset
376 </varlistentry>
f4e798ea65b9 More splitups.
roug
parents:
diff changeset
377 <varlistentry>
1092
f5d45fbe3a76 <keycap> elements
roug
parents: 1053
diff changeset
378 <term><keycombo action="simul">
f5d45fbe3a76 <keycap> elements
roug
parents: 1053
diff changeset
379 <keycap>SHIFT</keycap> <keycap>BREAK</keycap></keycombo> (or <keycombo action="simul">
f5d45fbe3a76 <keycap> elements
roug
parents: 1053
diff changeset
380 <keycap>CONTROL</keycap> <keycap>C</keycap></keycombo>)</term>
144
f4e798ea65b9 More splitups.
roug
parents:
diff changeset
381 <listitem>
f4e798ea65b9 More splitups.
roug
parents:
diff changeset
382 <para>
f4e798ea65b9 More splitups.
roug
parents:
diff changeset
383 Interrupt - Reactivates Shell while keeping program running as
f4e798ea65b9 More splitups.
roug
parents:
diff changeset
384 background task.
f4e798ea65b9 More splitups.
roug
parents:
diff changeset
385 </para>
f4e798ea65b9 More splitups.
roug
parents:
diff changeset
386 </listitem>
f4e798ea65b9 More splitups.
roug
parents:
diff changeset
387 </varlistentry>
f4e798ea65b9 More splitups.
roug
parents:
diff changeset
388 <varlistentry>
1092
f5d45fbe3a76 <keycap> elements
roug
parents: 1053
diff changeset
389 <term><keycombo action="simul">
f5d45fbe3a76 <keycap> elements
roug
parents: 1053
diff changeset
390 <keycap>CONTROL</keycap> <keycap>BREAK</keycap></keycombo> (<keycap>ESCAPE</keycap>)</term>
144
f4e798ea65b9 More splitups.
roug
parents:
diff changeset
391 <listitem>
f4e798ea65b9 More splitups.
roug
parents:
diff changeset
392 <para>
f4e798ea65b9 More splitups.
roug
parents:
diff changeset
393 End-of-File - This key is used to send an end-of-file to programs
f4e798ea65b9 More splitups.
roug
parents:
diff changeset
394 that read input from the terminal in place of a disk or tape file.
f4e798ea65b9 More splitups.
roug
parents:
diff changeset
395 It must be the first character on the line in order for it to be
f4e798ea65b9 More splitups.
roug
parents:
diff changeset
396 recognized.
f4e798ea65b9 More splitups.
roug
parents:
diff changeset
397 </para>
f4e798ea65b9 More splitups.
roug
parents:
diff changeset
398 </listitem>
f4e798ea65b9 More splitups.
roug
parents:
diff changeset
399 </varlistentry>
f4e798ea65b9 More splitups.
roug
parents:
diff changeset
400 <varlistentry>
1092
f5d45fbe3a76 <keycap> elements
roug
parents: 1053
diff changeset
401 <term><keycap>LEFT ARROW</keycap> (OR <keycombo action="simul">
f5d45fbe3a76 <keycap> elements
roug
parents: 1053
diff changeset
402 <keycap>CONTROL</keycap> <keycap>H</keycap></keycombo>)</term>
144
f4e798ea65b9 More splitups.
roug
parents:
diff changeset
403 <listitem>
f4e798ea65b9 More splitups.
roug
parents:
diff changeset
404 <para>
f4e798ea65b9 More splitups.
roug
parents:
diff changeset
405 Backspace - erase previous character
f4e798ea65b9 More splitups.
roug
parents:
diff changeset
406 </para>
f4e798ea65b9 More splitups.
roug
parents:
diff changeset
407 </listitem>
f4e798ea65b9 More splitups.
roug
parents:
diff changeset
408 </varlistentry>
f4e798ea65b9 More splitups.
roug
parents:
diff changeset
409 <varlistentry>
1092
f5d45fbe3a76 <keycap> elements
roug
parents: 1053
diff changeset
410 <term><keycombo action="simul">
f5d45fbe3a76 <keycap> elements
roug
parents: 1053
diff changeset
411 <keycap>SHIFT</keycap> <keycap>LEFT ARROW</keycap></keycombo> (or <keycombo action="simul">
f5d45fbe3a76 <keycap> elements
roug
parents: 1053
diff changeset
412 <keycap>CONTROL</keycap> <keycap>X</keycap></keycombo>)</term>
144
f4e798ea65b9 More splitups.
roug
parents:
diff changeset
413 <listitem>
f4e798ea65b9 More splitups.
roug
parents:
diff changeset
414 <para>
f4e798ea65b9 More splitups.
roug
parents:
diff changeset
415 Line Delete - erases the entire current line.
f4e798ea65b9 More splitups.
roug
parents:
diff changeset
416 </para>
f4e798ea65b9 More splitups.
roug
parents:
diff changeset
417 </listitem>
f4e798ea65b9 More splitups.
roug
parents:
diff changeset
418 </varlistentry>
f4e798ea65b9 More splitups.
roug
parents:
diff changeset
419 </variablelist>
f4e798ea65b9 More splitups.
roug
parents:
diff changeset
420 </section>
f4e798ea65b9 More splitups.
roug
parents:
diff changeset
421 </section>
f4e798ea65b9 More splitups.
roug
parents:
diff changeset
422
f4e798ea65b9 More splitups.
roug
parents:
diff changeset
423 </chapter>