restoretextmode -r /tmp/textregs restorefont -r /tmp/fontdata restorepalette