svgalib-1/utils/runx
2011-02-24 00:22:00 -08:00

12 lines
424 B
Bash
Executable file

#!/bin/sh
# Script to save VGA textmode font, run X, and restore VGA textmode font.
# A more rigorous alternative is to run the 'savetextmode' script before
# running X, and 'textmode' after. This will restore the textmode registers
# and the VGA palette in addition to the VGA font.
echo Saving font in /tmp/fontdata
restorefont -w /tmp/fontdata
startx
echo Restoring font from /tmp/fontdata
restorefont -r /tmp/fontdata