* Perform an undo
*
* @throws IOException if redraw fails
*/
private void undo() throws IOException {
UndoAction ua = consoleBuffer.getUndoManager().getNext();
if(ua != null) {
consoleBuffer.setBufferLine(ua.getBuffer());
consoleBuffer.drawLine();
consoleBuffer.moveCursor(ua.getCursorPosition() - consoleBuffer.getBuffer().getCursor());
}
}