peterb@cernvax.UUCP (peter beckmann) (07/18/90)
Hi Netlanders, i have a program that does prompted read, e.g. a user enters Prog and it responds with Input> so the user can type some commands. Now i have a question: if the user generates input from a file or a pipe ,e.g. Prog < some.stuff, is there a way to figure out if the input is coming NOT from the terminal. (i want to disable the prompting in this case). Peter Beckmann
grr@cbmvax.commodore.com (George Robbins) (07/18/90)
In article <2100@cernvax.UUCP> peterb@cernvax.UUCP (peter beckmann) writes: > > Now i have a question: if the user generates input from a file or a pipe > ,e.g. Prog < some.stuff, is there a way to figure out if the > input is coming NOT from the terminal. (i want to disable the > prompting in this case). type "man 3 isatty"... -- George Robbins - now working for, uucp: {uunet|pyramid|rutgers}!cbmvax!grr but no way officially representing: domain: grr@cbmvax.commodore.com Commodore, Engineering Department phone: 215-431-9349 (only by moonlite)