Initializes and/or configures a video mode; multiple platform-dependant options. May also be used as function which returns the character or color at given coordinates
Implemented by: colorext, GWBASIC, MSX, ABasiC, msamiga, VBDOS, FreeBASIC
With variations: TI994 (through CALL; only sets color), QBasic (also as a function), ugBASIC (also with subcommands COLUMNS, HEIGHT, HORIZONTAL SCROLL, OFF, ON, ROWS, SWAP, TILES HEIGHT, TILES WIDTH, VERTICAL SCROLL, WIDTH)
Also written as:
SCREEN is found in some Microsoft-based BASICs from the 8-bit era onwards as a statement to initialize various text or graphic modes. Apart from that brief common definition, there is little in common among its implementations due to hardware capabilities.
Let's start with a syntax comparison. Optional parameters between [ and ]:
SCREEN mode, colorset in Extended Color BASICSCREEN mode [,colordepth] [,startline] in Amiga ABasiCSCREEN id, cols, lins, colorbits, mode in msamigaSCREEN mode [,bolColor] [,activepage] [,visiblepage] in the MS-QuickBASIC familySCREEN mode [,spritesize] [,bolKeyclick] [,casspeed] [,prntype] in MSX BASIC SCREEN mode, colorset
SCREEN mode [,spritesize] [,bolKeyclick] [,casspeed] [,prntype]''
The MS-QuickBASIC family allows the usage of SCREEN as a function that returns the character code or the color currently found at given line and column of a text-mode screen. The optional third parameter, if 0 (default), means the character ASCII code will be returned; any other value causes the foreground color code to be returned.