D 2017-05-03T22:16:24.705
J icomment After\sreviewing\smy\snotes\sand\sthinking\sabout\sthis,\sI\sdon't\sknow\swhy\sI\ssubmitted\sit.\r\n\r\nIt\sis\snot\spossible\sto\sdetermine\sif\sthe\sterminal\sapp\sis\smintty\s(or\sthe\sequivalent\sfor\sCyginw/MinGW)\sbecause\sthey\suse\sa\sspecific\snamed\spipe\sfor\semulating\sinput/output.\sWithout\sknowing\sthe\sspecific\sname,\sall\sthat\scan\sbe\sdetermined\sis\sthat\sstdin/stdout\sis\snot\sa\sconsole.\r\n\r\nI'm\snot\ssure\sif\sthe\sinfo\sat\shttp://archives.miloush.net/michkap/archive/2008/03/18/8306597.html\sis\sof\sinterest\sfor\stclsh/wish.\sThe\sreferenced\scode\sfirst\sdetermines\sif\sthe\sstdout\shandle\sis\sa\scharacter\sdevice\sbefore\sit\scalls\sGetConsoleMode().\sAfter\sdoing\ssome\stesting\sfor\slast\scouple\sof\shours,\sit\sappears\sto\sme\sthat\s_isatty(_fileno(stdout))\sis\ssufficient.\r\n\r\nSorry\sI\swasted\syour\stime.
J login anonymous
J mimetype text/plain
K a0db647efa38b81784feba65ff6f3dfd7fa23eb1
U anonymous
Z e1192723c3b08b34518e4f071be00c1b