home *** CD-ROM | disk | FTP | other *** search
/ Liren Large Software Subsidy 9 / 09.iso / l / l210 / 1.ddi / REFEXAMP.ARC / READCHAR.PRO < prev    next >
Encoding:
Text File  |  1988-06-21  |  303 b   |  9 lines

  1. %====================== readchar/1            ===============================
  2. GOAL    write("\nEnter a character: "),
  3.     readchar(CH1),
  4.     write("\nThe character was: ",CH1),
  5.     CH1=0,
  6.     write("\nIt was a function key"),
  7.     readchar(CH2),
  8.     writef("\nKey code1=%d:'%c', Key code2= %d:'%c'",CH1,CH1,CH2,CH2).
  9.