delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/1998/04/09/02:47:18

From: sos AT prospect DOT com DOT ru (Sergey Okhapkin)
Subject: RE: TTYs and non-cygwin code...
9 Apr 1998 02:47:18 -0700 :
Message-ID: <01BD622A.A8B73790.cygnus.gnu-win32@drs>
To: "gnu-win32 AT cygnus DOT com" <gnu-win32 AT cygnus DOT com>,
"'kubitron AT cs DOT berkeley DOT edu'" <kubitron AT cs DOT berkeley DOT edu>

John Kubiatowicz wrote:
> Forgive me if this is a misunderstanding, but is it the case that one
> cannot launch non-cygwin interactive applications from bash when tty
> support is turned on?  I have seen this behavior for some applications,

The behavior depends of the application. When tty support is enabled, 
stdin/stdout/stderr are redirected to a pipes, connected to "controlling 
tty". If the application does ReadFile() or WriteFile() on this handles, it 
works fine. For example, NT's cmd.exe started from bash works without 
problems. But if the application uses console api calls with this handles, 
it fails.

--
Sergey Okhapkin, http://www.lexa.ru/sos
Moscow, Russia

-
For help on using this list (especially unsubscribing), send a message to
"gnu-win32-request AT cygnus DOT com" with one line of text: "help".

- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019