blob: 8fa1c392ee5c370c798b92c00dc6e3d9220467b8 [file] [log] [blame]
rsc30f6ae12005-02-13 23:44:12 +00001.TH READCONS 1
2.SH NAME
3readcons \- prompt console for input
4.SH SYNOPSIS
5.B readcons
6[
7.B -d
8.I default
9]
10[
11.B -s
12]
13.I prompt
14.SH DESCRIPTION
15.I Readcons
16prompts at the console for input, copying the typed string
17to standard output.
18If the
19.B -s
20flag is given, the input is not displayed (secret).
21If the user types an empty string (just a newline) and
22the
23.B -d
24option is given, then
25.I default
26is printed instead of an empty string.
27.SH SOURCE
28.B \*9/src/cmd/readcons.c
29.SH SEE ALSO
30.IR readcons (3)