This commit was manufactured by cvs2svn to create tag 'FreeBSD-release/1.0'.
[unix-history] / share / doc / usd / 11.notes / 2.1
CommitLineData
15637ed4
RG
1.\" Copyright (c) 1980 The Regents of the University of California.
2.\" All rights reserved.
3.\"
4.\" Redistribution and use in source and binary forms, with or without
5.\" modification, are permitted provided that the following conditions
6.\" are met:
7.\" 1. Redistributions of source code must retain the above copyright
8.\" notice, this list of conditions and the following disclaimer.
9.\" 2. Redistributions in binary form must reproduce the above copyright
10.\" notice, this list of conditions and the following disclaimer in the
11.\" documentation and/or other materials provided with the distribution.
12.\" 3. All advertising materials mentioning features or use of this software
13.\" must display the following acknowledgement:
14.\" This product includes software developed by the University of
15.\" California, Berkeley and its contributors.
16.\" 4. Neither the name of the University nor the names of its contributors
17.\" may be used to endorse or promote products derived from this software
18.\" without specific prior written permission.
19.\"
20.\" THIS SOFTWARE IS PROVIDED BY THE REGENTS AND CONTRIBUTORS ``AS IS'' AND
21.\" ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
22.\" IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
23.\" ARE DISCLAIMED. IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE LIABLE
24.\" FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
25.\" DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
26.\" OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
27.\" HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
28.\" LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
29.\" OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
30.\" SUCH DAMAGE.
31.\"
78ed81a3 32.\" from: @(#)2.1 6.2 (Berkeley) 4/17/91
33.\" 2.1,v 1.2 1993/08/01 07:37:36 mycroft Exp
15637ed4
RG
34.\"
35.ls 1
36.ch "Using Notesfiles"
37
38 The notesfile system is invoked with a single command line.
39Most notesfile commands require only a single character (like the vi editor).
40Those that require more than one character are terminated by a carriage
41return.
42
43.se "Invocation"
44
45 Invoke the notesfile system with:
46
47 notes [ -sxi ] [-a subsequencer] [ -t termtype ] [ -f nfile ] [ topic1 ] [ topic2 ... ]
48
49The topic list (e.g., topic1) specifies the notesfiles to read.
50Invoking the notes system with NO arguments yields a list of some
51available topics.
52When more than one topic is specified, the user encounters each topic
53sequentially (i.e., topic2 is entered upon completion of topic1).
54
55 The -s switch activates the ``notesfile sequencer'' which is discussed
56in section 2.8.
57Specify ``-x'' to use the extended sequencer.
58The ``-i'' flag selects yet another sequencing mode.
59The ``-a'' option specifies a particular subsequencer.
60This allows several users sharing a signon to maintain their
61own sequencing timestamp information.
62
63 The -t option directs the notesfile system to use ``termtype'' as the user's
64terminal type, overriding the TERM shell variable.
65
66 The -f option directs the notesfile system to read the contents
67of the file ``nfile'' for a list of notesfiles to read.
68See section 2.3 (``The -f Option'')
69for more information on the format of this file.
70
71.se "Notesfile Names and Wildcards"
72
73 Notesfiles can be specified in several ways.
74The most common way is to merely give the name of the notesfile,
75such as ``general''.
76These notesfiles typically reside in the directory
77``/usr/spool/notes''.
78Notesfiles may also be specified by their complete pathname;
79thus you could also refer to ``general'' by its full
80pathname ``/usr/spool/notes/general''.
81Using complete naming, notesfiles can be placed anywhere in
82the filesystem.
83This allows ``private'' notesfiles to be
84stored in personal directories.
85
86 The notesfile system supports pattern matching for names in
87the same manner as the shell.
88By using the shell meta-characters ``*'', ``?'', ``['' and ``]'', the user
89can specify a number of notesfiles with a single entry.
90To read all the notesfiles that pertain to
91unix, enter the following
92line (the quotes are required to protect the metacharacters from interpretation
93by the shell):
94
95 notes ``*unix*''
96
97There are several ways to read the notesfiles
98test1, test2, test3 and test4:
99
100 notes test1 test2 test3 test4
101.br
102 notes ``test?''
103.br
104 notes ``test[1234]''
105
106 Entries can also be eliminated from the list of notesfiles to
107look at.
108By prefixing a notesfile name (possibly containing wildcard characters)
109with a `!', the notesfiles are excluded from the list
110to be examined.
111If one wished to look at all of the ``test'' notesfiles except
112test3, one could specify:
113
114 notes ``test?'' !test3
115
116If you use the c shell, you will have to escape the `!', the history character:
117
118 notes ``test?'' \\!test3
119
120 These features are available from
121the normal entry (notes) and
122the automatic sequencer entry (see section 2.8).
123Most notesfile programs recognize this format. Among those
124which do not are programs which must receive exactly one
125notesfile name.
126
127.se "The -f Option"
128
129 The ``-f'' option of the notesfile system
130specifies a file of notesfile names to read.
131The file consists of lines containing notesfile names:
132
133.ne 4
134.nf
135 nfgripes
136 net.unix-wizards
137 net.general
138 fa.telecom
139.fi
140
141The names start at the left margin; they are indented here
142for readability.
143Wildcard characters (``*'', ``?'', ``['', and ``]'')
144are acceptable in this context.
145Full names such as ``/usr/spool/notes/general''
146are also accepted.
147Notesfiles can be eliminated through the ``!'' feature
148as described in section 2.2.
149The sequencer mode can be changed (see section 2.8)
150by inserting a line of the form:
151
152 -s
153
154 Again, this starts at the left margin.
155The ``s'' can be any of: ``s'', ``x'', ``i'', or ``n''.
156When a line of this form is read from the file, the sequencer mode
157is set to the corresponding mode: The normal ``s''equencer,
158the e``x''tended sequencer,
159the ``i''ndex sequencer,
160and
161``n''o sequencer.
162
163 To always enter nfgripes, micronotes, and bicycle
164while only entering the networked notesfiles ``net.*'' when new notes
165are present, one might use ``notes -f myfile''
166with this ``myfile'':
167
168.ne 6
169.nf
170 -x
171 nfgripes
172 micronotes
173 bicycle
174 -s
175 net.*
176.fi
177
178.se "General"
179
180 Almost all notesfile commands consist of exactly one character
181(no carriage return). Only commands that are longer than one character
182require a terminating carriage return (currently, choosing a note to read
183is the only non-single character command).
184
185 The commands were chosen to be easy to remember.
186Upper case forms of commands usually function
187like their lower case counterparts but with some additional
188feature or power \14(i.e., ``w'' writes a response, ``W'' includes the current
189displayed text in the response).
190
191 Some commands are available almost everywhere in the notesfile
192system. These include those for help, exiting, forking a shell,
193and making a comment for the suggestion box.
194
195.ss "Help"
196
197 Typing ``?'' anywhere will list the available options in
198an abbreviated format.
199
200.ss "Exiting"
201
202 Type ``q'' (``quit'') to leave the current notesfile.
203Capital ``Q''
204leaves the current notesfile and refrains from entering your
205last entry time into the sequencer table (see section ``The Sequencer'').
206The notesfile system
207proceeds to the next topic in the invocation list.
208The ``k'' and ``K'' keys function exactly as ``q'' and ``Q''.
209
210 Use control-D (``signoff'')
211to leave the notesfile system completely (without updating
212entry time information).
213The ``z'' command (which functions only when reading notes or responses
214or when on the index page)
215behaves similarly to control-D:
216the user exits the notesfile system immediately, but unlike control-D,
217updates the
218entry time information for the current notesfile.
219
220
221.ss "Shells"
222
223 Fork a shell at any time by typing ``!''
224(just like many other Unix programs).
225
226.ss "Comments & Suggestions"
227
228 Type capital ``B'' (``suggestion Box'')
229while on the index page or reading notes
230to make a comment or suggestion about the notesfile program.
231Your suggestion will be stored in another
232notesfile reviewed frequently by the notesfile system manager.
233
234.se "The Index Page"
235
236 When the notes system is invoked without the -s option,
237the user sees an index
238of the most recent notes.
239A sample page is shown below:
240
241.KS
242.nf
243.in +10
244Workstation Discussion 2:03 pm Jan 4, 1982
245
246.ta .75i 3.0i 3.25i
24712/9/81 2 Stanford SUN 4 horton
248 3*WICAT 68000 kolstad
249 4 M68000 1 horton
250 5 Dolphin 3 duke!johnson
25112/10 6 CDC Standalone 1 smith
252 8 IBM Personal Computer henry
253 9 Personal computers harmful? 8 Anonymous
254 10 Ethernet interfaces 3 mhz? 23 essick
255 11 Requirements for uiucdcs 10 botten
2561/1/82 12 Happy New Year! 5 mjk
257
258
259.TA
260.in
261.fi
262.KE
263 The upper left corner shows the notesfile's title. In this
264example, the notesfile discusses personal workstations.
265The current time and date are displayed in the upper right corner.
266Approximately ten note titles are displayed (if available).
267More notes are displayed on longer
268screens (such as the Ann Arbor Ambassador).
269Each note is displayed
270with its date (if different from the previous date), note number,
271title, number of responses (if any), and author. The first note above
272was written by user ``horton'' on December 9th, is entitled ``Stanford
273SUN'' and has four responses. Note 7 has been deleted for some reason
274(by either its author or a notesfile director). Note 5 was written
275by user ``johnson'' whose signon resides on the ``duke'' system.
276Note 9 was written by an author who preferred to remain unidentified.
277Notes with director messages (sometimes denoting importance) are displayed
278with a ``*'' next to the note number (see note 3 above).
279
280 From the index page the user may:
281
282.br
283.bx
284.ix
285Scroll the index forward or backward.
286.ix
287Read a note.
288.ix
289Write a note.
290.ix
291Go to the next unread note.
292.ix
293Search for notes or responses after a specific date/time.
294.ix
295Search for keywords within notes' titles.
296.ix
297Search for notes/responses by a specific author.
298.ix
299Go to another notesfile.
300.ix
301Consult the notesfile's archive.
302.ix
303Read the policy note.
304.ix
305Check on anonymous and networked status.
306.ix
307Register a complaint/suggestion about notesfiles.
308.ix
309Fork a shell.
310.ix
311Exit the notes program.
312.ix
313Invoke notesfile director options (if the user is a director).
314.ex
315
316.ss "Scrolling the Index Page"
317
318 Scroll the index page by:
319
320.nf
321.ls 1
322 +, <return>, <space> forward one page
323 * forward to the most recent page (* is multiple +'s)
324 - backward one page
325 = backward all the way (= is multiple -'s)
326.br
327.ls
328.fi
329
330.ss "Choosing Notes & Responses"
331
332 While on the index page, choose a note to read by typing its number
333followed by a carriage return.
334(This is the only command that requires a carriage return after it.)
335Usually the space bar is used to scan text.
336To skip to a particular note or response, use the features below.
337
338 While reading a note, ``;'' or ``+''
339advances to the
340first response of the note.
341The next note is displayed if there are no responses.
342The number keys (``1'', ``2'', ... , ``9'') advance that many
343responses.
344If there are fewer responses, the last response is displayed.
345The return key skips the responses and goes to the next note.
346Press ``-'' or backspace to see the previous page of the current note;
347if the page currently displayed is the first, the notesfile program
348displays the first page of the previous note.
349
350 While a response is on the screen, the ``;'' and ``+'' keys
351display the next response.
352As with reading a note, if there are no further responses these
353keys advance to the next note.
354The number keys (``1'', ... , ``9'') will advance the appropriate number
355of responses.
356If there are fewer responses, the last response is displayed.
357The ``-'' or backspace keys display the previous page of the current
358response. If the current page is the first page of the response,
359these keys display the first page of the previous response.
360Enter ``='' to see the base note of the current note string.
361Press the return key to proceed to the next note.
362
363.se "Notes & Responses"
364
365.ss "Reading Notes"
366
367 After selecting a note from the index page (or entering the
368notesfile with your ``sequencer'' on), the note is displayed. A sample
369display is shown below:
370
371.KS
372.nf
373Note 15 Workstation Discussion 2 responses
374horton WICAT 150 4:03 pm Dec 11, 1981
375
376Wicat System 150
377
3788 MHz 68000, Mem. mgmt, Multibus architecture, 256k to 1.5 Mb RAM,16/32/64Kbyte EPROM,
37910 ms interval timer, 2 RS232 (19.6k async, 56k sync), 16 bit parallel intelligent disk controller,
38010 Mbyte winchester (5.25", 3600 rpm, access: 3 ms trk-trk, 70 avg, 150 max),
381960Kb floppy (5.25", 300 rpm, access 10 ms trk-trk, 267 avg, 583 max)
382Options: battery backed clock, graphics with touch panel, video disk control,
383High Speed Serial Network Interface
384Unix/V7 avail, Pascal, C, APL, ADA, Cobol, Fortran, Lisp, Basic, Asm
385
386.fi
387.KE
388
389 This is note number 15 in the ``Workstation Discussion'' file.
390User ``horton'' wrote this note at 4:03 pm on December 11th, 1981. Two
391responses have been written. The note's title is ``WICAT 150''. If a
392director had written the note, the ``director message'' might have been
393displayed beneath the note's title. Director's notes sometimes contain
394important information or new policies.
395
396 Since notes and responses can each be up to 3 Mbytes long,
397the display routine breaks text into pages automatically.
398For all but the last page of a long note or response,
399the lower right corner of the display shows the percentage of the
400note that has been shown.
401For all but the first page of long text, the message ``[Continued]''
402appears in the upper left portion of the display.
403Use the space bar to see the next page of a long note or response.
404When the last page is displayed, the space key functions as the ``;''
405key: it proceeds to the next response.
406The ``-'' and backspace keys back up the display to the previous page.
407Only the first 50 pages of text are managed this way;
408typing ``-'' from the fifty-second page will return to the fiftieth page.
409The ``='' key returns to the first page of the note.
410
411 While reading a note, it is possible to:
412.br
413.bx
414.ix
415Display the next, previous, or first page of the note.
416.ix
417Write a response to the displayed note.
418.ix
419Read next note or previous note.
420.ix
421Read next unread response or note.
422.ix
423Return to the index page.
424.ix
425Skip to a given response.
426.ix
427Delete the note (if you are its author or a file director).
428.ix
429Edit the note's title (if it is yours).
430.ix
431Edit the note (if it is yours and there are no responses).
432.ix
433Copy the note to another notesfile.
434.ix
435Save the note in your file space.
436.ix
437Mail the note to someone.
438.ix
439Talk (``write'') to the author of the note.
440.ix
441Search for keywords in note titles.
442.ix
443Search for notes/responses by a particular author.
444.ix
445Toggle the director message (if privileged).
446.ix
447Fork a shell.
448.ix
449Go to another notesfile.
450.ix
451Make a comment or suggestion about notesfiles.
452.ix
453Exit the notesfile program.
454.ex
455
456.ss "Reading Responses"
457
458 Response displays are similar to those of main notes with the exception that
459``Response x of y'' replaces the note's title.
460The first response to note 15 is shown below:
461
462.KS
463.nf
464Note 15 Workstation Discussion
465koehler Response 1 of 2 11:53 pm Dec 11, 1981
466
467Does anyone have any insight about the relative speeds of the Winchester disks available
468on these systems? The previous disk seems to have track to track response times commensurate
469with reasonably fast 8" floppies. I wonder if some of the manufacturers are using disks that
470will not meet reasonable specifications for response time for these kinds of applications.
471
472On the other hand, with intelligent layout of file sectors, the I/O system
473could romp and stomp on often used files...
474 ======================================
475.fi
476.KE
477
478 The commands for manipulating the text of a long response
479are the same as those for looking at long notes.
480Typing space will move to the next page.
481Typing ``-'' or backspace will display the previous page, within the
482same limitations as for reading notes (only 50 pages are kept).
483Press ``='' to go back to the first page of the text.
484
485 The options available while reading responses include:
486.bx
487.ix
488Display the next, previous, or first page of the response.
489.ix
490Go to a different response (usually the next one).
491.ix
492Go to the next unread note/response.
493.ix
494Reread the base note.
495.ix
496Reread the previous note.
497.ix
498Return to the index page.
499.ix
500Copy the response to another notesfile.
501.ix
502Mail the response to someone.
503.ix
504Save the response in your file space.
505.ix
506Talk to the response's author.
507.ix
508Write another response to the note.
509.ix
510Search for keywords in note titles.
511.ix
512Search for notes/responses by particular authors.
513.ix
514Delete the response (if you are its author or a file director).
515.ix
516Edit the response (if it is yours and there are no later responses).
517.ix
518Fork a shell
519.ix
520Go to another notesfile.
521.ix
522Register a suggestion or complaint about the notesfile program.
523.ix
524Exit the notesfile program.
525.ex
526
527
528.ss "Writing Notes & Responses"
529
530 Write new base notes by hitting ``w'' while reading the index page.
531The notesfile system will then invoke an editor
532(
533``ed'' by default; use either of the shell variables NFED or EDITOR to change it).
534After the prompt,
535compose the text you wish to enter, then
536write the text to the disk and leave the editor. The system will prompt
537you for various options if they are available: anonymity, director
538message status, and the note's title.
539
540 To write a response to a note type ``w'' while that note or any of
541its responses is displayed.
542The same steps used to write a base note
543should then be followed.
544
545.ss "Mailing Notesfile Text"
546
547 Both notes and responses can be mailed to other users (with
548optional appended text).
549The capital ``M'' (``mail'') command gives you the opportunity to edit the text then send
550it to anyone. Its inferior counterpart, ``m'', allows you to mail a message to
551anyone.
552To mail to the author of the text,
553use capital ``P'' (``Personal comment'') to send the text
554and your comments; use ``p'' for a simple letter.
555
556 To use a specific mail program, set the environment variable
557MAILER. If this is not set, a standard mail program is used.
558
559.ss "Forwarding Text To Other Notesfiles"
560
561 There are several methods for forwarding text from one notesfile
562to another.
563Single notes or responses can be copied with the ``c'' or ``C'' command
564while entire note strings can be forwarded with the ``f'' and ``F''
565commands.
566
567 The ``f'' (``forward'') command is given when a base note
568is displayed on the screen.
569When given, the ``f'' command causes the base note and all of its
570responses to be copied to another notesfile.
571The user is prompted for the destination notesfile.
572The copied note and all of the copied responses contain header
573information detailing their origin.
574Where ``f'' copies the note string without change, the ``F''
575command allows the user to edit the text of the note and each
576response before inserting it into the target notesfile.
577
578 The ``c'' (``copy'') command prompts for a destination notesfile
579then
580copies the currently displayed note or response to the target notesfile.
581The user is allowed to choose between forwarding the note as a response
582or as a new base note.
583The ``c'' command does not give the user a chance to edit the text
584before inserting it in the new notesfile.
585The extended copying command ``C''
586allows editing of the note text before it is copied to the other notesfile.
587
588 Both the ``c'' and ``C'' commands provide for
589the forwarded text to be entered as either a new note or as a response
590to an existing note.
591In the latter case, an index page is given to the user for
592choosing the appropriate note to which to respond.
593
594.ss "Saving Text in Local Files"
595
596 The ``s'' (``save'') command appends the current displayed text to a
597file of your choice (which is created if not present).
598Notesfiles prompts for the file name;
599typing only a carriage return aborts the command -- no text is saved.
600Capital ``S'' appends
601the base note and all its responses. The number of lines saved and the name
602of the file written are printed when the command completes.
603
604.ss "Deletion"
605
606 Capital ``D'' (``delete'') deletes a note or response if it is yours and
607has no subsequent responses. Notes already sent to the network can not be
608deleted by non-directors.
609Directors can delete any note or response with the ``Z'' (``zap'') command.
610
611
612.ss "Online Communication"
613
614 Typing ``t'' (``talk'') attempts to page the author of the current displayed
615text. The Unix ``write'' command to him/her is issued
616if the author is local and non-anonymous. If the environment variable WRITE
617is defined, the program it specifies is used to write to the author.
618
619.ss "Editing Note Titles"
620
621 While reading a base note, type ``e'' (``edit'') to
622change the note's title
623(provided you are the author of the note or a notesfile director).
624
625.ss "Editing Notes/Responses"
626
627 ``E'' allows editing of the text of a note or response.
628It is not permitted to edit an article if it has subsequent responses or
629if it has been sent to the network.
630If the ``later responses'' are deleted, it is possible to edit the
631original text.