7526 DCT Reference


Reference&mdash.LCD Displays

reference&mdash.LCD displays

VioClear

This function clears the video display and sets the cursor position to the upper-left corner of the display.

C Format

     #include   "cfrapi26.h"          // For defined values
 
     USHORT     VioClear()
 
     Returns:   E_OK                  // If no error occurred

Masm Format

      Input:    ah = 0
 
      Call:     INT 44h
 
      Returns:  ax = 0      If no error occurred (only value returned)

Example

int far main (int funct,char far *params)

VioGetCurPos

This function returns the current row and column position of the cursor.

C Format

     #include   "cfrapi26.h"          // For defined values
 
     USHORT     VioGetCurPos(row, col)
 
     UCHAR      *row                  // Pointer to returned row
     UCHAR      *col                  // Pointer to returned column
 
     Returns:   E_OK                  // If no error occurred
                                      //  (only value returned)

Masm Format

      Input:    ah = 1
 
      Call:     INT 44h
 
      Returns:  dh = row
                dl = col
                ax = 0      If no error occurred (only value returned)

Comments:


Example

int far main (int funct,char far *params)

VioQuery

This function returns the number of rows and columns and the current display configuration, cursor type, video mode, and character set.

C Format

     #include   "cfrapi26.h"          // For defined values
 
     USHORT     VioQuery(row, col, curtype, mode, charset)
 
     UCHAR      *row                  // Pointer to number of rows
     UCHAR      *col                  // Pointer to number of columns
     UCHAR      *curtype              // Pointer to cursor type
     UCHAR      *mode                 // Pointer to video mode
     UCHAR      *charset              // Pointer to character set
 
     Returns:   E_OK                  // If no error occurred
                                      //  (only value returned)

Masm Format

      Input:    ah = 2
 
      Call:     INT 44h
 
      Returns:  dh = row
                dl = col
                ch = curtype
                bl = mode
                bh = charset = 0
                ax = 0      If no error occurred (only value returned)

Comments:


Example

int far main (int funct,char far *params)

VioReadCharStr

This function reads a character string from the display at a specified row and column position.

C Format

     #include   "cfrapi26.h"          // For defined values
 
     USHORT     VioReadCharStr(strpntr, length, row, col,
                                               xfrcnt, curmove)
 
     UCHAR      *strpntr             // Pointer to string data area
     USHORT     length               // Length of character string
     UCHAR      row                  // Row position of string
     UCHAR      col                  // Column position of string
     USHORT     *xfrcnt              // Pointer to count of characters read
     UCHAR      curmove              // Cursor movement flag
 
     Returns:   E_OK                 // If no error occurred
                E_PARAM              // If parameter values are incorrect
                E_END_OF_SCREEN      // If attempt to move past
                                     //  end of screen.

Masm Format

      Input:    ah    =  3
                es:bx = strpntr
                cx    = length
                dh    = row
                dl    = col
                al    = curmove
 
      Call:     INT 44h
 
      Returns:  cx = xfrcnt Actual number of characters read
                ax = 0      If no error occurred
                     1      If parameter values are incorrect
                     2      If attempt to move past end of screen

Comments:


Example

int far main (int funct,char far *params)

VioSetCurPos

This function sets the current cursor position at the specified row and column positions.

C Format

     #include   "cfrapi26.h"          // For defined values
 
     USHORT     VioSetCurPos(row, col)
 
     UCHAR      row                   // Row position
     UCHAR      col                   // Column position
 
     Returns:   E_OK                  // If no error occurred
                E_PARAM               // If parameter values are incorrect

Masm Format

      Input:    ah = 4
                dh = row
                dl = col
 
      Call:     INT 44h
 
      Returns:  ax = 0      If no error occurred
                     1      Parameter values are incorrect

Comments:


Example

int far main (int funct,char far *params)

VioSetCurType

This function sets the cursor type. This function requires V2.00 microcode or later.

C Format

     #include   "cfrapi26.h"              // For defined values
 
     USHORT     VioSetCurType(type)
 
     UCHAR      type                      // Cursor type
 
     Returns:   E_OK                      // If no error occurred
                E_PARAM                   // If parameter values are incorrect

Masm Format

      Input:    ah = 6
                al = type
 
      Call:     INT 44h
 
      Returns:  ax = 0      If no error occurred
                     1      Parameter values are incorrect

Comments:


Example

int far main (int funct,char far *params)

VioWrtCharStr

This function writes a character-only string to the display at a specified cursor position.

C Format

     #include   "cfrapi26.h"       // For defined values
 
     USHORT     VioWrtCharStr(strpntr, length, row, col,
                                                 xfrcnt, curmove)
 
     UCHAR      *strpntr           // Pointer to character string
     USHORT     length             // Length of string to write
     UCHAR      row                // Row position of string
     UCHAR      col                // Column position of string
     USHORT     *xfrcnt            // Pointer to number of characters written
     UCHAR      curmove            // Cursor movement flag
 
     Returns:   E_OK               // If no error occurred
                E_PARAM            // If parameter values are incorrect
                E_END_OF_SCREEN    // If attempt to move past
                                   //  end of screen.

Masm Format

      Input:    ah    = 5
                es:bx = strpntr
                cx    = length
                dh    = row
                dl    = col
                al    = curmove
 
      Call:     INT 44h
 
      Returns:  cx = xfrcnt Number of characters written
                ax = 0      If no error occurred
                     1      If parameter values are incorrect
                     2      If attempt to move past end of screen

Comments:


Example

int far main (int funct,char far *params)