tag:blogger.com,1999:blog-284600789737488130.post6592104922488958059..comments2024-02-07T02:22:20.642-05:00Comments on Ruby on Windows: Running In A Console Window?David Mullethttp://www.blogger.com/profile/05597492688893461137noreply@blogger.comBlogger3125tag:blogger.com,1999:blog-284600789737488130.post-44579425259101417762008-06-03T19:30:00.000-05:002008-06-03T19:30:00.000-05:00Thanks, Brent and Dan!I've updated the post to sug...Thanks, Brent and Dan!<BR/><BR/>I've updated the post to suggest using the STDIN.isatty method, which works for me. I've also added a link to the Ruby Forum message thread that I referenced.<BR/><BR/>DavidDavid Mullethttps://www.blogger.com/profile/05597492688893461137noreply@blogger.comtag:blogger.com,1999:blog-284600789737488130.post-41953603996722243912008-06-02T23:08:00.000-05:002008-06-02T23:08:00.000-05:00I've no idea where Nobu was going with that. The i...I've no idea where Nobu was going with that. The isatty() function is supported in MSVCRT, so Brent's suggestion of STDIN.isatty should be preferred.<BR/><BR/>It's what I've always used.<BR/><BR/>--DanDaniel Bergerhttps://www.blogger.com/profile/05224445093970941579noreply@blogger.comtag:blogger.com,1999:blog-284600789737488130.post-13080727416622252592008-06-02T22:45:00.000-05:002008-06-02T22:45:00.000-05:00I usually just test...STDIN.isatty(if someone has ...I usually just test...<BR/><BR/>STDIN.isatty<BR/><BR/>(if someone has a reason that that won't work, I'd appreciate knowing)<BR/><BR/>Cheers.<BR/><BR/>--BrentAnonymousnoreply@blogger.com