home *** CD-ROM | disk | FTP | other *** search
/ The World of Computer Software / World_Of_Computer_Software-02-387-Vol-3of3.iso / n / netbioc.zip / TEST.C < prev    next >
C/C++ Source or Header  |  1992-03-01  |  229b  |  20 lines

  1. #include <stdio.h>
  2. #include <conio.h>
  3.  
  4. int main ()
  5. {
  6.  
  7.  int ch;
  8.  
  9.  do {
  10.  ch = getch();
  11.  putch(ch); putch ('\r'); putch ('\n');
  12.  printf("%x\n", ch);
  13.  
  14.  if (ch==0x1b)
  15.     printf("Foo\n");
  16.  
  17.  } while (ch != 0x1a);
  18.  
  19. }
  20.