Syntax
GtInfo( GTI_ISUNICODE ) --> lUnicodeArguments
GTI_ISUNICODE
The selector, from gtinfo.ch.
Return value
.T. for all xDev graphics drivers.
Description
The screen and the keyboard use Unicode characters, and the program exchanges them as UTF-8.
Notes
Supported by GTWVT, GTSDL3, GTXWC and GTGLFW. On other terminals the result is NIL.
Header
gtinfo.ch
Example
#include "gtinfo.ch"
#if OS_LINUX
REQUEST GTXWC
#else
REQUEST GTWVT
#endif
PROCEDURE Main()
LOCAL lUnicode := GtInfo( GTI_ISUNICODE ) == .T.
IF lUnicode
DispOutAt( 1, 2, "UTF-8 sample: Zażółć gęślą jaźń" )
ELSE
DispOutAt( 1, 2, "ASCII sample: terminal output" )
ENDIF
Inkey( 3 )
RETURNOutput