home *** CD-ROM | disk | FTP | other *** search
/ The World of Computer Software / World_Of_Computer_Software-02-385-Vol-1of3.iso / t / tel2305s.zip / KEYMAP / TESTMAP.C < prev    next >
Text File  |  1990-08-06  |  380b  |  17 lines

  1. #include <stdio.h>
  2. #include <stdlib.h>
  3.  
  4. extern unsigned int n_newgetchar(void );
  5. extern void install_keyboard(void );
  6. extern unsigned char keyboard_type;
  7. main()
  8. {
  9.     unsigned int c;
  10.  
  11.     install_keyboard();
  12.     printf("keyboard_type=%u\n",(unsigned int)keyboard_type);
  13.     while(1) {
  14.         c=n_newgetchar();
  15.         printf("c=%u, %X\n",c,c);
  16.       }    /* end while */
  17. }    /* end testmap() */