not registering escape sequences


I’ve been working on the Mastermind project in Ruby, and have it looking pretty good in my own terminal, but on the escape sequences I use don’t work. I mostly am using these to hide and write over various output:

puts "\e[3A" # up - moves 3 lines up
puts "\e[0J" # Clear screen from cursor to the end

Is there anything I can do to get this working on

Here is my code:


I realized that the cursor escape sequences actually do work in the console-only page, just not the sandbox. (Italics and bold don’t work properly on either.) I also found this feedback page on, which says Ruby does not use a real terminal, which explains some of the unexpected behavior.