Permalink
Browse files

Reset terminal before clearing screen.

  • Loading branch information...
1 parent 8c86b3a commit 9af5d4d092f62b4f33ab8e1ab71c37ecc11c237c @pda committed Jan 15, 2012
Showing with 1 addition and 0 deletions.
  1. +1 −0 asc.rb
View
1 asc.rb
@@ -47,6 +47,7 @@ def initialize width, height, world, background
@background = background
create_frame_buffer
%x{stty -icanon -echo}
+ print "\033[0m" # reset
print "\033[2J" # clear screen
print "\x1B[?25l" # disable cursor
end

0 comments on commit 9af5d4d

Please sign in to comment.