Browse files

read in characters better

  • Loading branch information...
1 parent a1f503f commit 646b43aaa036a484d722bfe63f7a2f57aa9b95fd Tom Bell committed Sep 9, 2011
Showing with 1 addition and 1 deletion.
  1. +1 −1 lib/trollscript.rb
View
2 lib/trollscript.rb
@@ -32,7 +32,7 @@ def run_op op
end
def get_input
- @tape[@tp] = STDIN.getc
+ @tape[@tp] = STDIN.gets.getbyte(0)
@tape[@tp] = 0 unless @tape[@tp]
end

0 comments on commit 646b43a

Please sign in to comment.