Overview
| Artifact ID: | 5a9ae55efc9f0a713649401733ab634730442b74 |
|---|---|
| Ticket: | a0db647efa38b81784feba65ff6f3dfd7fa23eb1
tcl_interactive wrong on windows when using mintty (MSYS2, win7x64) |
| User & Date: | anonymous on 2017-05-03 22:16:24 |
Changes
- icomment:
After reviewing my notes and thinking about this, I don't know why I submitted it. It is not possible to determine if the terminal app is mintty (or the equivalent for Cyginw/MinGW) because they use a specific named pipe for emulating input/output. Without knowing the specific name, all that can be determined is that stdin/stdout is not a console. I'm not sure if the info at http://archives.miloush.net/michkap/archive/2008/03/18/8306597.html is of interest for tclsh/wish. The referenced code first determines if the stdout handle is a character device before it calls GetConsoleMode(). After doing some testing for last couple of hours, it appears to me that _isatty(_fileno(stdout)) is sufficient. Sorry I wasted your time.
- login: "anonymous"
- mimetype: "text/plain"