Table of Contents

SCREEN

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:

Usage

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 ]:

Extended Color BASIC

  SCREEN mode, colorset

MSX

SCREEN mode [,spritesize] [,bolKeyclick] [,casspeed] [,prntype]''

Variations

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.

Examples

Comments

Similar keywords

In other languages...

References