Syntax
REQUEST GTSDL3Arguments
None. REQUEST GTSDL3 includes the driver at link time.
Return value
No runtime value.
Description
GTSDL3 is the xDev terminal window driver built on SDL3. It provides a UTF-8 text screen in a resizable window for Windows, Linux X11 and Linux Wayland. Standard functions such as DispOutAt(), Inkey(), SetColor() and DispBox() use the driver.
The driver supports resizing, maximization, Alt+Enter full screen, DPI scaling, keyboard and mouse input, clipboard text, a blinking cursor, window title and icon, images, sound, message boxes and file dialogs. It includes a 9x18 bitmap font, so no font file is needed. Settings and queries use GtInfo( GTI_* ); see Functions GT for their reference pages. All GTSDL3 control and query functions are documented in the Functions GT category.
Build with make and install with make install. SDL3 is supplied by the system through pkg-config sdl3. macOS is not supported.
Notes
The request belongs in the source file containing Main(). The driver is selected by the linker; it is not opened by a runtime function.
Example
#include "gtinfo.ch"
REQUEST GTSDL3
PROCEDURE Main()
QOut( "GT: " + GtInfo( GTI_VERSION ) )
RETURNOutput
GT: SDL3