source: trunk/third/nmh/man/prompter.man @ 12455

Revision 12455, 4.2 KB checked in by danw, 26 years ago (diff)
This commit was generated by cvs2svn to compensate for changes in r12454, which included commits to RCS files with non-trunk default branches.
Line 
1.\"
2.\" %nmhwarning%
3.\" $Id: prompter.man,v 1.1.1.1 1999-02-07 18:14:22 danw Exp $
4.\"
5.\" include the -mh macro file
6.so %etcdir%/tmac.h
7.\"
8.TH PROMPTER %manext1% MH.6.8 [%nmhversion%]
9.SH NAME
10prompter \- prompting editor front-end for nmh
11.SH SYNOPSIS
12.in +.5i
13.ti -.5i
14prompter
15\%[\-erase\ chr]
16\%[\-kill\ chr]
17\%[\-prepend] \%[\-noprepend]
18\%[\-rapid] \%[\-norapid]
19\%[\-doteof] \%[\-nodoteof]
20file
21\%[\-version]
22\%[\-help]
23.in -.5i
24.SH DESCRIPTION
25\fIPrompter\fR is an editor front\-end for \fInmh\fR which allows rapid
26composition of messages.  This program is not normally invoked directly by
27users but takes the place of an editor and acts as an editor front\-end.
28It operates on an RFC\-822 style message draft skeleton specified by
29file, normally provided by the nmh commands \fIcomp\fR, \fIdist\fR,
30\fIforw\fR, or \fIrepl\fR.
31
32\fIPrompter\fR is particularly useful when composing messages over slow
33network or modem lines.  It is an \fInmh\fR program in that it can have
34its own profile entry with switches, but it is not invoked directly by
35the user.  The commands \fIcomp\fR, \fIdist\fR, \fIforw\fR, and \fIrepl\fR
36invoke \fIprompter\fR as an editor, either when invoked with
37`\-editor\ prompter', or by the profile entry \*(lqEditor:\ prompter\*(rq,
38or when given the command `edit\ prompter' at the \*(lqWhat now?\*(rq prompt.
39
40For each empty component \fIprompter\fR finds in the draft, the user
41is prompted for a response; A <RETURN> will cause the whole component
42to be left out.  Otherwise, a `\\' preceding a <RETURN> will continue
43the response on the next line, allowing for multiline components.
44Continuation lines \fBmust\fR begin with a space or tab.
45
46Each non\-empty component is copied to the draft and displayed on the
47terminal.
48
49The start of the message body is denoted by a blank line or a line
50of dashes.  If the body is non\-empty, the prompt, which isn't written
51to the file, is
52
53    \*(lq--------Enter additional text\*(rq,
54
55or (if `\-prepend' was given)
56
57    \*(lq--------Enter initial text\*(rq.
58
59Message\-body typing is terminated with an end\-of\-file (usually
60CTRL\-D).  With the `\-doteof' switch, a period on a line all by itself
61also signifies end\-of\-file.  At this point control is returned to
62the calling program, where the user is asked \*(lqWhat now?\*(rq.
63See \fIwhatnow\fR for the valid options to this query.
64
65By using the `\-prepend' switch, the user can add type\-in to the
66beginning of the message body and have the rest of the body follow.
67This is useful for the \fIforw\fR command.
68
69By using the `\-rapid' switch, if the draft already contains text in
70the message\-body, it is not displayed on the user's terminal.  This is
71useful for low\-speed terminals.
72
73The line editing characters for kill and erase may be specified by the
74user via the arguments `\-kill\ chr' and `\-erase\ chr', where chr may
75be a character; or `\\nnn', where \*(lqnnn\*(rq is the octal value for
76the character.
77
78An interrupt (usually CTRL\-C) during component typing will abort
79\fIprompter\fR and the \fInmh\fR command that invoked it.  An interrupt
80during message\-body typing is equivalent to CTRL\-D, for historical
81reasons.  This means that \fIprompter\fR should finish up and exit.
82
83The first non\-flag argument to \fIprompter\fR is taken as the name of
84the draft file, and subsequent non\-flag arguments are ignored.
85.\" (\fIRepl\fR invokes editors with two file arguments:
86.\" the draft file name and the replied\-to message file name.)
87.Fi
88^$HOME/\&.mh\(ruprofile~^The user profile
89^/tmp/prompter*~^Temporary copy of message
90.Pr
91prompter\-next: To name the editor to be used on exit from \fIprompter\fR
92.Ps
93^Msg\-Protect:~^To set mode when creating a new draft
94.Sa
95comp(1), dist(1), forw(1), repl(1), whatnow(1)
96.De
97`\-prepend'
98.Ds
99`\-norapid'
100.Ds
101`\-nodoteof'
102.Co
103None
104.Hh
105The `\-rapid' option is particularly useful with \fIforw\fP, and
106`\-noprepend' is useful with \fIcomp\ \-use\fP.
107
108The user may wish to link \fIprompter\fR under several names (e.g.,
109\*(lqrapid\*(rq) and give appropriate switches in the profile entries
110under these names (e.g., \*(lqrapid: -rapid\*(rq).  This facilitates
111invoking prompter differently for different \fInmh\fP commands (e.g.,
112\*(lqforw: -editor rapid\*(rq).
113.Bu
114\fIPrompter\fR uses \fIstdio\fR\0(3), so it will lose if you edit files
115with nulls in them.
116.En
Note: See TracBrowser for help on using the repository browser.