1restoretextmode(1)            Svgalib User Manual           restoretextmode(1)
2
3
4

NAME

6       restoretextmode - save or restore the SVGA registers for textmode.
7

SYNOPSIS

9       restoretextmode {-r|-w} filename
10
11

DESCRIPTION

13       The state of the SVGA is written to or restored from filename using the
14       vga_gettextmoderegs(3) and vga_settextmoderegs(3) functions.
15
16       As of this writing this file is 385 bytes long but  this  might  change
17       with future versions.
18
19       Please do not fiddle with the contents of the file except when you know
20       what you do. It might even result in hardware damage. Because of  that,
21       you  should  think twice to make this command available to all users on
22       your system.
23
24       The purpose of this program is usually to recover from a  crashed  con‐
25       sole  due  to  an  svgalib,  Xfree or other program bug. First save the
26       state of the SVGA card when on a text console. After the crash  restore
27       this  state. The savetextmode(1) and textmode(1) script makes this pro‐
28       cedure very easy.
29
30

OPTIONS

32       -w filename
33              write the SVGA state to the file filename.
34
35       -r filename
36              restore the SVGA state from the file filename.
37

SEE ALSO

39       svgalib(7),   vgagl(7),    libvga.config(5),    vga_gettextmoderegs(3),
40       vga_settextmoderegs(3), dumpreg(1), convfont(1), fix132x43(1), restore‐
41       font(1),  restorepalette(1),  runx(1),   savetextmode(1),   setmclk(1),
42       textmode(1).
43

AUTHOR

45       This  manual  page  was  edited by Michael Weller <eowmob@exp-math.uni-
46       essen.de>. The exact source of the referenced utility as well as of the
47       original documentation is unknown.
48
49       It is very likely that both are at least to some extent are due to Harm
50       Hanemaayer <H.Hanemaayer@inter.nl.net>.
51
52       Occasionally this might be wrong. I hereby asked to be excused  by  the
53       original author and will happily accept any additions or corrections to
54       this first version of the svgalib manual.
55
56
57
58Svgalib (>= 1.2.11)               2 Aug 1997                restoretextmode(1)
Impressum