autofocus terminal window