PROMPTER(1)
π PROMpter(1) β bestie edition π
okay so like. manual name? prompter, from the General Commands Manual section, and it's giving "nmh's prompting editor front-end". that's the whole vibe. π
β¨ SYNOPSIS β¨
prompter [-help] [-version] [-erase chr] [-kill chr] [-prepend |
-noprepend] [-rapid | -norapid] [-doteof | -nodoteof] file
πΈ DESCRIPTION πΈ
so prompter is an editor front-end for nmh and it's literally built to let you compose messages fast. ngl, this is not the kind of program you just casually run yourself β no bestie, it takes the place of an editor and acts as an editor front-end. it operates on an RFC 822-style message draft skeleton that you specify with file, and that file is normally handed to it by the nmh commands comp, dist, forw, or repl. π
where it really ate: prompter is particularly useful when you're composing messages over slow network or modem lines. it's an nmh program in the sense that it can have its own profile entry with switches, but it is not invoked directly by the user. the commands comp, dist, forw, and repl invoke prompter as an editor β either when invoked with -editor prompter, or via the profile entry βEditor: prompterβ, or when you type the command edit prompter at the βWhat now?β prompt. iconic behavior honestly.
for each empty component prompter finds in the draft, you get prompted for a response, and a <RETURN> will cause the whole component to be left out. otherwise, a \ right before a <RETURN> will continue the response on the next line β that's how you get multiline components. β¨ continuation lines must begin with a space or tab, no exceptions bestie.
each non-empty component gets copied to the draft and displayed on the terminal. so you see what you did. π«Ά
the start of the message body is denoted by a blank line or a line of dashes. if the body is non-empty, the prompt β which isn't written to the file, ok, it's just for you β is:
--------Enter additional text
or, if -prepend was given:
--------Enter initial text
message-body typing is terminated with an end-of-file (usually CTRL-D). with the -doteof switch, a period on a line all by itself also signifies end-of-file. at that point control is returned to the calling program, where you get asked βWhat now?β. see whatnow(1) for the valid options to that query. π (not the whatnow jumpscare)
by using the -prepend switch, you can add type-in to the beginning of the message body and have the rest of the body follow. this is useful for the forw command. π¦
by using the -rapid switch, if the draft already contains text in the message-body, it is not displayed on your terminal. useful for low-speed terminals. lowkey a glow-up for slow connections.
the line editing characters for kill and erase may be specified by the user via the arguments -kill chr and -erase chr, where chr may be a character; or \nnn, where β*nnn*β is the octal value for the character. yes octal. she's old money. π
an interrupt (usually CTRL-C) during component typing will abort prompter and the nmh command that invoked it. an interrupt during message-body typing is equivalent to CTRL-D, for historical reasons. this means that prompter should finish up and exit. π§
the first non-flag argument to prompter is taken as the name of the draft file, and subsequent non-flag arguments are ignored. bye. π
β¨ OPTIONS β¨
-helpβ get the help. the classic.-versionβ show the version info.-erase chrβ set the erase (line editing) character, where chr is a character or\nnn(octal value for the character).-kill chrβ set the kill (line editing) character, where chr is a character or\nnn(octal value for the character).-prependβ add your typed-in text to the beginning of the message body, with the rest of the body following after. π-noprependβ don't do the prepend thing. (useful withcomp -use, see the hints below π)-rapidβ if the draft already has text in the message-body, don't display it on your terminal. perfect for low-speed terminals. π₯-norapidβ don't skip the display, show it like normal.-doteofβ a period on a line all by itself also counts as end-of-file. periodt. (literally)-nodoteofβ only a real end-of-file ends it, no period trick.
π FILES π
$HOME/.mh_profileβ The user profile/tmp/prompter*β Temporary copy of message
π PROFILE COMPONENTS π
prompter-next:β To name the editor to be used on exit fromprompterMsg-Protect:β To set mode when creating a new draft
π SEE ALSO π
comp(1), dist(1), forw(1), repl(1), whatnow(1)
π DEFAULTS π
-prepend-norapid-nodoteof
π CONTEXT π
None
β HELPFUL HINTS β
the -rapid option is particularly useful with forw, and -noprepend is useful with comp -use. iykyk. π
you may wish to link prompter under several names (e.g., βrapidβ) and give appropriate switches in the profile entries under these names (e.g., βrapid: -rapidβ). this facilitates invoking prompter differently for different nmh commands (e.g., βforw: -editor rapidβ). so many aliases, so many vibes. π¦
π BUGS π
prompter uses stdio(3), so it will lose if you edit files with nulls in them. no cap. π
so yeah, that's the whole page. this was nmh-1.8, dated 1999-04-30 β vintage but still slaying, fr fr. mwah. π β¨
π¦ where this page comes from
- alpine 3.24: nmh-doc 1.8-r3 Β· BSD-3-Clause
- epel 10: nmh 1.8-3.el10_1 Β· BSD
- epel 9: nmh 1.8-1.el9 Β· BSD
- fedora 43: nmh 1.8-9.fc43 Β· LicenseRef-Callaway-BSD
- fedora 44: nmh 1.8-10.fc44 Β· LicenseRef-Callaway-BSD
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms