plan9port/man/man1/readcons.1
Russ Cox 977b25a76a tmac: introduce real manual reference macro instead of overloading IR
The overloading of IR emits magic \X'...' sequences that turn into HTML manual links.
But not all such IR invocations should be manual links;
those had to be written to avoid the IR macro before.
Worse, the \X'...' ending the IR causes troff to emit only a single space after a period.

Defining a new IM macro for manual references fixes both problems.

Fixes #441.
2020-08-13 23:43:43 -04:00

30 lines
504 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
.IM readcons (3)