Category : C Source Code
Archive   : KEYLIB11.ZIP
Filename : KEYTEST.C

 
Output of file : KEYTEST.C contained in archive : KEYLIB11.ZIP
#include "key.h"
#include


/****************************************************************************\

This is a simple test file that will allow you to see the handler
in action.

\****************************************************************************/


/****************************************************************************\

void main(void)

\****************************************************************************/
void main(void)
{

int key;

key_init(INIT);

printf("\nPress CTRL-ALT-SHIFT-ESC to quit\n\n");
printf(" Flag:Code [ASCII]\n");
printf("---------------------\n");

do {
key=key_check();
if (key) printf(" %d%d%d:%02d [%c]\n",
(char)(((key&CTRL)>>8)!=0),
(char)(((key&ALT)>>8)!=0),
(char)((key&SHIFT)>>8),
(char)key,KeyASCIITable[(char)key]);
}while (key!=SHIFT+CTRL+ALT+ESC);

key_init(RESTORE);


}



  3 Responses to “Category : C Source Code
Archive   : KEYLIB11.ZIP
Filename : KEYTEST.C

  1. Very nice! Thank you for this wonderful archive. I wonder why I found it only now. Long live the BBS file archives!

  2. This is so awesome! 😀 I’d be cool if you could download an entire archive of this at once, though.

  3. But one thing that puzzles me is the “mtswslnkmcjklsdlsbdmMICROSOFT” string. There is an article about it here. It is definitely worth a read: http://www.os2museum.com/wp/mtswslnk/