Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[src/trunk]: src/lib/libcurses Add wnoutrefresh() and doupdate().



details:   https://anonhg.NetBSD.org/src/rev/2ef1ddaa5a57
branches:  trunk
changeset: 485398:2ef1ddaa5a57
user:      jdc <jdc%NetBSD.org@localhost>
date:      Thu Apr 27 00:28:28 2000 +0000

description:
Add wnoutrefresh() and doupdate().

diffstat:

 lib/libcurses/PSD.doc/fns.doc |  13 +++++++++++++
 lib/libcurses/curses.3        |   6 +++++-
 2 files changed, 18 insertions(+), 1 deletions(-)

diffs (57 lines):

diff -r 3bbd450da2e1 -r 2ef1ddaa5a57 lib/libcurses/PSD.doc/fns.doc
--- a/lib/libcurses/PSD.doc/fns.doc     Thu Apr 27 00:27:56 2000 +0000
+++ b/lib/libcurses/PSD.doc/fns.doc     Thu Apr 27 00:28:28 2000 +0000
@@ -341,6 +341,12 @@
 instead of being absolute screen coordinates as they are in
 .Fn subwin .
 .Ds
+.Fn doupdate ""
+.De
+Synchronize the terminal screen with the virtual screen that
+has had window contents added to it by calls to
+.Fn wnoutrefresh .
+.Ds
 .Fn dupwin "WINDOW *win"
 .De
 Creates an exact copy of the window
@@ -1223,6 +1229,13 @@
 are output to the current \*y position of the window specified by
 .Vn win.
 .Ds
+.Fn wnoutrefresh "WINDOW *win"
+.De
+Add the window contents to a virtual screen.  Several windows can be added
+before a call to
+.Fn doupdate ,
+thus allowing the screen to updated in an efficient manner.
+.Ds
 .Fn wtouchln "WINDOW *win" "int line" "int n" "int changed"
 .De
 If 
diff -r 3bbd450da2e1 -r 2ef1ddaa5a57 lib/libcurses/curses.3
--- a/lib/libcurses/curses.3    Thu Apr 27 00:27:56 2000 +0000
+++ b/lib/libcurses/curses.3    Thu Apr 27 00:28:28 2000 +0000
@@ -1,4 +1,4 @@
-.\"    $NetBSD: curses.3,v 1.24 2000/04/26 12:29:47 blymn Exp $
+.\"    $NetBSD: curses.3,v 1.25 2000/04/27 00:28:28 jdc Exp $
 .\"
 .\" Copyright (c) 1985, 1991, 1993
 .\"    The Regents of the University of California.  All rights reserved.
@@ -123,6 +123,7 @@
 .It derwin(win,lines,cols,begin_y,begin_x)\    create a subwindow
 relative to 
 .Em win.
+.It doupdate() make current screen look like virtual screen 
 .It dupwin(win)        duplicate
 .Em win
 .It echo()     set echo mode
@@ -314,6 +315,9 @@
 .Em win
 .It wmove(win,y,x)     set current (y,x) co-ordinates on
 .Em win
+.It wnoutrefresh(win)  add
+.Em win
+to virtual screen
 .It wprintw(win,fmt,arg1,arg2,...)\    printf on
 .Em win
 .It wrefresh(win)      make screen look like



Home | Main Index | Thread Index | Old Index