Tomas Hajny wrote:
I'm trying to distinguish between a case where there is no parameter on the
command line and where there is piped input.
For unix one can simply use termio.isatty(input) I think.
Note that you could use function Do_IsDevice
provided in system unit for this (if Input is
On 8 Dec 07, at 13:20, Mark Morgan Lloyd wrote:
> Good grief- that was quick :-)
>
> Marco van de Voort wrote:
> >> I'm trying to distinguish between a case where there is no parameter on
> >> the
> >> command line and where there is piped input. The code below works under
> >> Win-32
> >> bu
Marco van de Voort wrote:
For unix one can simply use termio.isatty(input) I think.
I can confirm that that works.
Another implementation difference that I noticed between Win-32 and Linux was
that FileExists() on Win-32 excludes directories while on Linux it matches
them. Workaround was t
Good grief- that was quick :-)
Marco van de Voort wrote:
I'm trying to distinguish between a case where there is no parameter on the
command line and where there is piped input. The code below works under Win-32
but under Linux Eof() waits for input:
If I start it under linux by piping an eo
> I'm trying to distinguish between a case where there is no parameter on the
> command line and where there is piped input. The code below works under
> Win-32
> but under Linux Eof() waits for input:
>
>IF ParamCount = 0 THEN BEGIN (* Case (1) or (2) *)
> debug('No para
I'm trying to distinguish between a case where there is no parameter on the
command line and where there is piped input. The code below works under Win-32
but under Linux Eof() waits for input:
IF ParamCount = 0 THEN BEGIN (* Case (1) or (2) *)
debug('No parameters (case 1 or 2)'