Files
harbour-core/tests/cursor.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

29 lines
652 B
Plaintext

PROCEDURE Main()
LOCAL x
? "This lists the cursor modes, along with the expected shape"
? "Press a key after each example"
?
FOR x := 0 TO 4
CursTest( x )
NEXT
? "Note: In Windows Console mode, Special2 can not be emulated (it is 2/3 size)"
SetCursor( 1 )
RETURN
PROCEDURE CursTest( nCurs )
LOCAL aTypes := { "None", "Underline", "HalfBlock", "FullBlock", "Upper Half" }
LOCAL aNames := { "SC_NONE", "SC_NORMAL", "SC_INSERT", "SC_SPECIAL1", "SC_SPECIAL2" }
SetCursor( nCurs )
++nCurs
? PadR( aNames[ nCurs ], 11 ), PadR( aTypes[ nCurs ], 11 ), Str( SetCursor(), 3 )
Inkey( 0 )
RETURN