This commit is contained in:
rsc 2005-02-13 23:44:12 +00:00
parent 3170c7d40b
commit 30f6ae144c
14 changed files with 158 additions and 90 deletions

30
man/man1/readcons.1 Normal file
View file

@ -0,0 +1,30 @@
.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
.IR readcons (3)