From: RLMuller@... (Richard) Date: 2003-06-11T06:27:39+09:00 Subject: Re: Using 'gets' with SciTe under Win2000 Hi Daz, > I get the same on 1.41 (Win98se) with your script. Thanks for confirming that I wasn't doing something really stupid. > > The STDIN Ruby sees is an IO object but with STDIN.fileno == -1 > (should be 0). Thanks for diagnosis. I didn't think the solution would be as simple as an incorrect file hand for the stdin stream. > There's a SciTE 1.52 'one-click' installer for Windows. > (Includes a shell extension which adds 'Edit with SciTE' to the > right-click context menu for all files.) > > http://gisdeveloper.tripod.com/scite.html Thanks for the URL. I installed 1.52 and under Win2000SP3 and saw the new entry in the context menu. That's more convient than selecting "Open with ..." and then selecting SciTE, as was the case with the version I was using previously. However, 1.52 works worse than my old version did with respect to gets. Output from the first print stmt is not displayed and the gets statement results in a new Command window that ignores all keystrokes, including Alt-F4 and Ctrl-C. And when the Command window is closed, the script terminates with: Exit code: -1073741510 > Free of charge. That's really neat. This particular Newsgroup is great. Without it, I'd have stayed with Perl rather than tackle a new language, i.e. Ruby. > In this version, your script runs as you would expect. That's what I had hoped, but that was not the case as you saw above. I also tried it on SciTE ver. 1.52-wdb1, which produced no perceptible difference from 1.52. Again, thanks for the help. Regards, Richard