[go: up one dir, main page]

File: readkey.c

package info (click to toggle)
sbm 3.7.1-9.1
  • links: PTS
  • area: main
  • in suites: squeeze
  • size: 1,120 kB
  • ctags: 1,591
  • sloc: asm: 11,940; ansic: 2,871; makefile: 503
file content (15 lines) | stat: -rw-r--r-- 182 bytes parent folder | download | duplicates (4)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
#include<bios.h>
#include<stdio.h>

int main()
{
 int key;
 for(;;)
 {
  key = bioskey(0);
  printf("Key = 0x%x\n",key);
  if( key == 0x011b ) break;
 }
 return 0;
}