Category : Files from Magazines
Archive   : CUJ9208.ZIP
Filename : ADAMO.LIS

 
Output of file : ADAMO.LIS contained in archive : CUJ9208.ZIP


/*-----------------------------------------------------*
* curses_tst.c - C. Adamo 3/3/92
* Demonstrate single-character input mode using curses
*-----------------------------------------------------*/
#include
#include
#include

#define QUIT_CHAR 'q'

void main(int argc, char *argv[])
{
int key = '\0';

initscr(); /* initialize screen */
cbreak(); /* enable single char mode */
noecho(); /* disable echo mode */

while (key != QUIT_CHAR)
{
key = getch();
if (isalpha(key))
{
printf("%c\n",
islower(key) ? toupper(key)
: tolower(key));
}
}
endwin(); /* end window modes */

} /* end main() */



  3 Responses to “Category : Files from Magazines
Archive   : CUJ9208.ZIP
Filename : ADAMO.LIS

  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/