diff options
| author | nijtmans@users.sourceforge.net <jan.nijtmans> | 2012-05-24 19:52:56 (GMT) |
|---|---|---|
| committer | nijtmans@users.sourceforge.net <jan.nijtmans> | 2012-05-24 19:52:56 (GMT) |
| commit | ec77c1859e96fe85a459a88e64c59b03f596c61c (patch) | |
| tree | 6e84cf6bab875aa9d4da86d73404be40fbc6c3ee /generic/tclStubInit.c | |
| parent | 78aaba888773153d5d71c48366a39cfef77be9a1 (diff) | |
| parent | a754b12b12636d7b8b25e7b64abf37c73be98ad0 (diff) | |
| download | tcl-ec77c1859e96fe85a459a88e64c59b03f596c61c.zip tcl-ec77c1859e96fe85a459a88e64c59b03f596c61c.tar.gz tcl-ec77c1859e96fe85a459a88e64c59b03f596c61c.tar.bz2 | |
Take cygwin handling of X11 into account
Implement TclpIsAtty, Cygwin only
doc/dde.n: doc fix
Diffstat (limited to 'generic/tclStubInit.c')
| -rw-r--r-- | generic/tclStubInit.c | 10 |
1 files changed, 9 insertions, 1 deletions
diff --git a/generic/tclStubInit.c b/generic/tclStubInit.c index 0f0665b..1cbcf84 100644 --- a/generic/tclStubInit.c +++ b/generic/tclStubInit.c @@ -56,7 +56,9 @@ static int TclSockMinimumBuffersOld(int sock, int size) #ifdef __WIN32__ # define TclUnixWaitForFile 0 # define TclpReaddir 0 +# define TclpIsAtty 0 #elif defined(__CYGWIN__) +# define TclpIsAtty TclPlatIsAtty # define TclWinSetInterfaces (void (*) (int)) doNothing # define TclWinAddProcess (void (*) (void *, unsigned int)) doNothing # define TclWinFlushDirtyChannels doNothing @@ -64,6 +66,12 @@ static int TclSockMinimumBuffersOld(int sock, int size) static Tcl_Encoding winTCharEncoding; +static int +TclpIsAtty(int fd) +{ + return isatty(fd); +} + int TclWinGetPlatformId() { @@ -489,7 +497,7 @@ static const TclIntPlatStubs tclIntPlatStubs = { TclpCreateCommandChannel, /* 13 */ TclpCreatePipe, /* 14 */ TclpCreateProcess, /* 15 */ - 0, /* 16 */ + TclpIsAtty, /* 16 */ 0, /* 17 */ TclpMakeFile, /* 18 */ TclpOpenFile, /* 19 */ |
