]> git.hungrycats.org Git - linux/commitdiff
[PATCH] console: support for > 127 chars
authorAndrew Morton <akpm@osdl.org>
Wed, 4 Feb 2004 02:43:09 +0000 (18:43 -0800)
committerLinus Torvalds <torvalds@home.osdl.org>
Wed, 4 Feb 2004 02:43:09 +0000 (18:43 -0800)
From: Nigel Cunningham <ncunningham@users.sourceforge.net>

Change the console code to support up to 256 (maybe 255?) columns.

drivers/char/vt.c
include/linux/selection.h

index dff05a88fb6dad9392710067147707a72dae88f4..fd00ee26e893c18faec662c5d7ff11e5c3759152 100644 (file)
@@ -3062,13 +3062,13 @@ unsigned short *screen_pos(int currcons, int w_offset, int viewed)
        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);
index a949695af3c5c1097d4d9205ebe4f500308858b4..fd34cfa5f5ef5ca73d5a5b5d8a83efcee1964266 100644 (file)
@@ -36,8 +36,8 @@ extern u16 screen_glyph(int currcons, int offset);
 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);