I knew everybody was waiting with baited breath for
vcstime (vcstime - Show time in upper right hand
corner of the console screen) to run again after that
success with the pc speaker!
This is the patch on top of Jean-Daniel's 2.4.29-rc2
patch:
diff -Naur linux-2.4.29/drivers/char/vc_screen.c
linux-2.4.29-vcstime/drivers/char/vc_screen.c
--- linux-2.4.29/drivers/char/vc_screen.c 2005-01-18
15:20:58.000000000 -0600
+++ linux-2.4.29-vcstime/drivers/char/vc_screen.c
2005-01-18 15:18:41.000000000 -0600
@@ -493,7 +493,7 @@
buf += orig_count;
pos += orig_count;
if (org0)
- update_region(currcons, (unsigned long)(org0),
org-org0);
+ update_region(vc, (unsigned long)(org0),
org-org0); /*HVW*/
}
*ppos = pos;
ret = written;
@@ -511,7 +511,9 @@
{
unsigned int currcons = (MINOR(inode->i_rdev) &
127);
struct vc_data *vc;
-
+ ++currcons; /*HVW*/
+/* if vc#0 has minor 128 then currcons ends up 0 */
+/* in that case vc is not set up and things blow */
if (currcons) {
vc = find_vc(currcons-1);
if (vc)
In Debian Sarge, because I have svgatextmode installed
I had to start vcstime separately after console-screen
and not with console-screen's config because it would
write to the screen in two places.
vcstime puts the tod in the right upper corner of all
the vc's.
The program mentioned here:
http://www.icewalkers.com/Linux/ManPages/vcsa-4.html
now also works as an example of screen attribute
changes.
Hugo
__________________________________
Do you Yahoo!?
Yahoo! Mail - You care about security. So do we.
http://promotions.yahoo.com/new_mail
|