📄 wtouchln.html
字号:
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 3.2 Final//EN"><html><head><!-- Copyright 1997 The Open Group, All Rights Reserved --><title>is_linetouched</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><xref type="10" name="manpage_touch"></xref><h4><a name = "tag_002_001_658"> </a>NAME</h4><blockquote>is_linetouched, is_wintouched, touchline, touchwin, untouchwin, wtouchln- window refresh control functions</blockquote><h4><a name = "tag_002_001_659"> </a>SYNOPSIS</h4><blockquote><pre><code>#include <<a href="curses.h.html">curses.h</a>>bool is_linetouched(WINDOW *<i>win</i>, int <i>line</i>);bool is_wintouched(WINDOW *<i>win</i>);int touchline(WINDOW *<i>win</i>, int <i>start</i>, int <i>count</i>);int touchwin(WINDOW *<i>win</i>);int untouchwin(WINDOW *<i>win</i>);int wtouchln(WINDOW *<i>win</i>, int <i>y</i>, int <i>n</i>, int <i>changed</i>);</code></pre></blockquote><h4><a name = "tag_002_001_660"> </a>DESCRIPTION</h4><blockquote>The<i>touchwin()</i>function touches the specified window (that is, marks it as having changedmore recently than the last refresh operation). The<i><a href="touchline.html">touchline()</a></i>function only touches <i>count</i> lines, beginning with line <i>start</i>.<p>The<i><a href="untouchwin.html">untouchwin()</a></i>function marks all lines in the window as unchanged since the last refreshoperation.<p>Calling<i>wtouchln()</i>,if <i>changed</i> is 1, touches <i>n</i> lines in the specified window, startingat line <i>y</i>. If <i>changed</i> is 0,<i>wtouchln()</i>marks such lines as unchanged since the last refresh operation.<p>The<i>is_wintouched()</i>function determines whether the specified window is touched. The<i>is_linetouched()</i>function determines whether line<i>line</i>of the specified window is touched.</blockquote><h4><a name = "tag_002_001_661"> </a>RETURN VALUE</h4><blockquote>The<i>is_linetouched()</i>and<i>is_wintouched()</i>functions return TRUE if any of the specified lines, or the specified window,respectively, has been touched since the last refresh operation. Otherwise,they return FALSE.<p>Upon successful completion, the other functions return OK. Otherwise, theyreturn ERR.Exceptions to this are noted in the preceding functiondescriptions.</blockquote><h4><a name = "tag_002_001_662"> </a>ERRORS</h4><blockquote>No errors are defined.</blockquote><h4><a name = "tag_002_001_663"> </a>APPLICATION USAGE</h4><blockquote>Calling<i>touchwin()</i>or<i><a href="touchline.html">touchline()</a></i>is sometimes necessary when using overlapping windows, since a change to onewindow affects the other window, but the records of which lines have beenchanged in the other window do not reflect the change.</blockquote><h4><a name = "tag_002_001_664"> </a>SEE ALSO</h4><blockquote><xref href=concepts><a href="intov.html#tag_001_002">Screens, Windows and Terminals</a></xref>,<i><a href="doupdate.html">doupdate()</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 + -