[Top][All Lists]

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

Re: asynchronous process management on WinWP; buffering problem?

From: Lennart Borgman
Subject: Re: asynchronous process management on WinWP; buffering problem?
Date: Sat, 15 Apr 2006 17:26:54 +0200
User-agent: Thunderbird 1.5 (Windows/20051201)

Jason Rumney wrote:
Lennart Borgman <address@hidden> writes:

Can Emacs then tell _isatty that it is a terminal? Or what does Emacs
do to handle this?

Note: It looks like the POSIX name now is _isatty.

Probably not on Windows, since windows isn't POSIX and any POSIX layer
that MingW32 has is unlikely to add functionality that is not already
possible through other Windows APIs. On Windows stdout uses completely
different API calls than console I/O.
It actually seems like is _isatty is defined in MinGW. I just tested a small program I found here:


   #include <stdio.h>

   int main(int argc, char *argv[])
     if (isatty(fileno(stdin)) && _isatty(fileno(stdout)))
     return 0;

If I run this program in cmd.exe it says "interactive". I get the same result under MSYS and Cygwin. However running it in Emacs in shell:

   M-x shell

it instead says "batch". (This is in the CVS version of Emacs.) Is this what is expected?

reply via email to

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