diff options
Diffstat (limited to 'sys/arch/i386/stand/cga.c')
-rw-r--r-- | sys/arch/i386/stand/cga.c | 14 |
1 files changed, 12 insertions, 2 deletions
diff --git a/sys/arch/i386/stand/cga.c b/sys/arch/i386/stand/cga.c index 182dd5df9d1..d17cf8a9e79 100644 --- a/sys/arch/i386/stand/cga.c +++ b/sys/arch/i386/stand/cga.c @@ -1,4 +1,4 @@ -/* $OpenBSD: cga.c,v 1.3 1996/09/23 15:15:37 mickey Exp $ */ +/* $OpenBSD: cga.c,v 1.4 1996/09/23 15:23:32 mickey Exp $ */ /* $NetBSD: cga.c,v 1.3 1994/10/27 04:21:51 cgd Exp $ */ /*- @@ -40,6 +40,7 @@ */ #include <sys/param.h> +#include <stand.h> #include <dev/ic/mc6845.h> #define COL 80 @@ -48,7 +49,7 @@ #define MONO_BUF 0xB0000 #define CGA_BUF 0xB8000 -static u_char att = 0x7 ; +static u_char att = 0x7; u_char *Crtat = (u_char *)CGA_BUF; static unsigned int addr_6845 = CGA_BASE; @@ -145,3 +146,12 @@ sput(c) cursor((crtat-Crtat)/CHR); } + +void +putchar(c) + int c; +{ + if (c == '\n') + sput('\r'); + sput(c); +} |