curses.window.attroff()

window.attroff(attr) Remove attribute attr from the “background” set applied to all writes to the current window.

curses.window.addstr()

window.addstr(str[, attr]) window.addstr(y, x, str[, attr]) Paint the string str at (y, x) with attributes attr, overwriting anything previously on the display.

curses.window.addnstr()

window.addnstr(str, n[, attr]) window.addnstr(y, x, str, n[, attr]) Paint at most n characters of the string str at (y, x) with attributes attr, overwriting anything previously on the display.

curses.window.addch()

window.addch(ch[, attr]) window.addch(y, x, ch[, attr]) Note A character means a C character (an ASCII code), rather than a Python character (a string of length 1). (This note is true whenever the documentation mentions a character.) The built-in ord() is handy for conveying strings to codes. 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 wind

curses.version

curses.version A string representing the current version of the module. Also available as __version__.

curses.use_env()

curses.use_env(flag) If used, this function should be called before initscr() or newterm are called. When flag is False, the values of lines and columns specified in the terminfo database will be used, even if environment variables LINES and COLUMNS (used by default) are set, or if curses is running in a window (in which case default behavior would be to use the window size if LINES and COLUMNS are not set).

curses.use_default_colors()

curses.use_default_colors() Allow use of default values for colors on terminals supporting this feature. Use this to support transparency in your application. The default color is assigned to the color number -1. After calling this function, init_pair(x, curses.COLOR_RED, -1) initializes, for instance, color pair x to a red foreground color on the default background.

curses.update_lines_cols()

curses.update_lines_cols() Update LINES and COLS. Useful for detecting manual screen resize. New in version 3.5.

curses.unget_wch()

curses.unget_wch(ch) Push ch so the next get_wch() will return it. Note Only one ch can be pushed before get_wch() is called. New in version 3.3.

curses.ungetmouse()

curses.ungetmouse(id, x, y, z, bstate) Push a KEY_MOUSE event onto the input queue, associating the given state data with it.