Added all of the MH sources, including RCS files, in
[mmh] / docs / historical / mh-6.8.5 / conf / doc / RCS / prompter.rf,v
1 head    1.8;
2 access;
3 symbols;
4 locks; strict;
5
6
7 1.8
8 date    92.05.12.22.23.34;      author jromine; state Exp;
9 branches;
10 next    1.7;
11
12 1.7
13 date    90.12.18.15.12.01;      author mh;      state Exp;
14 branches;
15 next    1.6;
16
17 1.6
18 date    90.04.05.15.09.05;      author sources; state Exp;
19 branches;
20 next    1.5;
21
22 1.5
23 date    90.03.22.11.31.43;      author sources; state Exp;
24 branches;
25 next    1.4;
26
27 1.4
28 date    90.03.20.19.42.24;      author sources; state Exp;
29 branches;
30 next    1.3;
31
32 1.3
33 date    90.03.20.17.36.38;      author sources; state Exp;
34 branches;
35 next    1.2;
36
37 1.2
38 date    90.02.08.13.48.04;      author sources; state Exp;
39 branches;
40 next    1.1;
41
42 1.1
43 date    90.02.08.13.47.11;      author sources; state Exp;
44 branches;
45 next    ;
46
47
48 desc
49 @@
50
51
52 1.8
53 log
54 @fixup for nroff problems
55 @
56 text
57 @.\"    @@(MHWARNING)
58 .\" @@(#)$Id: prompter.rf,v 1.7 1990/12/18 15:12:01 mh Exp jromine $
59 .SC PROMPTER 1
60 .NA
61 prompter \- prompting editor front-end for MH
62 .SY
63 prompter
64 \%[\-erase\ chr]
65 \%[\-kill\ chr]
66 \%[\-prepend] \%[\-noprepend]
67 \%[\-rapid] \%[\-norapid]
68 \%[\-doteof] \%[\-nodoteof]
69 file
70 \%[\-help]
71 .DE
72 This program is normally not invoked directly by users
73 but takes the place of an editor and acts as an editor front\-end.
74 It operates on an 822\-style message draft skeleton specified by file,
75 normally provided by \fIcomp\fR, \fIdist\fR, \fIforw\fR, or \fIrepl\fR.
76
77 \fIPrompter\fR is an editor which allows rapid composition of
78 messages.
79 It is particularly useful to network and low\-speed
80 (less than 2400 baud) users of \fIMH\fR.
81 It is an \fIMH\fR program in that
82 it can have its own profile entry with switches,
83 but it is not invoked directly by the user.
84 The commands \fIcomp\fR, \fIdist\fR, \fIforw\fR, and \fIrepl\fR
85 invoke \fIprompter\fR as an editor,
86 either when invoked with `\-editor\ prompter',
87 or by the profile entry \*(lqEditor:\ prompter\*(rq,
88 or when given the command `edit\ prompter' at \*(lqWhat now?\*(rq level.
89
90 For each empty component \fIprompter\fR finds in the draft,
91 the user is prompted for a response;
92 A <RETURN> will cause the whole component to be left out.
93 Otherwise,
94 a `\\' preceding a <RETURN> will continue the response on the next line,
95 allowing for multiline components.
96 Continuation lines \fBmust\fR begin with a space or tab.
97
98 Each non\-empty component is copied to the draft and displayed on the
99 terminal.
100
101 The start of the message body is denoted by a blank line or a line of dashes.
102 If the body is non\-empty, the prompt, which isn't written to the file, is
103
104     \*(lq--------Enter additional text\*(rq,
105
106 or (if `\-prepend' was given)
107
108     \*(lq--------Enter initial text\*(rq.
109
110 Message\-body typing is terminated with an end\-of\-file (usually CTRL\-D).
111 With the `\-doteof' switch, a period on a line all by itself also signifies
112 end\-of\-file.
113 At this point control is returned to the calling program,
114 where the user is asked \*(lqWhat now?\*(rq.
115 See \fIwhatnow\fR for the valid options to this query.
116
117 By using the `\-prepend' switch, the user can add type\-in to the beginning
118 of the message body and have the rest of the body follow.
119 This is useful for the \fIforw\fR command.
120
121 By using the `\-rapid' switch,
122 if the draft already contains text in the message\-body,
123 it is not displayed on the user's terminal.
124 This is useful for low\-speed terminals.
125
126 The line editing characters for kill and erase may be
127 specified by the user via the arguments `\-kill\ chr' and `\-erase\ chr',
128 where chr may be a character; or `\\nnn', where \*(lqnnn\*(rq is the
129 octal value for the character.
130
131 An interrupt (usually CTRL\-C) during component typing will abort
132 \fIprompter\fR and the \fIMH\fR command that invoked it.
133 An interrupt during message\-body typing is equivalent to CTRL\-D,
134 for historical reasons.
135 This means that \fIprompter\fR should finish up and exit.
136
137 The first non\-flag argument to \fIprompter\fR
138 is taken as the name of the draft file, and
139 subsequent non\-flag arguments are ignored.
140 .\" (\fIRepl\fR invokes editors with two file arguments:
141 .\" the draft file name and the replied\-to message file name.)
142 .Fi
143 ^$HOME/\&.mh\(ruprofile~^The user profile
144 ^/tmp/prompter*~^Temporary copy of message
145 .Pr
146 prompter\-next: To name the editor to be used on exit from \fIprompter\fR
147 .Ps
148 ^Msg\-Protect:~^To set mode when creating a new draft
149 .Sa
150 comp(1), dist(1), forw(1), repl(1), whatnow(1)
151 .De
152 `\-prepend'
153 .Ds
154 `\-norapid'
155 .Ds
156 `\-nodoteof'
157 .Co
158 None
159 .Hh
160 The `\-rapid' option is particularly useful with \fIforw\fP, and
161 `\-noprepend' is useful with \fIcomp\ \-use\fP.
162
163 The user may wish to link \fIprompter\fR under several names
164 (e.g., \*(lqrapid\*(rq) and give appropriate switches
165 in the profile entries under these names (e.g., \*(lqrapid: -rapid\*(rq).
166 This facilitates invoking prompter differently for 
167 different \fIMH\fP commands (e.g., \*(lqforw: -editor rapid\*(rq).
168 .Bu
169 \fIPrompter\fR uses \fIstdio\fR\0(3), so it will lose if you edit files
170 with nulls in them.
171 .En
172 @
173
174
175 1.7
176 log
177 @mention linking under different names
178 jlr
179 @
180 text
181 @d2 1
182 a2 1
183 .\" @@(#)$Id: prompter.rf,v 1.6 90/04/05 15:09:05 sources Exp Locker: mh $
184 d5 1
185 a5 1
186 prompter \- prompting editor front\-end
187 @
188
189
190 1.6
191 log
192 @add ID
193 @
194 text
195 @d2 1
196 a2 1
197 .\" @@(#)$Id:$
198 d103 9
199 @
200
201
202 1.5
203 log
204 @put things back, do .NA stuff another way
205 @
206 text
207 @d2 1
208 @
209
210
211 1.4
212 log
213 @typo
214 @
215 text
216 @d2 2
217 a3 2
218 .TH PROMPTER 1 @@(MHCENTERFOOT) @@(MHLEFTFOOT)
219 .SH .NA
220 d5 1
221 a5 1
222 .SH .SY
223 @
224
225
226 1.3
227 log
228 @fixup for makewhatis
229 @
230 text
231 @d2 1
232 a2 1
233 .TH PROMPTER 1 [mh.6] MH
234 @
235
236
237 1.2
238 log
239 @doteof
240 @
241 text
242 @d2 2
243 a3 2
244 .SC PROMPTER 1
245 .NA
246 d5 1
247 a5 1
248 .SY
249 @
250
251
252 1.1
253 log
254 @Initial revision
255 @
256 text
257 @d11 1
258 d54 2
259 d98 2
260 @