aboutsummaryrefslogtreecommitdiff
path: root/man/man1/readcons.1
diff options
context:
space:
mode:
authorrsc <devnull@localhost>2005-02-13 23:44:12 +0000
committerrsc <devnull@localhost>2005-02-13 23:44:12 +0000
commit30f6ae144c291409de3657c4bbbaf4983a516772 (patch)
tree53b622d39d6677695587bec654dcd65e867a9656 /man/man1/readcons.1
parent3170c7d40bbdc19cdd2321a0bde7cdab3be526da (diff)
downloadplan9port-30f6ae144c291409de3657c4bbbaf4983a516772.tar.gz
plan9port-30f6ae144c291409de3657c4bbbaf4983a516772.tar.bz2
plan9port-30f6ae144c291409de3657c4bbbaf4983a516772.zip
man
Diffstat (limited to 'man/man1/readcons.1')
-rw-r--r--man/man1/readcons.130
1 files changed, 30 insertions, 0 deletions
diff --git a/man/man1/readcons.1 b/man/man1/readcons.1
new file mode 100644
index 00000000..8fa1c392
--- /dev/null
+++ b/man/man1/readcons.1
@@ -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)