Files
harbour-core/harbour/tests/cursrtst.prg
Viktor Szakats 9f0c672127 2012-07-19 11:28 UTC+0200 Viktor Szakats (harbour syenar.net)
* tests/cursrtst.prg
  * tests/db_brows.prg
  * tests/debugtst.prg
  * tests/dirtest.prg
  * tests/foreach.prg
  * tests/funcarr.prg
  * tests/memvar.prg
  * tests/objarr.prg
  * tests/onidle.prg
  * tests/speedstr.prg
  * tests/speedtst.prg
  * tests/switch.prg
  * tests/testdbf.prg
  * tests/testdecl.prg
  * tests/testget.prg
    * formatting
2012-07-19 09:29:56 +00:00

32 lines
667 B
Plaintext

/*
* $Id$
*/
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