chicken-users
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Chicken-users] csi -:c MSYS problem


From: felix winkelmann
Subject: Re: [Chicken-users] csi -:c MSYS problem
Date: Fri, 7 Jul 2006 11:25:11 +0200

On 7/6/06, Graham Fawcett <address@hidden> wrote:

Posix provides an isatty() function to let you know when a file
descriptor (like stdin/stdout) is connected to a terminal, rather than
a pipe; but there may be no (obvious) equivalent to this on Windows. I
imagine the root of the problem lies there. I don't know why the "-:c"
behaviour couldn't be the default on win32/msys, though... maybe
someone else can provide a good counter-case.


Chicken shows a prompt when isatty() returns true, otherwise it assumes
code is coming from stdin. Under windows emacs and apparently, the msys
shell isatty() seems to return 0.
I can add functionality to enable "-:c" by default through a compile-time
parameter.


cheers,
felix




reply via email to

[Prev in Thread] Current Thread [Next in Thread]