fix fullscreen bug in terminal