Closing terminal-status returns to previous location of cursor