Skip to content

Commit

Permalink
read in characters better
Browse files Browse the repository at this point in the history
  • Loading branch information
Tom Bell committed Sep 9, 2011
1 parent a1f503f commit 646b43a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/trollscript.rb
Expand Up @@ -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

Expand Down

0 comments on commit 646b43a

Please sign in to comment.