refresh(3cur)refresh(3cur)Name
refresh, wrefresh - refresh window
Syntax
#include <cursesX.h>
int refresh()
int wrefresh(win)
WINDOW *win;
Description
The routine copies the named window to the physical terminal screen, taking into account what is already there in order to optimize cursor
movement.
The routine does the same, using as a default screen.
These routines must be called to get any output on the terminal, as other routines only manipulate data structures.
Unless has been enabled, the physical cursor of the terminal is left at the location of the window's cursor. The routine is a macro.
Return Values
The and functions return OK on success and ERR on error.
See Alsoleaveok(3cur)refresh(3cur)
Check Out this Related Man Page
prefresh(3cur)prefresh(3cur)Name
prefresh, pnoutrefresh - refresh pad
Syntax
#include <cursesX.h>
int prefresh(pad, pminrow, pmincol, sminrow, smincol, smaxrow, smaxcol)
WINDOW *pad;
int pminrow, pmincol, sminrow, smincol, smaxrow, smaxcol;
int pnoutrefresh(pad, pminrow, pmincol, sminrow, smincol, smaxrow, smaxcol)
WINDOW *pad;
int pminrow, pmincol, sminrow, smincol, smaxrow, smaxcol;
Description
The routine copies the specified pad to the physical terminal screen. It takes account of what is already displayed on the screen to opti-
mize cursor movement.
The routine copies the named pad to the virtual screen. It then compares the virtual screen with the physical screen and performs the
actual update.
These routines are analogous to the routines and except that pads, instead of windows, are involved. Additional parameters are also needed
to indicate what part of the pad and screen are involved. The upper left corner of the part of the pad to be displayed is specified by and
The co-ordinates and specify the edges of the screen rectangle that will contain the selected part of the pad.
The lower right corner of the pad rectangle to be displayed is calculated from the screen co-ordinates. This ensures that the screen rec-
tangle and the pad rectangle are the same size.
Both rectangles must be entirely contained within their respective structures.
Return Values
The and functions return OK on success and ERR on error.
See Alsownoutrefresh(3cur), wrefresh(3cur)prefresh(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)
Hi Dear,
I have written a small C/C++ aplication which is using ncurses library. When the application runs, some times some unknown characters are displayed on the screen. It happens some times and on some pc's. I have used "mvwprintw" for displaying text of my own will and proper use of... (1 Reply)
hi every one
i got a problem in blinking text
i tried like this
main()
{
initscr();
move(5,10);
addstr("this is blink->");
addch('H' | A_BLINK);
refresh();
getch();
endwin();
}
an error came like this
# cc r3.c
r3.c: In function ‘main':
r3.c:6: error: ‘A_BLINK' undeclared (first... (5 Replies)
I have a doubt .. ( maybe I don't know ..)
Let's say , we got the folowing example ( to understand better what I mean ).
We got two POSIX threads ( pthreads ) , one receives some strings and creates a menu ( for that strings , scrollable menu ) , and another one check's to see if it has to... (2 Replies)
Hi,
tried to native compile Debian Dialog as ncurses-dev is available.
I am trying native compile Debian Dialog using gcc on Linux embedded router.
What's wrong, as running than make
I get errors.
Mayby this line in the log file is an exaplanation to a problem ?
"
checking if we have... (1 Reply)
Hi,
the following code comes from Unix Linux dialog utility project.
Unfortunately, this project is no more actively maintained.
Unix Linux dialog utility is made of widget boxes.
One of them is mixedgauge.c
In the following example I would like to get rid of flickering
when run in... (0 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)
Help with ncurses Hi,
I need some help with ncurses.I'm supposed to write a program in C to display date and time and also to input the username and password using C.I chose ncurses for my task and here I am.
Code:
#include <stdio.h>
#include <termios.h>
#include... (1 Reply)
Hi, all,
I'm writing a BBS telnet client, and am trying to implement a status bar into it, at the bottom of the screen.
I am using NCurses to accomplish this. So far, it appears to be working, that is, upon connecting to BBS, it
will display the status bar, and then quickly disappear.
... (5 Replies)