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
printw(3cur)printw(3cur)Name
printw, mvprintw, mvwprintw, wprintw - formatted write to a window
Syntax
#include <cursesX.h>
int printw(fmt [, arg] ...)
char *fmt;
int wprintw(win, fmt [, arg] ...)
WINDOW *win;
char *fmt;
int mvprintw(y, x, fmt [, arg] ...)
int y, x;
char *fmt;
int mvwprintw(win, y, x, fmt [, arg] ...)
WINDOW *win;
int y, x;
char *fmt;
Description
The routine adds a string to the default window starting at the current cursor position. This routine causes the string that would nor-
mally be output by to be output by
The routine adds a string to the specified window starting at the current cursor position. This routine causes the string that would nor-
mally be output by to be output by
The routine adds a string to the default window starting at the specified cursor position. This routine causes the string that would nor-
mally be output by to be output by
The routine adds a string to the specified window starting at the specified cursor position. This routine causes the string that would
normally be output by to be output by
All these routines are analogous to It is advisable to use the field width options of to avoid leaving unwanted characters on the screen
from earlier calls.
Return Values
The and functions return OK on success and ERR on error.
See Alsoaddstr(3cur), waddstr(3cur), printf(3s)printw(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)