From 27eaef25a32f85c4e342292855bd1fd8f72bf9f0 Mon Sep 17 00:00:00 2001 From: obrien Date: Wed, 27 Oct 1999 20:21:03 +0000 Subject: Add more verbage explaining the "-I" option and its behavior. Submitted by: Archie Cobbs --- usr.bin/lex/lex.1 | 9 +++++++++ 1 file changed, 9 insertions(+) (limited to 'usr.bin/lex') 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 -- cgit v1.1