lkml.org 
[lkml]   [1998]   [Jul]   [20]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
Patch in this message
/
Date
From
SubjectRe: VGA console palette & virtual console switching
On Fri, 17 Jul 1998, Martin Mares wrote:

> For both 2.0.X and 2.1.X, PIO_CMAP sets the palette for _all_ consoles
>as opposed to ESC ]P which sets palette locally for the console it was
>written to.

Oops. Sorry my ignorance. ESC ]P works fine, I tried it.

However, is it possible to read the current console palette that has been
set with ESC ]P? GIO_CMAP seems to return the palette that is set with
PIO_CMAP, _not_ the palette set with ESC ]P.
(Just pointers to some documentation, if that exists, about all this would
be fine)

I'd like to my program to restore the original palette that was there
while it was started. ESC ]R seems to reset that to default, but the
user might have been changed it for the shell before starting my program.

By the way, shouldn't reset(1) reset the palette to default too?
In 2.0.34 it doesn't. There's patch which fixes that (against 2.0.35):

--- drivers/char/console.c.orig Sat Jun 13 17:24:21 1998
+++ drivers/char/console.c Sun Jul 19 16:18:43 1998
@@ -1327,6 +1327,7 @@
bell_pitch = DEFAULT_BELL_PITCH;
bell_duration = DEFAULT_BELL_DURATION;

+ reset_palette(currcons);
gotoxy(currcons,0,0);
save_cur(currcons);
if (do_clear)
--
| Tuukka Toivonen <tuukkat@ee.oulu.fi> [PGP public key
| Homepage: http://www.ee.oulu.fi/~tuukkat/ available]
| Try also finger -l tuukkat@ee.oulu.fi
| Studying information engineering at the University of Oulu
+-----------------------------------------------------------


-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.rutgers.edu
Please read the FAQ at http://www.altern.org/andrebalsa/doc/lkml-faq.html

\
 
 \ /
  Last update: 2005-03-22 13:43    [W:0.065 / U:0.096 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site