cygwin: only expose /dev/con{in,out,sole} when started from a Windows console
Signed-off-by: Corinna Vinschen <corinna@vinschen.de>
This commit is contained in:
parent
bd86e9de75
commit
b706c6b479
|
@ -1439,7 +1439,7 @@ private:
|
||||||
ssize_t __stdcall write (const void *ptr, size_t len);
|
ssize_t __stdcall write (const void *ptr, size_t len);
|
||||||
void doecho (const void *str, DWORD len) { (void) write (str, len); }
|
void doecho (const void *str, DWORD len) { (void) write (str, len); }
|
||||||
int close ();
|
int close ();
|
||||||
static bool exists () {return !!GetConsoleCP ();}
|
static bool exists () {return shared_console_info && !!GetConsoleCP ();}
|
||||||
|
|
||||||
int tcflush (int);
|
int tcflush (int);
|
||||||
int tcsetattr (int a, const struct termios *t);
|
int tcsetattr (int a, const struct termios *t);
|
||||||
|
|
Loading…
Reference in New Issue