1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25
|
/****************************************************************************
*
* Copyright (c) 2022 Vladi Belperchinov-Shabanski "Cade"
* http://cade.noxrun.com/ <cade@noxrun.com> <cade@bis.bg> <cade@cpan.org>
*
* SEE `README',`LICENSE' OR `COPYING' FILE FOR LICENSE AND OTHER DETAILS!
*
****************************************************************************/
#include <locale.h>
#include "unicon.h"
int main( int argc, char** argv )
{
setlocale( LC_ALL, "" );
con_init();
printf( "press CTRL+C to exit\n" );
while(4)
{
int ch = con_getch();
if( ch == UKEY_CTRL_C )break;
printf( "%d %x\r\n", ch, ch );
}
con_done();
}
|