temporal hacky fixes for text cursor visibility and text console restoring on exit