📄 wnoutrefresh.html
字号:
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 3.2 Final//EN"><html><head><!-- Copyright 1997 The Open Group, All Rights Reserved --><title>doupdate</title></head><body bgcolor=white><center><font size=2>The Single UNIX ® Specification, Version 2<br>Copyright © 1997 The Open Group</font></center><hr size=2 noshade><h4><a name = "tag_002_001_600"> </a>NAME</h4><blockquote>doupdate, refresh, wnoutrefresh, wrefresh- refresh windows and lines</blockquote><h4><a name = "tag_002_001_601"> </a>SYNOPSIS</h4><blockquote><pre><code>#include <<a href="curses.h.html">curses.h</a>>int doupdate(void);int refresh(void);int wnoutrefresh(WINDOW *<i>win</i>);int wrefresh(WINDOW *<i>win</i>);</code></pre></blockquote><h4><a name = "tag_002_001_602"> </a>DESCRIPTION</h4><blockquote>The<i><a href="refresh.html">refresh()</a></i>and<i>wrefresh()</i>functions refresh the current or specified window. The functions position theterminal's cursor at the cursor position of the window, except that if the<i><a href="leaveok.html">leaveok()</a></i>mode has been enabled, they may leave the cursor at an arbitrary position.<p>The<i>wnoutrefresh()</i>function determines which parts of the terminal may need updating. The<i>doupdate()</i>function sends to the terminal the commands to perform any required changes.</blockquote><h4><a name = "tag_002_001_603"> </a>RETURN VALUE</h4><blockquote>Upon successful completion, these functions return OK.Otherwise they return ERR.</blockquote><h4><a name = "tag_002_001_604"> </a>ERRORS</h4><blockquote>No errors are defined.</blockquote><h4><a name = "tag_002_001_605"> </a>APPLICATION USAGE</h4><blockquote>Refreshing an entire window is typically more efficient than refreshingseveral subwindows separately. An efficient sequence is to call<i>wnoutrefresh()</i>on each subwindow that has changed, followed by a call to<i>doupdate()</i>,which updates the terminal.<p>The<i><a href="refresh.html">refresh()</a></i>or<i>wrefresh()</i>function (or<i>wnoutrefresh()</i>followed by<i>doupdate()</i>)must be called to send output to the terminal, as other Cursesfunctions merely manipulate data structures.</blockquote><h4><a name = "tag_002_001_606"> </a>SEE ALSO</h4><blockquote><i><a href="clearok.html">clearok()</a></i>,<i><a href="redrawwin.html">redrawwin()</a></i>,<i><a href="curses.h.html"><curses.h></a></i>.</blockquote><hr size=2 noshade><center><font size=2>UNIX ® is a registered Trademark of The Open Group.<br>Copyright © 1997 The Open Group<br> [ <a href="../index.html">Main Index</a> | <a href="../xshix.html">XSH</a> | <a href="../xcuix.html">XCU</a> | <a href="../xbdix.html">XBD</a> | <a href="../cursesix.html">XCURSES</a> | <a href="../xnsix.html">XNS</a> ]</font></center><hr size=2 noshade></body></html>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -