📄 attr_get.html
字号:
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 3.2 Final//EN"><html><head><!-- Copyright 1997 The Open Group, All Rights Reserved --><title>attr_get</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_348"> </a>NAME</h4><blockquote>attr_get, attr_off, attr_on, attr_set,color_set,wattr_get, wattr_off, wattr_on, wattr_set,wcolor_set- window attribute control functions</blockquote><h4><a name = "tag_002_001_349"> </a>SYNOPSIS</h4><blockquote><pre><code>#include <<a href="curses.h.html">curses.h</a>>int attr_get(attr_t <i>*attrs</i>, short <i>*color_pair_number</i>, void <i>*opts</i>);int attr_off(attr_t <i>attrs</i>, void <i>*opts</i>);int attr_on(attr_t <i>attrs</i>, void <i>*opts</i>);int attr_set(attr_t <i>attrs</i>, short <i>color_pair_number</i>, void <i>*opts</i>);int color_set(short <i>color_pair_number</i>, void *<i>opts</i>);int wattr_get(WINDOW <i>*win</i>, attr_t <i>*attrs</i>, short <i>*color_pair_number</i>,<br> void <i>*opts</i>);int wattr_off(WINDOW <i>*win</i>, attr_t <i>attrs</i>, void <i>*opts</i>);int wattr_on(WINDOW <i>*win</i>, attr_t <i>attrs</i>, void <i>*opts</i>);int wattr_set(WINDOW <i>*win</i>, attr_t <i>attrs</i>, short <i>color_pair_number</i>,<br> void <i>*opts</i>);int wcolor_set(WINDOW <i>*win</i>, short <i>color_pair_number</i>, void <i>*opts);</i> </code></pre></blockquote><h4><a name = "tag_002_001_350"> </a>DESCRIPTION</h4><blockquote>These functions manipulate the attributes and colour of thewindow rendition of the current orspecified window.<p>The<i>attr_get()</i>and<i>wattr_get()</i>functions obtain the current rendition of a window.If <i>attrs</i> or <i>color_pair_number</i> is a null pointer,no information will be obtained on the corresponding rendition information and this is not an error.<p>The<i>attr_off()</i>and<i>wattr_off()</i>functions turn off <i>attrs</i> in the current or specified window withoutaffecting any others.<p>The<i>attr_on()</i>and<i>wattr_on()</i>functions turn on <i>attrs</i> in the current or specified window withoutaffecting any others.<p>The<i>attr_set()</i>and<i>wattr_set()</i>functions set the window rendition of the current or specified window to<i>attrs</i> and <i>color_pair_number</i>.<p>The<i>color_set()</i>and<i>wcolor_set()</i>functions set the window colour of the current or specified window to<i>color_pair_number</i>.</blockquote><h4><a name = "tag_002_001_351"> </a>RETURN VALUE</h4><blockquote>These functions always return OK.</blockquote><h4><a name = "tag_002_001_352"> </a>ERRORS</h4><blockquote>No errors are defined.</blockquote><h4><a name = "tag_002_001_353"> </a>SEE ALSO</h4><blockquote><i><a href="attroff.html">attroff()</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 + -