rsc | 30f6ae1 | 2005-02-13 23:44:12 +0000 | [diff] [blame] | 1 | .TH READCONS 1 |
| 2 | .SH NAME |
| 3 | readcons \- 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 |
| 16 | prompts at the console for input, copying the typed string |
| 17 | to standard output. |
| 18 | If the |
| 19 | .B -s |
| 20 | flag is given, the input is not displayed (secret). |
| 21 | If the user types an empty string (just a newline) and |
| 22 | the |
| 23 | .B -d |
| 24 | option is given, then |
| 25 | .I default |
| 26 | is printed instead of an empty string. |
| 27 | .SH SOURCE |
| 28 | .B \*9/src/cmd/readcons.c |
| 29 | .SH SEE ALSO |
| 30 | .IR readcons (3) |