From 646b43aaa036a484d722bfe63f7a2f57aa9b95fd Mon Sep 17 00:00:00 2001 From: Tom Bell Date: Fri, 9 Sep 2011 01:21:47 +0100 Subject: [PATCH] read in characters better --- lib/trollscript.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/trollscript.rb b/lib/trollscript.rb index f1636e5..8df351d 100644 --- a/lib/trollscript.rb +++ b/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