diff options
author | abial <abial@FreeBSD.org> | 1998-12-31 13:44:04 +0000 |
---|---|---|
committer | abial <abial@FreeBSD.org> | 1998-12-31 13:44:04 +0000 |
commit | b3642b0f2368e9b0d01af390f15be9a08c5aaed9 (patch) | |
tree | 8278561a5fc33c5725252301977a99ad0fc44713 /sys/boot | |
parent | 954bb541a6d093072b586124c66c0d234dd0290d (diff) | |
download | FreeBSD-src-b3642b0f2368e9b0d01af390f15be9a08c5aaed9.zip FreeBSD-src-b3642b0f2368e9b0d01af390f15be9a08c5aaed9.tar.gz |
Add back ability to make beeps when using new TERM_EMU.
Submitted by: W Gerald Hicks <wghicks@bellsouth.net>
Diffstat (limited to 'sys/boot')
-rw-r--r-- | sys/boot/i386/libi386/vidconsole.c | 21 |
1 files changed, 15 insertions, 6 deletions
diff --git a/sys/boot/i386/libi386/vidconsole.c b/sys/boot/i386/libi386/vidconsole.c index 8061d08..6b95c1e 100644 --- a/sys/boot/i386/libi386/vidconsole.c +++ b/sys/boot/i386/libi386/vidconsole.c @@ -26,7 +26,7 @@ * * From Id: probe_keyboard.c,v 1.13 1997/06/09 05:10:55 bde Exp * - * $Id: vidconsole.c,v 1.8 1998/10/31 02:53:12 msmith Exp $ + * $Id: vidconsole.c,v 1.9 1998/12/22 11:51:25 abial Exp $ */ #include <stand.h> @@ -120,6 +120,16 @@ vidc_init(int arg) } static void +vidc_biosputchar(int c) +{ + v86.ctl = 0; + v86.addr = 0x10; + v86.eax = 0xe00 | c; + v86.ebx = 0x7; + v86int(); +} + +static void vidc_rawputchar(int c) { int i; @@ -130,14 +140,13 @@ vidc_rawputchar(int c) vidc_rawputchar(' '); else { #ifndef TERM_EMU - v86.ctl = 0; - v86.addr = 0x10; - v86.eax = 0xe00 | c; - v86.ebx = 0x7; - v86int(); + vidc_biosputchar(c); #else /* Emulate AH=0eh (teletype output) */ switch(c) { + case '\a': + vidc_biosputchar(c); + return; case '\r': curx=0; curs_move(curx,cury); |