home *** CD-ROM | disk | FTP | other *** search
- /* this routine functions the same as HEXKEY.COM
- /* it displays the hex and decimal value of a keystroke
- {
- int i;
- msg("Press any key ... (Escape exits)");
- i=getkey();
- while((i%256)!=27){
- msg("Value is %04lx [%06ld] ... Press another key ... (Escape exits)",i,i)
- i=getkey();
- }
- }