lkml.org 
[lkml]   [1999]   [May]   [16]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
Patch in this message
/
Date
From
SubjectPATCH: /dev/vcs devices cursor positioning problem (x,y) >= 128
Hi!

/dev/vcs* devices can't position the cursor to coordinates >= 128. The
patch should probably be applied to 2.0, 2.2 and 2.3 kernels. (Patch
tested on 2.2.9, but 2.0.35 in redhat 5.2 has the same problem).

--- cut-here
--- linux/drivers/char/console.c.old Thu May 13 18:21:11 1999
+++ linux/drivers/char/console.c Thu May 13 18:20:57 1999
@@ -2784,7 +2784,7 @@

void putconsxy(int currcons, char *p)
{
- gotoxy(currcons, p[0], p[1]);
+ gotoxy(currcons, (unsigned char)p[0], (unsigned char)p[1]);
set_cursor(currcons);
}

--- cut-here
Thanks to Martin Frydl for spotting the bug.

MArk
--
... GUI: WPS.
------------------------------------------------------------------------
Marko.Macek@gmx.net http://www.kiss.uni-lj.si/~k4fr0235/

-
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.tux.org/lkml/

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