From f70ceb5a2fe6380ce61e23111458e843448d60b9 Mon Sep 17 00:00:00 2001 From: Andrew Morton Date: Tue, 3 Feb 2004 18:43:09 -0800 Subject: [PATCH] [PATCH] console: support for > 127 chars From: Nigel Cunningham Change the console code to support up to 256 (maybe 255?) columns. --- drivers/char/vt.c | 4 ++-- include/linux/selection.h | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/drivers/char/vt.c b/drivers/char/vt.c index dff05a88fb6da..fd00ee26e893c 100644 --- a/drivers/char/vt.c +++ b/drivers/char/vt.c @@ -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); diff --git a/include/linux/selection.h b/include/linux/selection.h index a949695af3c5c..fd34cfa5f5ef5 100644 --- a/include/linux/selection.h +++ b/include/linux/selection.h @@ -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); -- 2.53.0