[Ecls-list] How do I determine if *standard-input* is coming from an interactive terminal
doctorbill at gmail.com
Sat Jul 2 06:42:42 UTC 2005
On 6/30/05, Juan Jose Garcia Ripoll <jlr at mpq.mpg.de> wrote:
> William Bland wrote:
> >I'm using ECLS to write some command-line unix programs, and I need to
> >determine if *standard-input* is coming from an interactive terminal,
> >e.g. someone said:
> >$ myprogram arg1 ... argn
> >or if *standard-input* is being redirected from a pipe or a file, e.g.
> >$ myprogram arg1 ... argn < file
> >$ otherprogram | myprogram arg1 ... argn
> INTERACTIVE-STREAM-P should be enough (See below). The problem is that
> the unix port was missing some code in the configuration to detect
> whether the C function which implements this functionality (isatty())
> exists. I am committing now a fix.
Hi, thanks for the quick response.
Unfortunately the latest ecls from cvs returns NIL in both cases for
(interactive-stream-p *standard-input*) for me on Linux (Gentoo). Any
More information about the ecl-devel