erase, werase, clear, wclear, clrtobot, wclrtobot, clrtoeol, wclrtoeol - clear all or part of a curses window
# include <curses.h> int erase(void); int werase(WINDOW *win); int clear(void); int wclear(WINDOW *win); int clrtobot(void); int wclrtobot(WINDOW *win); int clrtoeol(void); int wclrtoeol(WINDOW *win);
The erase and werase routines copy blanks to every position in the window, clearing the screen. The clear and wclear routines are like erase and werase, but they also call clearok, so that the screen is cleared completely on the next call to wrefresh for that window and repainted from scratch. The clrtobot and wclrtobot routines erase from the cursor to the end of screen. That is, they erase all lines below the cursor in the window. Also, the current line to the right of the cursor, inclusive, is erased. The clrtoeol and wclrtoeol routines erase the current line to the right of the cursor, inclusive, to the end of the current line. Blanks created by erasure have the current background rendition (as set by wbkgdset) merged into them.
All routines return the integer OK on success and ERR on failure. The SVr4.0 manual says "or a non-negative integer if immedok is set", but this appears to be an error. X/Open defines no error conditions. In this implementation, functions using a window pointer parameter return an error if it is null.
Note that erase, werase, clear, wclear, clrtobot, and clrtoeol may be macros.
These functions are described in the XSI Curses standard, Issue 4. The standard specifies that they return ERR on failure, but specifies no error conditions. Some historic curses implementations had, as an undocumented feature, the ability to do the equivalent of clearok(..., 1) by saying touchwin(stdscr) or clear(stdscr). This will not work under ncurses. This implementation, and others such as Solaris, sets the current position to 0,0 after erasing via werase() and wclear(). That fact is not documented in other implementations, and may not be true of implementations which were not derived from SVr4 source. Not obvious from the description, most implementations clear the screen after wclear even for a subwindow or derived window. If you do not want to clear the screen during the next wrefresh, use werase instead.
More Linux Commands
tune2fs(8) - adjust tunable filesystem parameters on ext2/ex
tune2fs allows the system administrator to adjust various tunable filesystem parameters on Linux ext2, ext3, or ext4 filesystems. The current values of these op
default.pa(5) - PulseAudio Sound Server Startup Script......
The PulseAudio sound server interprets the file ~/.config/pulse/default.pa on startup, and when that file doesnt exist /etc/pulse/default.pa. It should contain
reordercap(1) Reorder input file by timestamp into output fi
Reordercap is a program that reads an input capture file and rewrites the frames to an output capture file, but with the frames sorted by increasing timestamp.
HTTP::Status(3pm) - HTTP Status code processing (Man Page)
HTTP::Status is a library of routines for defining and classifying HTTP status codes for libwww-perl. Status codes are used to encode the overall outcome of a H
sftp(1) - secure file transfer program - Linux manual page
sftp is an interactive file transfer program, similar to ftp(1), which performs all operations over an encrypted ssh-add(1) transport. It may also use many feat
git-grep(1) - Print lines matching a pattern (Man Page).....
Look for specified patterns in the tracked files in the work tree, blobs registered in the index file, or blobs in given tree objects. Patterns are lists of one
roff2text(1) - transform roff code into text mode (ManPage)
roff2text transforms roff code into text mode. Print the result to standard output. There are more of these programs for generating other formats of roff input.
Tcl_ExternalToUtfDString(3) - procedures for creating and us
Tcl_GetEncoding finds an encoding given its name. The name may refer to a built-in Tcl encoding, a user-defined encoding registered by calling Tcl_CreateEncodin
Tcl_LimitAddHandler(3) - manage and check resource limits on
Tcls interpreter resource limit subsystem allows for close control over how much computation time a script may use, and is useful for cases where a program is d
innstr(3ncurses) - get a string of characters from a curses
innstr.3ncurses - These routines return a string of characters in str, extracted starting at the current cursor position in the named window. Attributes are str
XkbModActionVMods(3) - Returns the vmods1 and vmods2 fields
XkbModActionVMods returns the vmods1 and vmods2 fields of act converted to the vmods format of an Xkb modifier description. XkbModActionVMods.3 (Library - Linux