Path: utzoo!utgpu!news-server.csri.toronto.edu!rpi!usc!wuarchive!uunet!uunet!math.fu-berlin.de!opal!gmdtub!prosun!tmh From: tmh@prosun.first.gmd.de (Thomas Hoberg) Newsgroups: comp.unix.sysv386 Subject: Re: restore console display and vt status (was: Re: xfig with X386) Message-ID: <680@bigfoot.first.gmd.de> Date: 23 May 91 14:47:14 GMT References: <1991Apr14.140430.23712@metro.ucc.su.OZ.AU> <1991May9.142835.3424@cti-software.nl> Sender: news@bigfoot.first.gmd.de Reply-To: tmh@prosun.first.gmd.de (Thomas Hoberg) Organization: GMD-FIRST, D-1000 Berlin 10 Lines: 38 In article <1991May9.142835.3424@cti-software.nl>, pim@cti-software.nl (Pim Zandbergen) writes: |> In article <1991Apr14.140430.23712@metro.ucc.su.OZ.AU> dawes@suphys.physics.su.OZ.AU (David Dawes) writes: |> |> It is rather annoying when ones display is stuck in graphics |> mode and/or vt's are left in an insane state. This can also |> happen if VP/ix dies. |> |> If a curses application dies, you can get back to a sane state |> by typing 'stty sane' or 'stty $oldsttysettings' if you've saved |> them. |> |> Has anyone written a program that does a similar thing to your |> console display and vt's ? I hate typing 'init 6' blindly. I once wrote a tiny little program, that used the ioctls defined in /usr/include/sys/kd.h to switch video modes on my VGA. ISC's 'loadfont -m ' will do the same. The VGA contains a *lot* of registers though, and I have had situations, where not even the ioctls would get me a standing picture any more. Microport's System V/286 used to have a hot key sequence in it's DOS Merge kernel wich would cycle through all available video modes (it was needed, too). Sorry I don't have the program here... |> -- |> Pim Zandbergen domain : pim@cti-software.nl |> CTI Software BV uucp : uunet!mcsun!hp4nl!ctisbv!pim |> Laan Copes van Cattenburch 70 phone : +31 70 3542302 |> 2585 GD The Hague, The Netherlands fax : +31 70 3512837 -- tom ---- Thomas M. Hoberg | UUCP: tmh@gmdtub.first.gmd.de or tmh%gmdtub@tub.UUCP c/o GMD Berlin | ...!unido!tub!gmdtub!tmh (Europe) or D-1000 Berlin 12 | ...!unido!tub!tmh Hardenbergplatz 2 | ...!pyramid!tub!tmh (World) Germany | BITNET: tmh%DB0TUI6.BITNET@DB0TUI11 or +49-30-254 99 160 | tmh@tub.BITNET