Window objects, as returned by initscr() and newwin() above, have the following methods:
[y, x,] ch[, attr]) |
Paint character ch at (y, x)
with attributes
attr, overwriting any character previously painter at that
location. By default, the character position and attributes are the
current settings for the window object.
[y, x,] str, n[, attr]) |
(y, x)
with attributes
attr, overwriting anything previously on the display.
[y, x,] str[, attr]) |
(y, x)
with attributes
attr, overwriting anything previously on the display.
attr) |
attr) |
attr) |
ch[, attr]) |
ch[, attr]) |
[ls[, rs[, ts[, bs[, tl[, tr[, bl[, br]]]]]]]]) |
Note:
A 0
value for any parameter will cause the
default character to be used for that parameter. Keyword parameters
can not be used. The defaults are listed in this table:
Parameter | Description | Default value |
---|---|---|
ls | Left side | ACS_VLINE |
rs | Right side | ACS_VLINE |
ts | Top | ACS_HLINE |
bs | Bottom | ACS_HLINE |
tl | Upper-left corner | ACS_ULCORNER |
tr | Upper-right corner | ACS_URCORNER |
bl | Bottom-left corner | ACS_LLCORNER |
br | Bottom-right corner | ACS_LRCORNER |
[vertch, horch]) |
) |
yes) |
) |
) |
) |
[y, x]) |
(y, x)
.
) |
[nlines, ncols,] begin_y, begin_x) |
ch[, attr]) |
y, x) |
) |
) |
(y, x)
of co-ordinates of upper-left
corner.
[y, x]) |
[y, x]) |
) |
(y, x)
of the height and width of
the window.
) |
-1,-1
if this window has no parent.
[y, x]) |
) |
(y, x)
of current cursor position
relative to the window's upper-left corner.
[y, x,] ch, n) |
(y, x)
with
length n consisting of the character ch.
flag) |
yes) |
flag) |
[y, x]) |
[y, x,] ch[, attr]) |
(y, x)
with attributes
attr, moving the line from position x right by one
character.
nlines) |
) |
[y, x,] str, n [, attr]) |
[y, x, ] str [, attr]) |
[y, x] [, n]) |
line) |
) |
yes) |
yes) |
If yes is 0, cursor will always be at ``cursor position'' after an update.
new_y, new_x) |
(new_y, new_x)
.
y, x) |
new_y, new_x) |
(new_y, new_x)
.
yes) |
1
, getch() will be non-blocking.
yes) |
1
, escape sequences will not be timed out.
If yes is 0
, after a few milliseconds, an escape sequence
will not be interpreted, and will be left in the input stream as is.
) |
destwin[, sminrow, smincol, dminrow, dmincol, dmaxrow, dmaxcol]) |
To get fine-grained control over the copied region, the second form of overlay() can be used. sminrow and smincol are the upper-left coordinates of the source window, and the other variables mark a rectangle in the destination window.
destwin[, sminrow, smincol, dminrow, dmincol, dmaxrow, dmaxcol]) |
To get fine-grained control over the copied region, the second form of overwrite() can be used. sminrow and smincol are the upper-left coordinates of the source window, the other variables mark a rectangle in the destination window.
file) |
beg, num) |
) |
[pminrow, pmincol, sminrow, smincol, smaxrow, smaxcol]) |
The 6 optional arguments can only be specified when the window is a pad created with newpad(). The additional parameters are needed to indicate what part of the pad and screen are involved. pminrow and pmincol specify the upper left-hand corner of the rectangle to be displayed in the pad. sminrow, smincol, smaxrow, and smaxcol specify the edges of the rectangle to be displayed on the screen. The lower right-hand corner of the rectangle to be displayed in the pad is calculated from the screen coordinates, since the rectangles must be the same size. Both rectangles must be entirely contained within their respective structures. Negative values of pminrow, pmincol, sminrow, or smincol are treated as if they were zero.
[lines = 1 ]) |
flag) |
top, bottom) |
) |
) |
[nlines, ncols,] begin_y, begin_x) |
(begin_y, begin_x)
, and whose width/height is
ncols/nlines.
[nlines, ncols,] begin_y, begin_x) |
(begin_y, begin_x)
, and whose width/height is
ncols/nlines.
By default, the sub-window will extend from the specified position to the lower right corner of the window.
) |
flag) |
) |
delay) |
start, count) |
) |
) |
[y, x,] ch, n) |
(y, x)
with
length n consisting of the character ch.
See About this document... for information on suggesting changes.