groff 1.23.0 added .MR to its -man macro package. The NEWS file states
that the inclusion of the macro "was prompted by its introduction to
Plan 9 from User Space's troff in August 2020." From d32deab it seems
that the name for Plan 9 from User Space's implementation was suggested
by groff maintainer G. Brandon Robinson.
Not sure if the intention was to make these definitions compatible, but
it would be nice if they were.
Currently, Plan 9 from User Space's .MR expects its second argument to
be parenthesized. groff's .MR does not. This results in extra
parentheses appearing in manual references when viewing Plan 9 from User
Space's manual pages on a system using groff.
31 lines
502 B
Groff
31 lines
502 B
Groff
.TH READCONS 1
|
|
.SH NAME
|
|
readcons \- prompt console for input
|
|
.SH SYNOPSIS
|
|
.B readcons
|
|
[
|
|
.B -d
|
|
.I default
|
|
]
|
|
[
|
|
.B -s
|
|
]
|
|
.I prompt
|
|
.SH DESCRIPTION
|
|
.I Readcons
|
|
prompts at the console for input, copying the typed string
|
|
to standard output.
|
|
If the
|
|
.B -s
|
|
flag is given, the input is not displayed (secret).
|
|
If the user types an empty string (just a newline) and
|
|
the
|
|
.B -d
|
|
option is given, then
|
|
.I default
|
|
is printed instead of an empty string.
|
|
.SH SOURCE
|
|
.B \*9/src/cmd/readcons.c
|
|
.SH SEE ALSO
|
|
.MR readcons 3
|