XLIM #ch (v2.08+)
This function returns the horizontal size of the screen in pixels. It can therefore be used to ascertain if the Extended Mode-4 is present, and if so, the size of the screen available to the program (ie. 512x256, 768x280 or larger!). The second variant makes this function the same as SCR_XLIM.
A program may wish to use the whole of the screen for its output, adapting itself accordingly:
100 MAX_WIDTH=XLIM 110 MAX_HEIGHT=YLIM 120 OPEN #1,'CON_' & MAX_WIDTH & 'x' & MAX_HEIGHT & 'a0x0'
The Pointer Interface must be present in order for XLIM to work.