Work on #218: focus was not set to command line on open, fix redraw bug.