Because of ncurse’s visual mode you will not be able to use pry normally. The easiest way to get pry working is to do the following:
close_screen
binding.pry
refresh
close_screen
restores the non-visual mode which allows you to see the
output of pry correctly. When you exit
from pry, refresh
will resume
ncurse’s visual mode.