From: Mason Kelsey Date: 2009-09-03T08:05:34+09:00 Subject: Re: Simple New Ruby Programmer Problem with $stdin.gets --001485f6da16c09b340472a04d25 Content-Type: text/plain; charset=ISO-8859-1 Sorry for the typo; I didn't mean "monitor". I'm a retired programmer, a Dilbert dinosaur, and certainly know that inputs don't come from monitors. The first computer I worked on had vacuum tubes and 1K of mainframe memory! Having been in the field for 36 years before my retirement in 2001, the term terminal used to be used in the distant past for a monitor/keyboard combo or a teletype machine, typically with acoustic phone couples for the connections to the mainframe. Clearly that is not how some use the term terminal any more. So the world changes, what else is new? I tried using the run/cmd that you suggested, and it does work. Thank you. But I assume most Ruby programmers don't work in the run/cmd environment, what I call the DOS Box. If so that is a serious step backwards by about 28 years. I actually had to use the "dir" and "cd" commands to get to the subdirectory where my rb files were. I haven't used them in so many years I have forgotten how many have passed. DOS commands, today! What a disappointment! How primitive! I did mean page 203, where the gets command is used, without the $stdin. Page 230 is about SQLite. This is not an SQL problem. It is curious that the gets command does not work from within SciTE. But, finally, you say there is a SciTE forum!? Great! I just did a Google search to find it myself. It is at http://www.nabble.com/SciTE-f14248.html for anyone who is interested. I will be taking my question there. Thanks for your reply, No Sam On Wed, Sep 2, 2009 at 5:15 PM, 7stud -- wrote: > Mason Kelsey wrote: > > Do I have to execute this from outside of SciTE? > > I don't know anything about Scite, but you should learn to use "the > command" line before using a text editor to run programs. > > > Then where? > > I > > am running Windows XP. Unfortunately, "Beginning Ruby" does a lite job > > on > > input from monitors. > > > > Computer programs don't get input from terminals; programs get input > from *keyboards* (or files). Output is what goes to *monitors* (or > files). Review p. 6-7 on using a command window to run programs from > "the command line". > > > > > The way gets is described, on page 203 of the > > book, > > just does not work. > > > > I think you mean page 230 for anyone reading along. > > > > Anyway, what is the point for SciTE to display the thing that looks like > > a > > DOS Box if it is always locked up? > > > > I don't know. That might be a question better asked in the Scite user's > forum, however you might get lucky here. > > > > > > > I bet that the problem is something stupid I am not noticing. Enjoy > > revealing my ignorance! And thanks. > > > > No Sam > > > -- > Posted via http://www.ruby-forum.com/. > > --001485f6da16c09b340472a04d25--