6 7 8 9 10
# File 'lib/rmtools/fs/io.rb', line 6 def gets2 str = '' str << (c = read 1) until c and "\r\n\b".include? c or eof? str end