From: 7stud -- Date: 2007-10-04T08:09:01+09:00 Subject: Re: Non-blocking 'gets' ? Simon Krahnke wrote: > >> One thing I found puzzling is having to call STOUT.flush. When I don't >> include that statement, then the print statement is skipped. Yet, if I >> use puts instead of print, then the flush call isn't necessary. Anyone >> know why? > > stdout is auto-flushed on newlines. puts includes a newline, print > doesn't. > Then how come this program: print "Enter command: " input = gets displays "Enter command: " to my terminal? -- Posted via http://www.ruby-forum.com/.