⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 hsa_text.doc

📁 HSA Text Screen Lib for Turbo C, MSC
💻 DOC
📖 第 1 页 / 共 5 页
字号:
                             D = 320x200 16 Color               (EGA)
                             E = 640x200 16 Color               (EGA)
                             F = 640x350 4 Color Monochrome     (EGA)
                            10 = 640x350 16 Color               (EGA)
                            64 = 640x400 Black and white        (AT&T)
     
     NAME:                TX_NO_COL - Read the number of columns in screen
                          TX_NO_COL                                       
     SYNOPSIS:            tx_no_col ();
     RETURNS:             Number of columns on screen
     
     NAME:                TX_ROW - Read the current cursor row
                          TX_ROW                              
     SYNOPSIS:            tx_row ();
     RETURNS:             Current cursor row
     
     NAME:                TX_COL - Read the current cursor column
                          TX_COL                                 
     SYNOPSIS:            tx_col ();
     RETURNS:             Current cursor column
     
     NAME:                TX_ATTR - Read the current screen attribute
                          TX_ATTR                                    
     SYNOPSIS:            tx_attr ();
     RETURNS:             Current screen attribute
     
     NAME:                TX_ATTR_SET - Set the current screen attribute
                          TX_ATTR_SET                                   
     SYNOPSIS:            tx_attr_set (attribute);
                             short attribute;        Attribute to use
     DESCRIPTION:         Set the current screen attribute.
     NOTE:                hsa_tx.h contains definitions for all attributes and
                          a MAKE_ATTR macro to create the attribute bytes.
     
     NAME:                TX_GET_STATUS / TX_PUT_STATUS - CRT status save
                          TX_GET_STATUS   TX_PUT_STATUS                  
                                                          / restore
     SYNOPSIS:            tx_get_status (&buffer);
                          tx_put_status (&buffer);
                             struct                  Status buffer pointer
                                {
                                unsigned char mode;
                                unsigned char attribute;
                                unsigned short row,column;
                                } *buffer;
     DESCRIPTION:         Retrieves or sets the current CRT status.
     NOTE:                Structure defined as CRT in hsa_tx.h






     
     10-Sep-87                                                          Page 6








     Hardwood Software Associates
     
             HSA_TEXT - Text Mode Screen Control Library (V3.05)  
             HSA_TEXT - Text Mode Screen Control Library (V3.05)  
     
     
                             TX_ATTR - Set Specific Attributes
                             _________________________________
     
     This module consists of functions to set the current attribute to certain
     specific values that are often required.
     
     NAME:                TX_NORM - Set to white on black
                          TX_NORM                        
     SYNOPSIS:            tx_norm ();
     DESCRIPTION:         Set current attribute to white on black.
     
     NAME:                TX_BOLD - Set to intense white on black
                          TX_BOLD                                
     SYNOPSIS:            tx_bold ();
     DESCRIPTION:         Set current attribute to intense white on black.
     
     NAME:                TX_BLINK - Set to blinking white on black
                          TX_BLINK                                 
     SYNOPSIS:            tx_blink ();
     DESCRIPTION:         Set current attribute to blinking white on black.
     
     NAME:                TX_REVERSE - Set to black on white
                          TX_REVERSE                        
     SYNOPSIS:            tx_reverse ();
     DESCRIPTION:         Set current attribute to black on white.
     
     NAME:                TX_UNDER - Set to underlined
                          TX_UNDER                    
     SYNOPSIS:            tx_under ();
     DESCRIPTION:         Set current attribute to underlined.
     CAUTION:             In color this is blue.
     
     NAME:                TX_B_B - Set to intense blinking white on black
                          TX_B_B                                         
     SYNOPSIS:            tx_b_b ();
     DESCRIPTION:         Set current attribute to intense blinking white
                          on black.





















     
     10-Sep-87                                                          Page 7








     Hardwood Software Associates
     
             HSA_TEXT - Text Mode Screen Control Library (V3.05)  
             HSA_TEXT - Text Mode Screen Control Library (V3.05)  
     
     
                         TX_STR - String Display Functions
                         _________________________________
     
     The functions in this module all display C strings on the screen.  The
     screen location to start displaying the string may be specified, or the
     current location may be used (functions with "_c" in the name).  The
     screen attribute for the string may also be specified (functions with
     "_a" in the name), or the current attribute may be used.  The hsa_tx.h
     file contains definitions for attributes and a macro (MAKE_ATTR) to aid
     in creating screen attributes.
     
     NAME:                TX_STR - Display string at specified location
                          TX_STR                                       
     SYNOPSIS:            tx_str (row,column,string);
                             int row;                Row for string display
                             int column;             Column for string display
                             char *string;           Pointer to string
     DESCRIPTION:         Move the string to the screen using the current
                          attribute.  The row and column specified in the
                          call are used for the first character in the string.
     
     NAME:                TX_STR_C - Display a string, continued from
                          TX_STR_C                                   
                                     current location
     SYNOPSIS:            tx_str_c (string);
                             char *string;           Pointer to string
     DESCRIPTION:         Move the string to the screen using the current
                          attribute.  The string is displayed on the screen
                          in the next available location.
     
     NAME:                TX_STR_A - Display string at specified location
                          TX_STR_A                                       
                                     and attribute
     SYNOPSIS:            tx_str_a (row,column,string,attr);
                             int row;                Row for string display
                             int column;             Column for string display
                             char *string;           Pointer to string
                             int attr;               Attribute for string
     DESCRIPTION:         Move the string to the screen using the specified
                          screen attribute.  The row and column specified in
                          the call are used for the first character in the
                          string.
     
     NAME:                TX_STR_A_C - Display a string, continued from
                          TX_STR_A_C                                   
                                       current location with specified attribute
     ALIAS:               TX_STR_C_A
                          TX_STR_C_A
     SYNOPSIS:            tx_str_a_c (string,attr);
                          tx_str_c_a (string,attr);
                             char *string;           Pointer to string
                             int attr;               Attribute for string
     DESCRIPTION:         Move the string to the screen using the specified
                          screen attribute.  The string is displayed on the
                          screen in the next available location.


     
     10-Sep-87                                                          Page 8








     Hardwood Software Associates
     
             HSA_TEXT - Text Mode Screen Control Library (V3.05)  
             HSA_TEXT - Text Mode Screen Control Library (V3.05)  
     
     
                         TX_FILL - Character Fill Functions
                         __________________________________
     
     These functions are used to display a character one or more times.  The
     location and attribute specification is the same as described for the
     string display functions.  There are also functions that display only the
     character, using the attribute already displayed on the screen.
     
     NAME:                TX_CHR - Display a character at a specified location
                          TX_CHR                                              
     SYNOPSIS:            tx_chr (row,column,chr);
                             int row;                Row for display
                             int column;             Column for display
                             char chr;               Character to display
     DESCRIPTION:         Move the character to the screen using the current
                          screen attribute.
     
     NAME:                TX_CHR_C - Display a character, continued from
                          TX_CHR_C                                      
                                     current location
     SYNOPSIS:            tx_chr_c (chr);
                          char chr;                  Character to display
     DESCRIPTION:         Move the character to the screen using the current
                          screen attribute.  The string is displayed on the
                          screen in the next available location.
     
     NAME:                TX_CHR_A - Display character at specified location
                          TX_CHR_A                                          
                                     and attribute
     SYNOPSIS:            tx_chr_a (row,column,chr,attr);
                             int row;                Row for display
                             int column;             Column for display
                             char chr;               Character to display
                             int attr;               Attribute for character
     DESCRIPTION:         Move the character to the screen using the specified
                          screen attribute.
     
     NAME:                TX_CHR_A_C - Continue display of character with
                          TX_CHR_A_C                                     
                                       specified attribute
     ALIAS:               TX_CHR_C_A
                          TX_CHR_C_A
     SYNOPSIS:            tx_chr_a_c (chr,attr);
                          tx_chr_c_a (chr,attr);
                             char chr;               Character to display
                             int attr;               Attribute for character
     DESCRIPTION:         Move the character to the screen using the specified
                          screen attribute.  The string is displayed on the
                          screen in the next available location.
     
     NAME:                TX_FILL - Fill a line with the specified number
                          TX_FILL                                        
                                    of a characters
     SYNOPSIS:            tx_fill (row,column,chr,number);
                             int row;                Row for display
                             int column;             Column for display
                             char chr;               Character to display
                             int number;             Number of times to
     
     10-Sep-87                                                          Page 9








     Hardwood Software Associates
     
             HSA_TEXT - Text Mode Screen Control Library (V3.05)  
             HSA_TEXT - Text Mode Screen Control Library (V3.05)  
     
                                                     display character
     DESCRIPTION:         Move the character to the screen the specified
                          number of times using the current screen attribute.
     
     NAME:                TX_FILL_C - Fill a line with the specified number
                          TX_FILL_C                                        
                                      of a characters, continued from current
     SYNOPSIS:            tx_fill_c (chr,number);
                             char chr;               Character to display
                             int number;             Number of times to
                                                     display character
     DESCRIPTION:         Move the character to the screen the specified
                          number of times.  Uses the current attribute.
                          Starts at current location.
     
     NAME:                TX_FILL_A - Fill a line with the specified number
                          TX_FILL_A                                        
                                      of a characters
     SYNOPSIS:            tx_fill_a (row,column,chr,number,attr);
                             int row;                Row for display
                             int column;             Column for display
                             char chr;               Character to display
                             int number;             Number of times to
                                                     display character
                             int attr;               Attribute to use
     DESCRIPTION:         Move the character to the screen the specified
                          number of times.
     
     NAME:                TX_FILL_A_C - Fill a line with the specified number
                          TX_FILL_A_C                                        
                                        of a characters, continued from current
     ALIAS:               TX_FILL_C_A
                          TX_FILL_C_A
     SYNOPSIS:            tx_fill_a_c (chr,number,attr);
                          tx_fill_c_a (chr,number,attr);
                             char chr;               Character to display
                             int number;             Number of times to
                                                     display character
                             int attr;               Attribute to use
     DESCRIPTION:         Move the character to the screen the specified
                          number of times.  Starts at current location.
     
     NAME:                TX_CHR_O - Display a character only at a
                          TX_CHR_O                                
                                     specified location
     SYNOPSIS:            tx_chr_o (row,column,chr);
                             int row;                Row for display
                             int column;             Column for display
                             char chr;               Character to display
     DESCRIPTION:         Move the character to the screen move the character
                          only, no change is made to the screen attribute of
                          the screen.
     
     NAME:                TX_CHR_O_C - Display a character only, continued
                          TX_CHR_O_C                                      
                                       from current location
     SYNOPSIS:            tx_chr_o_c (chr);
                             char chr;               Character to display
     
     10-Sep-87                                                          Page 10








     Hardwood Software Associates
     
             HSA_TEXT - Text Mode Screen Control Library (V3.05)  
             HSA_TEXT - Text Mode Screen Control Library (V3.05)  
     
     DESCRIPTION:         Move the character to the screen move the character
                          only, no change is made to the screen attribute of
                          the screen.













⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -