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

📄 hsa_text.doc

📁 HSA Text Screen Lib for Turbo C, MSC
💻 DOC
📖 第 1 页 / 共 5 页
字号:




































     
     10-Sep-87                                                          Page 11








     Hardwood Software Associates
     
             HSA_TEXT - Text Mode Screen Control Library (V3.05)  
             HSA_TEXT - Text Mode Screen Control Library (V3.05)  
     
     
                          TX_BLK - Screen Block Functions
                          _______________________________
     
     These functions operate on a block of screen memory.  The data in a block
     includes both the characters displayed and the attributes.  Note that the
     buffers used to store screen data must be of type int.
     
     NAME:                TX_RD_BLK - Read a block of screen data
                          TX_RD_BLK                              
     SYNOPSIS:            tx_rd_blk (row,column,buffer,no_row,no_column);
                             int row;                Row to read
                             int column;             Column to read
                             int *buffer;            Buffer address
                             int no_row;             Number of rows to read
                             int no_column;          Number of columns to read
     DESCRIPTION:         Read a block of screen memory, character and
                          attribute, into the buffer.
     NOTE:                The current location is set to row,column.
     
     NAME:                TX_RD_BLK_C - Read a block of screen data, at
                          TX_RD_BLK_C                                  
                                        current location
     SYNOPSIS:            tx_rd_blk_c (buffer,no_row,no_column);
                             int *buffer;            Buffer address
                             int no_row;             Number of rows to read
                             int no_column;          Number of columns to read
     DESCRIPTION:         Read a block of screen memory, character and
                          attribute, into the buffer.
     NOTE:                The current location is unchanged.
     
     NAME:                TX_WR_BLK - Write a block of screen data
                          TX_WR_BLK                               
     SYNOPSIS:            tx_wr_blk (row,column,buffer,no_row,no_column);
                             int row;                Row to write
                             int column;             Column to write
                             int *buffer;            Buffer address
                             int no_row;             Number of rows to write
                             int no_column;          Number of columns to write
     DESCRIPTION:         Write a block of screen memory, character and
                          attribute, from the buffer.
     NOTE:                The current location is set to row,column.
     
     NAME:                TX_WR_BLK_C - Write a block of screen data, at
                          TX_WR_BLK_C                                   
                                        current location
     SYNOPSIS:            tx_wr_blk_c (buffer,no_row,no_column);
                             int *buffer;            Buffer address
                             int no_row;             Number of rows to write
                             int no_column;          Number of columns to write
     DESCRIPTION:         Write a block of screen memory, character and
                          attribute, from the buffer.
     NOTE:                The current location is unchanged.




     
     10-Sep-87                                                          Page 12








     Hardwood Software Associates
     
             HSA_TEXT - Text Mode Screen Control Library (V3.05)  
             HSA_TEXT - Text Mode Screen Control Library (V3.05)  
     
     
                          TX_MISC - Miscellaneous Function
                          ________________________________
     
     This module contains miscellaneous functions to do things like clear all
     or part of the screen, scroll the screen, and read strings from the
     screen.  Note that a string does not include the display attributes.
     
     NAME:                TX_RD_STR - Read string from screen
                          TX_RD_STR                          
     SYNOPSIS:            char *tx_rd_str (row,col,string,number);
                             int row;                Row to read
                             int column;             Column to read
                             char *string;           Buffer address
                             short number;           Number characters to read
     DESCRIPTION:         Reads the characters displayed on the screen into the
                          string buffer.
     RETURNS:             Pointer to string
     NOTE:                Current location remains unchanged
     
     NAME:                TX_RD_STR_C - Read string from screen at current
                          TX_RD_STR_C                                     
                                        location
     SYNOPSIS:            char *tx_rd_str_c (string,number);
                             char *string;           Buffer address
                             short number;           Number characters to read
     DESCRIPTION:         Reads the characters displayed on the screen into the
                          string buffer.
     RETURNS:             Pointer to string
     NOTE:                Current location remains unchanged
     
     NAME:                TX_SCUP - Scroll window up one line
                          TX_SCUP                            
     SYNOPSIS:            tx_scup (row,column,no_row,no_column);
                             int row,column;         Upper left row/column
                                                        (-1 for current)
                             int no_row;             Number of rows to scroll
                             int no_column;          Number of columns to scroll
     DESCRIPTION:         Scrolls the specified portion of the screen up one
                          row.
     
     NAME:                TX_SCDN - Scroll window down one line
                          TX_SCDN                              
     SYNOPSIS:            tx_scdn (row,column,no_row,no_column);
                             int row,column;         Upper left row/column
                                                        (-1 for current)
                             int no_row;             Number of rows to scroll
                             int no_column;          Number of columns to scroll
     DESCRIPTION:         Scrolls the specified portion of the screen down one
                          row.
     
     NAME:                TX_CLR - Clear the entire screen
                          TX_CLR                          
     SYNOPSIS:            tx_clr ();
     
     NAME:                TX_CLR_EOL - Clear to the end of the line
                          TX_CLR_EOL                               
     SYNOPSIS:            tx_clr_eol ();
     DESCRIPTION:         Clear the screen from the current location to the
     
     10-Sep-87                                                          Page 13








     Hardwood Software Associates
     
             HSA_TEXT - Text Mode Screen Control Library (V3.05)  
             HSA_TEXT - Text Mode Screen Control Library (V3.05)  
     
                          end of the row.
     
     NAME:                TX_CLR_ROWS - Clear a block of lines on the screen
                          TX_CLR_ROWS                                       
     SYNOPSIS:            tx_clr_rows (start,end);
                             int start;              First line to clear
                                                        (-1 if current)
                             int end;                Last line to clear
                                                        (-1 if current)












































     
     10-Sep-87                                                          Page 14








     Hardwood Software Associates
     
             HSA_TEXT - Text Mode Screen Control Library (V3.05)  
             HSA_TEXT - Text Mode Screen Control Library (V3.05)  
     
     
                         TX_CUR - Cursor Control Functions
                         _________________________________
     
     This module contains functions to set the size and location of the
     cursor.  It also contains functions to hide and show the cursor.
     
     NAME:                TX_CUR_SET - Set the cursor start / stop scan lines
                          TX_CUR_SET                                         
     SYNOPSIS:            tx_cur_set (start,end);
                             int start;              Start scan line of cursor
                             int end;                End scan line of cursor
     DESCRIPTION:         Set the size of the cursor.
     
     NAME:                TX_CUR_HIDE - Hide the cursor
                          TX_CUR_HIDE                  
     SYNOPSIS:            tx_cur_hide ();
     
     NAME:                TX_CUR_SHOW - Show the cursor
                          TX_CUR_SHOW                  
     SYNOPSIS:            tx_cur_show ();
     
     NAME:                TX_LOC - Set the current location
                          TX_LOC                           
     SYNOPSIS:            tx_loc (row,column);
                             int row;                Row for display
                             int column;             Column for display
     DESCRIPTION:         Move the cursor to the specified location.
     
     NAME:                TX_NL - Move the current location to the
                          TX_NL                                   
                                  start of next row
     SYNOPSIS:            tx_nl ();
     
     NAME:                TX_LEFT - Move the current location one column left
                          TX_LEFT                                            
     SYNOPSIS:            tx_left ();
     
     NAME:                TX_RIGHT - Move the current location one column right
                          TX_RIGHT                                             
     SYNOPSIS:            tx_right ();
     
     NAME:                TX_UP - Move the current location one row up
                          TX_UP                                       
     SYNOPSIS:            tx_up ();
     
     NAME:                TX_DOWN - Move the current location one row down
                          TX_DOWN                                         
     SYNOPSIS:            tx_down ();













     
     10-Sep-87                                                          Page 15








     Hardwood Software Associates
     
             HSA_TEXT - Text Mode Screen Control Library (V3.05)  
             HSA_TEXT - Text Mode Screen Control Library (V3.05)  
     
     
                              GENERAL - "W" FUNCTIONS
                              _______________________
     
     The HSA_TEXT window function library provides powerful, yet simple,
     windowing capability.  The windows created and maintained by this library
     are of the "pop-up" variety.  A window is simply defined as an area of
     the screen that is first saved when the window is openned, manipulated by
     the various window functions, and finally restored to its original state
     when the window is closed.  Windows may coexist on the screen with text
     presented via other means.  Windows may optionally be bordered with any
     of several different border characters.  Window titles may optionally
     appear in the top or bottom border.
     
     The window functions all use a data structure named "win_data" to
     manipulate the windows.  This structure is defined in a header file named
     "hsa_w.h" as WIN.  The file must be included in all modules that call
     window functions.  These data structures are automatically allocated when
     a window is openned and freed when it is closed.
     
     W_demo.c contains the source code for the w_demo.exe demonstration
     program; it provides an example of how to use most of the w functions.
     Refer to MSC_W.BAT and LC_W.BAT for information on how to compile
     and link for the Microsoft and Lattice compilers.




⌨️ 快捷键说明

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