diff options
Diffstat (limited to 'libc/bios/bios_vid.c')
-rw-r--r-- | libc/bios/bios_vid.c | 24 |
1 files changed, 24 insertions, 0 deletions
diff --git a/libc/bios/bios_vid.c b/libc/bios/bios_vid.c index 0d891a0..db2e91d 100644 --- a/libc/bios/bios_vid.c +++ b/libc/bios/bios_vid.c @@ -84,6 +84,9 @@ static int ctrl = 0; default: asm_putc(c); break; + case CTRL('I'): + asm_putc(' '); /* Only some BIOS's have this, so play safe */ + break; case CTRL('L'): asm_cpos(0,0); asm_cls(); @@ -424,6 +427,7 @@ int len; return 1; } ch &= 0x7F; + if( ch == '\033' ) ch=3; /* ESC= Interrupt too */ } if( ch == '\r' ) { @@ -460,6 +464,26 @@ bios_getc() /****************************************************************************/ +#ifdef L_bios_khit +bios_khit() +{ +#asm + mov ah,#1 + int $16 + jz nokey + cmp ax,#0 + jnz dort + mov ax,#3 +dort: + ret +nokey: + xor ax,ax +#endasm +} +#endif + +/****************************************************************************/ + #endif #endif #endif |