Add back ability to make beeps when using new TERM_EMU.
Submitted by: W Gerald Hicks <wghicks@bellsouth.net>
This commit is contained in:
parent
954bb541a6
commit
b3642b0f23
@ -26,7 +26,7 @@
|
|||||||
*
|
*
|
||||||
* From Id: probe_keyboard.c,v 1.13 1997/06/09 05:10:55 bde Exp
|
* 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>
|
#include <stand.h>
|
||||||
@ -119,6 +119,16 @@ vidc_init(int arg)
|
|||||||
return(0); /* XXX reinit? */
|
return(0); /* XXX reinit? */
|
||||||
}
|
}
|
||||||
|
|
||||||
|
static void
|
||||||
|
vidc_biosputchar(int c)
|
||||||
|
{
|
||||||
|
v86.ctl = 0;
|
||||||
|
v86.addr = 0x10;
|
||||||
|
v86.eax = 0xe00 | c;
|
||||||
|
v86.ebx = 0x7;
|
||||||
|
v86int();
|
||||||
|
}
|
||||||
|
|
||||||
static void
|
static void
|
||||||
vidc_rawputchar(int c)
|
vidc_rawputchar(int c)
|
||||||
{
|
{
|
||||||
@ -130,14 +140,13 @@ vidc_rawputchar(int c)
|
|||||||
vidc_rawputchar(' ');
|
vidc_rawputchar(' ');
|
||||||
else {
|
else {
|
||||||
#ifndef TERM_EMU
|
#ifndef TERM_EMU
|
||||||
v86.ctl = 0;
|
vidc_biosputchar(c);
|
||||||
v86.addr = 0x10;
|
|
||||||
v86.eax = 0xe00 | c;
|
|
||||||
v86.ebx = 0x7;
|
|
||||||
v86int();
|
|
||||||
#else
|
#else
|
||||||
/* Emulate AH=0eh (teletype output) */
|
/* Emulate AH=0eh (teletype output) */
|
||||||
switch(c) {
|
switch(c) {
|
||||||
|
case '\a':
|
||||||
|
vidc_biosputchar(c);
|
||||||
|
return;
|
||||||
case '\r':
|
case '\r':
|
||||||
curx=0;
|
curx=0;
|
||||||
curs_move(curx,cury);
|
curs_move(curx,cury);
|
||||||
|
Loading…
Reference in New Issue
Block a user