====== SCREEN ====== /* Remove the comments after creating content for each section.*/ 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 /* For the lines below, just create links, separated by commas, to other pages of the BASICs section, like [[:basics:basicTagName]]. "Implemented by" should mention BASICs which implement the keyword like described, in a more usual and standard way. "With variations" should point to BASICs where this keyword is used a bit differently. "Also written as" should list alternative spellings and abbreviations this keyword has. No need to refer to a BASIC, there is a section for that later. */ **Implemented by:** [[:basics:trscolor:colorext]], [[:basics:GWBASIC:]], [[:basics:MSX:]], [[:basics:ABasiC:]], [[:basics:msamiga:]], [[:basics:VBDOS:]], [[:basics:FreeBASIC:]] **With variations:** [[:basics:TI994:]] (through CALL; only sets color), [[:basics:msqb:QBasic]] (also as a function), [[:basics:ugBASIC:]] (also with subcommands COLUMNS, HEIGHT, HORIZONTAL SCROLL, OFF, ON, ROWS, SWAP, TILES HEIGHT, TILES WIDTH, VERTICAL SCROLL, WIDTH) **Also written as: ** ===== Usage ===== /* For inline examples of syntax, write the keyword between '' and '' (two single quotes) */ 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 [[:basics:trscolor:colorext|Extended Color BASIC]] * ''SCREEN mode [,colordepth] [,startline]'' in [[:basics:ABasiC|Amiga ABasiC]] * ''SCREEN id, cols, lins, colorbits, mode'' in [[:basics::msamiga]] * ''SCREEN mode [,bolColor] [,activepage] [,visiblepage]'' in the [[:basics:msqb|MS-QuickBASIC]] family * ''SCREEN mode [,spritesize] [,bolKeyclick] [,casspeed] [,prntype]'' in [[:basics:msx|MSX BASIC]] === Extended Color BASIC === SCREEN mode, colorset * //mode// - 0 for text, 1 for graphics * //colorset// * 0 - green, blue, yellow, red * 1 - cyan, magenta, orange, buff (light ocre) === MSX === SCREEN mode [,spritesize] [,bolKeyclick] [,casspeed] [,prntype]'' * //mode// * 0 - basic text mode, 40x24 (6-bit wide character box) * 1 - text mode, 32x24 (8-bit wide character box) * 2 - high-resolution graphics: 256x192, 16 colors * 3 - low-resolution graphics: 64x48, 16 colors * //spritesize// * 0 - 8x8 * 1 - 8x8 expanded * 2 - 16x16 * 3 - 16x16 expanded * //bolKeyClick// - 0 turns off click sound when key is pressed; 1 turns this sound on * //casspeed// - 1 for 1200 characters per second; 2 for 2400 characters per second * //prntype// - seems to depend on implementation, but 0 for an ASCII-based national standard, 1 for MSX's standard ==== Variations ==== The [[:basics:msqb|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 ===== /* Below is an example of a code block, using GeSHi syntax highlighting for //gwbasic//. Other styles of interest might be //basic4gl//, //blitzbasic//, //freebasic//, //gambas//, //locobasic//, //purebasic//, //qbasic//, //sdlbasic//, //thinbasic//, //vb//, //vbnet//, //xbasic// or //zxbasic//. 10 PRINT "HELLO" */ ===== Comments ===== /* Origin of the keyword, opinions, history... */ ===== Related keywords ===== /* Keywords that are often or always used along this one */ * [[WIDTH]] * [[PCLS]] ===== Similar keywords ===== /* Keywords with the same or similar functionality found in other versions of BASIC */ * [[GR]] * [[HGR]] * [[HGR2]] * [[MODE]] * [[TEXT]] * [[GRAPHICS]] * [[PMODE]] ===== In other languages... ===== /* For parallels and comparisons with other modern-day languages */ ===== References ===== /* If you used the ((citation)) syntax elsewhere in the text, they will appear under this section. But you can write some recommendations of books, magazines, etc */ * //Getting Started with Extended Color BASIC//. Tandy Corp., 1984 /* ===== TAGS ===== Please use the syntax below for adding tags to this page, separated by spaces (use quotes for tags with spaces). The most important tags to be used are, separated by groups: - Statements | Commands | SpecialVariables | Operators {{tag>tagName}} */ {{tag>Statements Functions Console Graphics}}