basic repl history navigation, using up and down arrows in textarea