Added input history

With the up and down arrows you can browse the commands submitted from
the textinput, not the ones from the runBatch method.