fix check for terminal for screen startup