Window objects, as returned by initscr() and newwin() above, have the following methods:
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)
with attributes
attr, overwriting anything previously on the display.
(y, x)
with attributes
attr, overwriting anything previously on the display.
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_BLCORNER |
br | Bottom-right corner | ACS_BRCORNER |
(y, x)
.
(y, x)
of co-ordinates of upper-left
corner.
(y, x)
of the height and width of
the window.
-1,-1
if this window has no parent.
(y, x)
of current cursor position
relative to the window's upper-left corner.
(y, x)
with
length n consisting of the character ch.
(y, x)
with attributes
attr, moving the line from position x right by one
character.
If yes is 0, cursor will always be at ``cursor position'' after an update.
(new_y, new_x)
.
(new_y, new_x)
.
1
, getch() will be non-blocking.
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.
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.
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.
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.
= 1
])
(begin_y, begin_x)
, and whose width/height is
ncols/nlines.
(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.
(y, x)
with
length n consisting of the character ch.
See About this document... for information on suggesting changes.