📄 hsa_text.doc
字号:
10-Sep-87 Page 21
Hardwood Software Associates
HSA_TEXT - Text Mode Screen Control Library (V3.05)
HSA_TEXT - Text Mode Screen Control Library (V3.05)
W_MOVE - Move a Window
______________________
This module contains functions to move data within a window and move
entire windows on the screen.
NAME: W_MOVE - Move a window
W_MOVE
SYNOPSIS: void w_move (win,row,column);
WIN *win; Pointer to window
data structure
int row; Screen row of new upper
left corner
int column; Screen column of new upper
left corner
DESCRIPTION: Moves the specified window to the new location on
the screen.
NAME: W_SCDN - Scroll data in window down
W_SCDN
SYNOPSIS: void w_scdn (win);
WIN *win; Pointer to window
data structure
DESCRIPTION: Scroll data in window down 1 row.
NAME: W_SCUP - Scroll data in window up
W_SCUP
SYNOPSIS: void w_scdn (win);
WIN *win; Pointer to window
data structure
DESCRIPTION: Scroll data in window up 1 row.
10-Sep-87 Page 22
Hardwood Software Associates
HSA_TEXT - Text Mode Screen Control Library (V3.05)
HSA_TEXT - Text Mode Screen Control Library (V3.05)
W_MENU1 - Window Menu style 1
_____________________________
These routine implement a menuing style that is designed for situations
where there are a relatively large number of short selections (e.g. file
names). The routines automatically create multiple screens which may be
paged through by the user. A selection is made by simply pressing enter
for the highlighted item. The routines may also be used to display data
without selection by specifying the select parameter as 0.
The line below the menu window must be free to display instructions.
NAME: W_MENU1_OPEN - Open a menu style 1 window
W_MENU1_OPEN
SYNOPSIS: int w_menu1_open (row,column,height,width,attr,
border_attr,border,column_width,
top_title,bot_title,select);
int row; Row of upper left corner
int column; Column of upper left corner
int height; Height of window (# rows)
including border.
int width; Width of window,
including border.
int attr; Attribute used in window
int border_attr; Attribute used in border
int border; Border line type
(see hsa_w.h)
int col_width; Width of columns
(0 if none)
char *top_title; Title for top of menu
(NULL if none)
char *bot_title; Title for bottom
(NULL if none)
int select; Select from menu flag
(0 = display only)
DESCRIPTION: This routine is called to allocate the initial
window for the menu and establish the menu
parameters. If no selection is required select is 0.
RETURNS: 0 = All OK
1 = Error in allocating windows.
NAME: W_MENU1_FILL - Fill a style 1 menu with data
W_MENU1_FILL
SYNOPSIS: int w_menu1_fill (string,buffer);
char *string; Pointer to string to add
to menu,
(NULL if no more data)
char *buffer; Pointer to buffer to
receive selected item
DESCRIPTION: This routine is called to add item to the menu and
return any selection in the buffer provided.
selection is required select is 0.
RETURNS: 0 - All OK - keep sending data
!= 0 - Item selected or menu aborted
10-Sep-87 Page 23
Hardwood Software Associates
HSA_TEXT - Text Mode Screen Control Library (V3.05)
HSA_TEXT - Text Mode Screen Control Library (V3.05)
>0 - ASCII character of key pressed
<0 - Negative of extended function key pressed
"buffer" - Contains selected item; null string if menu
aborted.
10-Sep-87 Page 24
Hardwood Software Associates
HSA_TEXT - Text Mode Screen Control Library (V3.05)
HSA_TEXT - Text Mode Screen Control Library (V3.05)
HSA_TEXT Change History
_______________________
Version Date Functions Modifications
__________________________________________________________________________
3.01 28-Feb-87 All Released to the public
3.02 23-May-87 w_* Window functions added
3.03 25-Jun-87 hsa_test.doc Rewritten documentation
w_user_border New
w_str_a New
w_str_c_a New
14-Jul-87 hsa_help.c Added get_char
3.04 9-Aug-87 w_menu1.c Memory allocation error
on "last_page_save";
caused crash after
several multipage calls
3.05 10-Sep-87 Turbo C support
10-Sep-87 Page 25
Hardwood Software Associates
HSA_TEXT - Text Mode Screen Control Library (V3.05)
HSA_TEXT - Text Mode Screen Control Library (V3.05)
Alphabetical List of HSA_TEXT Functions
_______________________________________
TX_ATTR Read the current screen attribute
TX_ATTR_SET Set the current screen attribute
TX_BIOS Use BIOS for all I/O
TX_BLINK Set to blinking white on black
TX_BOLD Set to intense white on black
TX_B_B Set to intense blinking white on black
TX_CHR Display a character at a specified location
TX_CHR_A Display character using specified location and attribute
TX_CHR_A_C Continue display of character with specified attribute
TX_CHR_C Continue display of character
TX_CHR_O Display a character only at specified location
TX_CHR_O_C Display a character only, continued from current location
TX_CLR Clear the entire screen
TX_CLR_EOL Clear to the end of the line
TX_CLR_ROWS Clear a block of lines on the screen
TX_COL Read the current cursor column
TX_CONF Set crt screen memory address and 6845 address
TX_CUR_HIDE Hide the cursor
TX_CUR_SET Set the cursor start / stop scan lines
TX_CUR_SHOW Show the cursor
TX_DIRECT Access screen hardware directly
TX_DOWN Move the current location one row down
TX_FILL Fill a line with the specified number of a character
TX_FILL_A Fill a line with the specified number of a character
TX_FILL_A_C Fill a line with the specified number of a character
TX_FILL_C Fill a line with the specified number of a character
TX_GET_STATUS CRT status save
TX_LEFT Move the current location one column left
TX_LOC Set the current location
TX_NL Move the current location to the start of the next line
TX_NORM Set to white on black
TX_NO_COL Read the number of columns in screen
TX_NO_SNOW Don't wait for retrace to prevent snow
TX_PUT_STATUS CRT status restore
TX_RD_BLK Read a block of screen data
TX_RD_BLK_C Read a block of screen data, at current location
TX_RD_STR Read string from screen
TX_RD_STR_C Read string from screen at current location
TX_REVERSE Set to black on white
TX_RIGHT Move the current location one column right
TX_ROW Read the current cursor row
TX_SCDN Scroll window down one line
TX_SCUP Sc
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -