summaryrefslogtreecommitdiffstats
path: root/usr.bin/lex/lex.1
diff options
context:
space:
mode:
authorobrien <obrien@FreeBSD.org>1999-10-27 20:21:03 +0000
committerobrien <obrien@FreeBSD.org>1999-10-27 20:21:03 +0000
commit27eaef25a32f85c4e342292855bd1fd8f72bf9f0 (patch)
tree55074f2da9b4f69bccade17aedd97f5a7c62b3c2 /usr.bin/lex/lex.1
parent8a143f23311fa4196bfe6b9c9729f6603c106e2e (diff)
downloadFreeBSD-src-27eaef25a32f85c4e342292855bd1fd8f72bf9f0.zip
FreeBSD-src-27eaef25a32f85c4e342292855bd1fd8f72bf9f0.tar.gz
Add more verbage explaining the "-I" option and its behavior.
Submitted by: Archie Cobbs <archie@whistle.com>
Diffstat (limited to 'usr.bin/lex/lex.1')
-rw-r--r--usr.bin/lex/lex.19
1 files changed, 9 insertions, 0 deletions
diff --git a/usr.bin/lex/lex.1 b/usr.bin/lex/lex.1
index 1c8f8d5..0e81b61 100644
--- a/usr.bin/lex/lex.1
+++ b/usr.bin/lex/lex.1
@@ -1906,6 +1906,7 @@ interactive to avoid problems due to waiting to fill buffers
flag below). A non-zero value
in the macro invocation marks the buffer as interactive, a zero
value as non-interactive. Note that use of this macro overrides
+.B %option interactive ,
.B %option always-interactive
or
.B %option never-interactive
@@ -2313,6 +2314,14 @@ or
Thus, this option is not really needed; it is on by default for all those
cases in which it is allowed.
.IP
+Note that if
+.B isatty()
+returns false for the scanner input, flex will revert to batch mode, even if
+.B \-I
+was specified. To force interactive mode no matter what, use
+.B %option always-interactive
+(see Options below).
+.IP
You can force a scanner to
.I not
be interactive by using
OpenPOWER on IntegriCloud