clear(3cur)clear(3cur)Name
clear, wclear - clear window
Syntax
#include <cursesX.h>
int clear()
int wclear(win)
WINDOW *win;
Description
The routine resets the entire default window to blanks and sets the current
(y, x) coordinates to (0, 0).
The routine resets the entire specified window to blanks and sets the current (y, x) coordinates to (0, 0).
The routine assumes that the screen may have garbage on it that it doesn't know about. The routine first calls which copies blanks to
every position in the default window, and then which clears the physical screen completely on the next call to for
The routine is a macro.
Return Values
The and functions return OK on success and ERR on error.
See Alsoclearok(3cur), erase(3cur), refresh(3cur)clear(3cur)
Check Out this Related Man Page
addstr(3cur)addstr(3cur)Name
addstr, waddstr, mvaddstr, mvwaddstr - add string to window
Syntax
#include <cursesX.h>
int addstr(str)
char *str;
int waddstr(win, str)
WINDOW *win;
char *str;
int mvaddstr(y, x, str)
int y, x;
char *str;
int mvwaddstr(win, y, x, str)
WINDOW *win;
int y, x;
char *str;
Description
The routine writes all the characters of the null-terminated character string on the default window at the current (y, x) coordinates.
The routine writes all the characters of the null terminated character string on the specified window at the current (y, x) coordinates.
The routine writes all the characters of the null terminated character string on the default window at the specified (y, x) coordinates.
The routine writes all the characters of the null terminated character string on the specified window at the specified (y, x) coordinates.
The following information applies to all the routines. All the routines return if writing the string causes illegal scrolling. In this
case the routine will write as much as possible of the string on the window.
These routines are functionally equivalent to calling or once for each character in the string.
The routines and are macros.
Return Values
The and functions return OK on success and ERR on error.
See Alsoaddch(3cur), waddch(3cur)addstr(3cur)
Hi again. I'm using the curses functions simply to output data to
the screen in certain areas. Very simple, just using the full
screen, no windows.
The problem is that I'm calling mvprintw from within several child
processes in the same session, and the output is going
bananas. ie, no... (1 Reply)
Hello,
I am trying to write a simple program with functions in the ncurses library, on a Mac running OSX 10.2.8, with the compiler and libraries that were included in the Dec 2002 Developer's tools release (the last one that runs on Jaguar, as far as I know). When I try to compile, I get... (2 Replies)
Hello All Gr8 Linux Developers Out There,
Background
=========
I have created a ncurses application that is suppose to run only on the Linux's virtual console. This application will heavily utilize the ncurses windows to show window-based UI to the user. I am using CentOS5.x. The terminal for... (7 Replies)
I am trying to compile pro*c program on aix 5.3. The program compiled fine when I was using curses library. After switching to ncurses, I have started getting compilation errors. After installing ncurses on the box, I changed the -lcurses flag to -lncurses. I have also updated the path to the... (13 Replies)