FT_ADAPTER

FT_ADAPTER()
 Report the type of video adapter installed

 Syntax

     FT_ADAPTER() -> nResult

 Arguments

    None

 Returns

    Integer representing type of video adapter

       0 - monochrome
       1 - CGA
       2 - EGA
       3 - VGA

 Description

    This function is valuable if you use a graphics library and need to
    know what type of graphics adapter is installed.

    The source code is written to adhere to Turbo Assembler's IDEAL mode.
    To use another assembler, you will need to rearrange the PROC and
    SEGMENT directives, and also the ENDP and ENDS directives (a very
    minor task).

 Examples

    iVideo := FT_ADAPTER()

    DO CASE
       CASE iVideo == 0
          QOUT( "You have a monochrome adapter." )
       CASE iVideo == 1
          QOUT( "You have a CGA adapter." )
       CASE iVideo == 2
          QOUT( "You have an EGA adapter." )
       CASE iVideo == 3
          QOUT( "You have a VGA adapter." )
    ENDCASE

 Source: ADAPTER.ASM

 Author: Ted Means

See Also: FT_SETMODE()


			

Tools – Extended Drivers

Introduction Extended Drivers
CGA40()      Switches to 40-column mode (color or monochrome)
CGA80()      Switches to 80-column mode (color or monochrome)
DSETKBIOS()  Turns the extended keyboard mode on or off through BIOS
DSETNOLINE() Ignores the next line feed sent to the screen
DSETQFILE()  Creates a protocol file when the program ends normally
DSETTYPE()   Determines the size of the keyboard buffer (SET TYPEAHEAD TO)
DSETWINDEB() This function is no longer supported
DSETWINDOW() Reroutes external functions and programs to a window
EGA43()      Switches to the 43-line EGA mode
FIRSTCOL()   Sets the first visible column of a virtual screen
FIRSTROW()   Sets the first visible line of a virtual screen
GETBOXGROW() Gets the time delay with which boxes are opened
GETCURSOR()* Determines the setting for the cursor form
GETKXLAT()   Determines the current key code table
GETKXTAB()   Retrieves the entire key code table
GETLINES()   Determines number of lines after which screen display pauses
GETMODE()    Uses the current screen mode as a function name
GETPAGE()    Determines the current screen page
GETPBIOS()   Determines if printing is through DOS or the BIOS
GETPXLAT()   Retrieves the current printer table
GETSCRMODE() Determines the number of the active video mode
GETTAB()     Retrieves tab values for CA-Clipper screen output
INKEYTRAP()  Behaves like INKEY() with support for key traps
INPUTMODE()  Determines previously active or currently active input mode
KEYREAD()    Reads already processed CA-Clipper keyboard buffer input
KEYSEND()    Simulates Clipper keyboard buffer input
MAXCOL()     Extends the Clipper MAXCOL() function
MAXPAGE()    Determines the number of available screen pages
MAXROW()     Extends the Clipper MAXROW() function
MONOCHROME() Switches to the monochrome mode
PAGECOPY()   Copies one screen page to another
PRINTERROR() Returns the error code for the last printer output
SETBELL()    Sets the tone frequency and duration for CHR(7)
SETBOXGROW() Opens boxes with a time delay
SETCURSOR()  Sets the cursor form
SETKXLAT()   Redefines key codes or lock keys
SETKXTAB()   Installs key tables
SETLINES()   Determines number of lines after which screen display pauses
SETMAXCOL()  Sets the number of columns for a virtual screen
SETMAXROW()  Sets the number of lines for a virtual screen
SETPAGE()    Selects a new screen page
SETPBIOS()   Redirects print output to BIOS or DOS, and establishes timeout
SETPXLAT()   Establishes translation tables for printer output
SETQNAME()   Changes the file and path name for the QUIT file
SETSCRMODE() Establishes a new video mode
SETTAB()     Sets the tab widths for CA-Clipper screen outputs
TRAPANYKEY() Calls a procedure with any keyboard input
TRAPINPUT()  Allows supervision of CA-Clipper input commands
TRAPSHIFT()  Calls a procedure that depends on switching keys
VGA28()      Switches to 28-line VGA mode
VGA50()      Switches to 50-line VGA mode.