[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: console status
From: |
Niels Möller |
Subject: |
Re: console status |
Date: |
09 Sep 2002 11:35:39 +0200 |
User-agent: |
Gnus/5.09 (Gnus v5.9.0) Emacs/21.2 |
Marcus Brinkmann <Marcus.Brinkmann@ruhr-uni-bochum.de> writes:
> If you terminate it, the original font, colors and screen content will NOT
> be restored. Your VGA card is now pretty much messed up, congratulations ;)
> The code to restore everything is mostly there, it's just that the input
> driver doesn't invoke it before exiting. This will need a better framework.
The simplest framework, I guess, is to have each plugin have an init
and an exit hook. The vga plugin's exit hook should clean up the
hardware it has messed with. Exithooks are then called whenever a
plugin is unloaded, and exiting the console should first unload all
plugins.
One could do that manually in the plugin load/unload code, but perhaps
it's also possible to let the dlopen/ld.so handle it?
Happy hacking,
/Niels
- console status, Marcus Brinkmann, 2002/09/05
- Re: console status,
Niels Möller <=