Add descriptions for newpad(), subpad(), prefresh() and pnoutrefresh().

This commit is contained in:
jdc 2002-12-23 12:12:45 +00:00
parent 2467ead4d8
commit 6d51b9fd23
1 changed files with 63 additions and 1 deletions

View File

@ -841,6 +841,30 @@ Change the current \*y of the window to
.Vn y\*,x ). (
\*(Es
.Ds
.Fn mvaddch "int y" "int x" "chtype ch"
.De
Moves the cursor to the position
.Vn (y ,
.Vn x )
and then adds a character in the same manner as
.Fn addch .
.Ds
.Fn mvaddstr "int y" "int x" "char *str" \(dg
.De
Moves the cursor to the position
.Vn (y ,
.Vn x )
and then adds a string in the same manner as
.Fn addstr .
.Ds
.Fn mvaddnstr "int y" "int x" "char *str" \(dg
.De
Moves the cursor to the position
.Vn (y ,
.Vn x )
and then adds a string in the same manner as
.Fn addnstr .
.Ds
.Fn mvcur "int lasty" "int lastx" "int newy" "int newx"
.De
Moves the terminal's cursor from
@ -963,6 +987,15 @@ Sleep for
.Vn ms
milliseconds.
.Ds
.Ft "WINDOW *"
.Fn newpad "int lines" "int cols"
.De
Create a new pad with
.Vn lines
lines and
.Vn cols
columns.
.Ds
.Ft "SCREEN *"
.Fn newterm "char *type" "FILE *outfd" "FILE *infd"
.De
@ -1120,10 +1153,21 @@ blanks on
become blank on
.Vn win2 .
.Ds
.Fn pair content "short pair" "short *fore" "short *back"
.Fn pair_content "short pair" "short *fore" "short *back"
.De
Get the foreground and background colors of pair
.Vn pair .
.Ds
.Fn pnoutrefresh "WINDOW *pad" "int pbeg_y" "int pbeg_x" "int sbeg_y" "int sbeg_x" "int smax_y" "int smax_x"
.De
Add the pad contents to a virtual screen. Several pads can be added
before a call to
.Fn doupdate ,
thus allowing the screen to updated in an efficient manner.
.Ds
.Fn prefresh "WINDOW *pad" "int pbeg_y" "int pbeg_x" "int sbeg_y" "int sbeg_x" "int smax_y" "int smax_x"
.De
Synchronize the terminal screen with the desired pad.
.Ds
.Fn printw "char *fmt" "..."
.De
@ -1284,6 +1328,24 @@ or
are called.
.Ds
.Ft "WINDOW *"
.Fn subpad "WINDOW *win" "int lines" "int cols" "int begin_y" "int begin_x"
.De
Create a new pad with
.Vn lines
lines and
.Vn cols
columns starting at position
.Vn begin\*_y\*,begin\*_x ) (
inside the pad
.i win .
This means that any change made to either pad
in the area covered
by the subpad will be made on both pads.
.Vn begin\*_y\*,begin\*_x
are specified relative to the relative (0\*,0) of
.Vn win .
.Ds
.Ft "WINDOW *"
.Fn subwin "WINDOW *win" "int lines" "int cols" "int begin_y" "int begin_x"
.De
Create a new window with