On 7/5/06, Brandon J. Van Every <address@hidden> wrote:
Graham Fawcett wrote:
> Does it work if you run it with the -:c command line option,
e.g. "csi
> -:c"? See the FAQ.
Huh, yes it does. I wouldn't call this expected behavior though; the
FAQ entry is for emacs buffers. How difficult would it be to
eliminate
the need for -:c under MSYS? It strikes me as an impediment to
usability.
Good question -- personally I don't know the answer. I encountered
this when trying to get CSI working in Emacs, and it struck me as odd
at the time; fortunately the FAQ refered to this -:c workaround. But
yes, it feels like a kluge.
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.
On a related note, it's really hard to see where the -:c behaviour is
defined in the Chicken source -- can someone give a pointer?