Files
harbour-core/contrib/hbnf/tests/scancode.prg
vszakats 9687850865 2013-03-16 02:10 UTC+0100 Viktor Szakats (harbour syenar.net)
* (all files)
    * stripped svn header
    * minor cleanups
    ; use following command to find out the history of files:
       git log
       git log --follow
       git blame
       git annotate
2013-03-16 02:11:42 +01:00

22 lines
393 B
Plaintext

#require "hbnf"
#define SCANCODE_ESCAPE ( hb_BChar( 27 ) + hb_BChar( 1 ) )
PROCEDURE Main()
LOCAL cKey
CLS
? "Press any key, ESCape to exit:"
DO WHILE .T.
cKey := ft_ScanCode()
? Str( hb_BCode( hb_BSubStr( cKey, 1, 1 ) ), 3 ) + ", " + Str( hb_BCode( hb_BSubStr( cKey, 2, 1 ) ), 3 )
IF cKey == SCANCODE_ESCAPE
EXIT
ENDIF
ENDDO
RETURN