Skip to contentSkip to conversation

PATCH: Revised console patch (support for > 127 chars)

PATCH Nigel Cunningham 1 participant 1 message Jan 22, 2004

Subsystems (2)
lore
Share & tools
lore
#0 lore raw

Hi.

Here's a revised version of the console patch posted last week.

Regards,

Nigel

drivers/char/vt.c +2 -2
diff -ruN linux-2.6.1/drivers/char/vt.c software-suspend-linux-2.6.1-rev3/drivers/char/vt.c
@@ -2996,13 +2996,13 @@
 	return screenpos(currcons, 2 * w_offset, viewed);
 }
 
-void getconsxy(int currcons, char *p)
+void getconsxy(int currcons, unsigned char *p)
 {
 	p[0] = x;
 	p[1] = y;
 }
 
-void putconsxy(int currcons, char *p)
+void putconsxy(int currcons, unsigned char *p)
 {
 	gotoxy(currcons, p[0], p[1]);
 	set_cursor(currcons);
include/linux/selection.h +2 -2
diff -ruN linux-2.6.1/include/linux/selection.h software-suspend-linux-2.6.1-rev3/include/linux/selection.h
@@ -36,8 +36,8 @@
 extern void complement_pos(int currcons, int offset);
 extern void invert_screen(int currcons, int offset, int count, int shift);
 
-extern void getconsxy(int currcons, char *p);
-extern void putconsxy(int currcons, char *p);
+extern void getconsxy(int currcons, unsigned char *p);
+extern void putconsxy(int currcons, unsigned char *p);
 
 extern u16 vcs_scr_readw(int currcons, const u16 *org);
 extern void vcs_scr_writew(int currcons, u16 val, u16 *org);
Signature · 2 lines
My work on Software Suspend is graciously brought to you by
LinuxFund.org.