patch-1.3.3 linux/drivers/char/tty_io.c
Next file: linux/drivers/char/vt.c
Previous file: linux/drivers/char/console.c
Back to the patch index
Back to the overall index
- Lines: 29
- Date:
Sun Jun 18 18:11:37 1995
- Orig file:
v1.3.2/linux/drivers/char/tty_io.c
- Orig date:
Tue Jun 6 11:22:06 1995
diff -u --recursive --new-file v1.3.2/linux/drivers/char/tty_io.c linux/drivers/char/tty_io.c
@@ -102,6 +102,9 @@
unsigned int cmd, unsigned long arg);
static int tty_fasync(struct inode * inode, struct file * filp, int on);
+extern void reset_palette(int currcons) ;
+extern void set_palette(void) ;
+
#ifndef MIN
#define MIN(a,b) ((a) < (b) ? (a) : (b))
#endif
@@ -497,6 +500,7 @@
vt_cons[new_console]->vt_mode.frsig = 0;
vt_cons[new_console]->vt_pid = -1;
vt_cons[new_console]->vt_newvt = -1;
+ reset_palette (new_console) ;
}
/*
@@ -561,6 +565,10 @@
do_blank_screen(1);
}
+ /* Set the colour palette for this VT */
+ if (vt_cons[new_console]->vc_mode == KD_TEXT)
+ set_palette() ;
+
/*
* Wake anyone waiting for their VT to activate
*/
FUNET's LINUX-ADM group, linux-adm@nic.funet.fi
TCL-scripts by Sam Shen, slshen@lbl.gov
with Sam's (original) version of this