Fixed some console bugs with escape characters being printed when arrow keys were pressed.
Added init code for pretty-mode