⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 curses开发包的man_page.htm

📁 curses界面编程
💻 HTM
📖 第 1 页 / 共 3 页
字号:
<HTML><HEAD><TITLE>Douzhe.com/SCO精华版文章/curses开发包的man_page</TITLE><META http-equiv=Content-Type content="text/html; charset=gb2312"><style>BODY {	FONT-SIZE: 9pt; FONT-FAMILY: "MS Shell Dlg";}P {	FONT-SIZE: 9pt; FONT-FAMILY: "MS Shell Dlg"}SELECT {	FONT-SIZE: 9pt; FONT-FAMILY: "MS Shell Dlg"}TD {	FONT-SIZE: 12px; FONT-FAMILY: "MS Shell Dlg"}INPUT {	FONT-SIZE: 9pt; FONT-FAMILY: 宋体; verdana: }TEXTAREA {	FONT-SIZE: 9pt; FONT-FAMILY: 宋体; verdana: }TEXTAREA {	FONT-SIZE: 9pt; FONT-FAMILY: 宋体; verdana: }.input1 {	BORDER-RIGHT: #085d3f 1px solid; BORDER-TOP: #085d3f 1px solid; BORDER-LEFT: #085d3f 1px solid; BORDER-BOTTOM: #085d3f 1px solid; BACKGROUND-COLOR: white}A {	FONT-SIZE: 9pt; TEXT-TRANSFORM: none; COLOR: #000000; TEXT-DECORATION: none}A.lefta {	FONT-SIZE: 9pt; TEXT-TRANSFORM: none; COLOR: #ffffff; TEXT-DECORATION: none}A.flink {	FONT-SIZE: 9pt; TEXT-TRANSFORM: none; COLOR: #000000; TEXT-DECORATION: none}A.lefta:hover {	COLOR: #c0c0c0; TEXT-DECORATION: none}A:hover {	COLOR: red; TEXT-DECORATION: none}A:visited {	TEXT-DECORATION: none}.smallsize {	FONT-SIZE: 9px; COLOR: #d9d9d9; FONT-FAMILY: "verdana"}LI {	FONT-SIZE: 9pt; LINE-HEIGHT: 15pt}.tt2 {	FONT-SIZE: 9pt; LINE-HEIGHT: 16pt}.tt1 {	FONT-SIZE: 14px}.tt3 {	FONT-SIZE: 9pt; LINE-HEIGHT: 13pt}A.hb {	FONT-SIZE: 9pt; COLOR: #000000; LINE-HEIGHT: 10pt}A.tt1 {	COLOR: #000000; TEXT-DECORATION: none}</style><BODY ><center><table width=750 border="0" cellspacing="0" cellpadding="0" align="center">  <tr>     <td>      <div align="center"><img src="http://www.douzhe.com/images/biglogo.gif" border=0 alt="Douzhe.com"><br>在 学 习 UNIX 的 道 路 上 有 南 非 蜘 蛛 陪 伴 所 以 不 寂 寞</div><br>    </td>  </tr>  <tr>     <td>            <TABLE cellSpacing=0 cellPadding=0 width="100%" border=0>              <TBODY>              <TR>                <TD width="100%" bgColor=#49ADE9 height=17>                <FONT color=#ffffff>&nbsp;&gt;&gt; <A href="http://www.douzhe.com"><FONT color=#ffffff>DouZhe.com</FONT></A> >                <A href="http://www.douzhe.com/bbs/forums.cgi?forum=4"><FONT color=#ffffff>SCO</FONT></A>                </TD>              </TR>              </TBODY>              </TABLE>      </td>  </tr></table><table width=750 border="0" cellspacing="0" cellpadding="0" align="center">  <tr>     <td><SPAN style="FONT-SIZE: 14px"><BR>            <CENTER><B>curses开发包的man_page </B></CENTER><BR></div>    </td>  </tr>  <tr>     <td>      <div align="center">作者:<a href=http://www.douzhe.com/bbs/profile.cgi?action=show&member=johnsilver target=_blank>johnsilver</a>  &nbsp;&nbsp;&nbsp;&nbsp;发表时间:2002/12/03 04:19pm</div><br>    </td>  </tr>    <tr>     <td align=center>            <TABLE cellSpacing=0 cellPadding=0 width="90%" border=0>              <TBODY>              <TR>		<td><SPAN style="FONT-SIZE: 14px">		这是第一篇,由于平时比较忙,所以只能利用晚上的时间来译,今后还会有其他的相关译出来.<br> &nbsp;curses(S)<br> &nbsp;*********<br> &nbsp;____________________________________________________________________________<br>curses-CRT屏幕处理与优化包<br>语法<br> &nbsp;======<br> &nbsp;cc ... -lcurses<br> &nbsp;#include &lt;curses.h&gt;<br>描述<br> &nbsp;===========<br> &nbsp;curses库例程为用户提供了一个独立于终端的、对更新字符屏幕进行合理优化的方法,使用这些例程的程序必须使用-lcurses选项进行编译。<br>curses包允许:<br> &nbsp; o 全屏幕,窗口和光条操纵<br> &nbsp; o 输出到窗口和光条<br> &nbsp; o读取终端输入<br> &nbsp; o控制终端与光标的输入和输出选项<br> &nbsp; o环境查询例程<br> &nbsp; o色彩操纵<br> &nbsp; o使用软标签键<br> &nbsp; o终端信息的存取<br> &nbsp; o使用低级curses例程<br> &nbsp;在使用任何一个处理窗口与屏幕的例程之前,必须调用initscr或newterm对例程进行初始化。<br>在退出前必须调用endwin例程。大多数交互的,面向屏幕的程序需要无回显的单字符输入,要达到此目的,要按以下顺序进行:<br> &nbsp;cbreak()&#59;<br> &nbsp;noecho()&#59;<br>也有多数程序会按这个顺序:<br> &nbsp;nonl()&#59;<br> &nbsp;intrflush(stdscr,FALSE)&#59;<br> &nbsp;keypad(stdscr,TRUE)&#59;<p>在你运行一个curses()程序前,如果终端定义了tab键宽度,则必须对其进行设置并在初始化串中输出,你可以在shell环境变量TERM输出后用命令tput_init来设置。(参见terminfo(F)和terminfo(M)以获取详细信息)。<br>curses()库允许你操纵叫做窗口的数据结构,窗口可以看作是二维的字符数组。此例程库提供了一个默认的窗口stdscr,就是整个终端的大小。你可以用newwin()来创建其他的窗口。<br>窗口由声明为WINDOW *的变量来引用。这些数据结构的操纵由在cursesr 的帮助文件中描述的例程来进行(这些例程均以&quot;curs_&quot;开头)。其中最基本的例程是move()和addch()。库中包含了这些例程的更为通用的版本,可以让你指定一个窗口。<br>在例程完成对一个窗口的维护后,调用refresh()告诉curses()使用户的屏幕看上去更象stdscr.窗口中的字符实际上是chtype类型(包括字符和属性数据)以便将有关字符的其他信息与每个字符一同存贮.<br>叫做光条(pad)的窗口同样可以维护.他们也是一些窗口,但可能不与屏幕中的一个可视的区域相关联.参考cur_pad(S)可得到更多的信息.<br>除了在屏幕上显示字符以外,你也可使用视频属性和色彩,输出加下划线的字符,反显的图象,或在支持彩色模式的终端上显示彩色字符.你还可输出带有删除线的字符.(line-drawing是批带有删除线还是指用线条画出的字符?)对于输入,curses()也可将方向键和功能键的转义序列译为单独的键值.视频属性,划线字符和输入键名,在curses.h中定义,如A_REVERSE, ACS_HLINE, 和 KEY_LEFT.<br>curses()中也有操纵彩色数字字符终端上色彩显示的例程.使用时,要先调用start_color(),通常是在initscr()后马上调用.彩色通常成对使用,称为色彩对.一个色彩对有一个前景色(字符颜色)和一个背景色(字符在其上显示的区域的颜色).<br>你在使用时要用init_pair()例程对一个色彩对进行初始化.初始化后,就能象使用其他视频属性一样使用在curses.h中定义的一个宏COLOR_PAIR(n).如果终端可以重新定义彩色,那么以下的例程很有用处:<br> &nbsp; o has_color根据终端是否支持彩色返回TRUE或FALSE.<br> &nbsp; o can_change_color()根据用户是否可以改变颜色返回TRUE或FALSE.<br> &nbsp; o color_content( )向用户报告在一个初始化的颜色中红绿蓝的数量.<br> &nbsp; o pair_content( )向用户报告当前的特定彩色对是如何定义的.<br> &nbsp; o init_color( ) 改变一个彩色的定义.<br>如果设置了环境变量LINES和COLUMNS ,或者如果程序在一个窗口环境中运行,则环境中的行列信息会覆盖由terminfo()读取的信息.在窗口环境中运行的程序需要这么做是因为屏幕是可以改变的.<br>如果设置了环境变量TERMINFO,则所有使用curses()的程序在标准位置查找终端定义的信息前,都要先查找本地的终端定义信息.比如,如果TERM设为wyse150,则编译的终端定义位于:<br>html.awk: part.03: 1917: Trying to use .nf indisplay, haventstarted.<br>fi &nbsp;1&gt;&amp;2 &nbsp;/usr/lib/terminfo/w/wyse150<br>(注:此处我有些看不懂,反复读了原文有N遍,怀疑是不是其manual_page页的问题,总之,如有问题,请指正,译者注)(w由wyse150的首字母拷贝而来,以免创建一个大目录),而如果TERMINFO设为$HOME/myterms,curses()首先查找$HOME/myterms/w/wyse150,如果失败,再查找/usr/lib/terminfo/w/wyse150 .这样做对于开发实验性的定义或者在/usr/lib/terminfo的写权限禁止时很有用.<br>整型变量LINES和COLS在curses.h中定义,而且由initscr()例程根据屏幕大小填写.常量TRUE值为1,FALSE值为0.<br>curses例程还定义了WINDOW *变量curscr,用在某些低级操作如清除或重写屏幕的操作中.但它只能在很少的几个例程中使用。<br>国际化功能<br> &nbsp;+++++++++++++++++++++++<br>对附加字符集,保存一个字符所需的字节数和列数是现场指定的.(LC_CTYPE类型)<br>你可以在字符种类表中指定它(指LC_CTYPE,译者注).使其在编辑时完全适于字符级操作.<br>但对于格式屏幕,在其上随意移动字符却并不太好.<br>覆盖字符的例程(如addch())工作于屏幕级别.用一个需要不同列数的字符覆盖另一个字符会导致产生奇数个数的列,这些列用背景字符填充.<br>插入字符的例程(如insch())工作于字符级别(即在字符的边界).一个新字符在当前字符的前面插入,无论光标当前指向字符的哪一列.在插入前,光标移动到字符的第一列.<br>删除字符的例程(如delch())同样工作于字符级别.光标当前指向的字符被删除,无论光标当前指向字符的哪一列.在删除前,光标移动到字符的第一列.<br>你不能把一个多列字符放到一行的最后一列上.如果你企图这样做,最后一列被设为背景字符.这样的操作也会产生由背景字符填充的奇数列.<br>在做了覆盖一个窗口的边缘的字符的操作后,会发生窗口的遮挡或覆盖.这果如果产生有奇数列,将与字符操作级别同样处理。<br>光标可放于窗口的任意位置.在插入或删除操作前,它先移动到一个多列字符的第一列.<br>例程与参数名称<br> &nbsp;++++++++++++++++++++++++++<br>许多curses()例程拥有两个或更多版本:<br> &nbsp; o前缀为p的例程需要一个pad参数.<br> &nbsp; o名字中有w的例程通常需要一个窗口参数或一个宽字符参数.如果w在一个例程名字中出现了两次,则该例程往往需要一个窗口参数和一个宽字符参数.<br> &nbsp; o不需要pad或window参数的例程一般使用stdscr.<br> &nbsp; o前缀为mv的需要一个(x,y)坐标以在操作前移动到该坐标处.这些mv例程在调用其他例程前隐含有一个对move()的调用,坐标y指(窗口的)行,x指列.左上角坐标是(0,0),而不是(1,1).<br> &nbsp; o前缀为mvw的例程接受一个窗口参数和一对(x,y)坐标,窗口参数总是出现在坐标之前.<br> &nbsp;在任何一种情形下,win是受影响的窗口,pad是受影响的光条,win和pad总是指向WINDOW类型的指针,设定选项的例程需要一个布尔型的标志bf,它有TRUE和FALSE两种状态&#59;该标志总是布尔型的.变量ch和attrs总是chtype类型.类型WINDOW,SCREEN,bool和chtype在curses.h中定义.类型TERMINAL在term.h中定义.其他所有的参数都是整型.许多例程可以通过将其作为嵌入宏的方式的加入优化.在编译时要使用:<br>cc ... -DPERFORMANCE 来明确指定.<br> &nbsp;例程名索引<br> &nbsp;++++++++++++++++++<br> &nbsp;下面的表格列出了每个curses例程名字和手册中对其详细描述的页面名<br> &nbsp; -------------------------------------------<br> &nbsp; curses Routine Name &nbsp;Manual Page Name<br> &nbsp; -------------------------------------------<br> &nbsp; addch &nbsp;curs_addch(S)<br> &nbsp; addchnstr &nbsp;curs_addchstr(S)<br> &nbsp; addchstr &nbsp;curs_addchstr(S)<br> &nbsp; addnstr &nbsp;curs_addstr(S)<br> &nbsp; addnwstr &nbsp;curs_addwstr(S)<br> &nbsp; addstr &nbsp;curs_addstr(S)<br> &nbsp; addwch &nbsp;curs_addwch(S)<br> &nbsp; addwchnstr &nbsp;curs_addwchstr(S)<br> &nbsp; addwchstr &nbsp;curs_addwchstr(S)<br> &nbsp; addwstr &nbsp;curs_addwstr(S)<br> &nbsp; attroff &nbsp;curs_attr(S)<br> &nbsp; attron &nbsp;curs_attr(S)<br> &nbsp; attrset &nbsp;curs_attr(S)<br> &nbsp; baudrate &nbsp;curs_termattrs(S)<br> &nbsp; beep &nbsp;curs_beep(S)<br> &nbsp; bkgd &nbsp;curs_bkgd(S)<br> &nbsp; bkgdset &nbsp;curs_bkgd(S)<br> &nbsp; border &nbsp;curs_border(S)<br> &nbsp; box &nbsp;curs_border(S)<br> &nbsp; can_change_color &nbsp;curs_color(S)<br> &nbsp; cbreak &nbsp;curs_inopts(S)<br> &nbsp; clear &nbsp;curs_clear(S)<br> &nbsp; clearok &nbsp;curs_outopts(S)<br> &nbsp; clrtobot &nbsp;curs_clear(S)<br> &nbsp; clrtoeol &nbsp;curs_clear(S)<br> &nbsp; color_content &nbsp;curs_color(S)<br> &nbsp; copywin &nbsp;curs_overlay(S)<br> &nbsp; curs_set &nbsp;curs_kernel(S)<br> &nbsp; def_prog_mode &nbsp;curs_kernel(S)<br> &nbsp; def_shell_mode &nbsp;curs_kernel(S)<br> &nbsp; del_curterm &nbsp;curs_terminfo(S)<br> &nbsp; delay_output &nbsp;curs_util(S)<br> &nbsp; delch &nbsp; &nbsp;curs_delch(S)<br> &nbsp; deleteln &nbsp;curs_deleteln(S)<br> &nbsp; delscreen &nbsp;curs_initscr(S)<br> &nbsp; delwin &nbsp;curs_window(S)<br> &nbsp; derwin &nbsp;curs_window(S)<br> &nbsp; doupdate &nbsp;curs_refresh(S)<br> &nbsp; draino &nbsp;curs_util(S)<br> &nbsp; dupwin &nbsp;curs_window(S)<br> &nbsp; echo &nbsp;curs_inopts(S)<br> &nbsp; echochar &nbsp;curs_addch(S)<br> &nbsp; echowchar &nbsp;curs_addwch(S)<br> &nbsp; endwin &nbsp;curs_initscr(S)<br> &nbsp; erase &nbsp; &nbsp;curs_clear(S)<br> &nbsp; erasechar &nbsp;curs_termattrs(S)<br> &nbsp; filter &nbsp;curs_util(S)<br> &nbsp; flash &nbsp;curs_beep(S)<br> &nbsp; flushinp &nbsp;curs_util(S)<br> &nbsp; getbegyx &nbsp;curs_getyx(S)<br> &nbsp; getch &nbsp; &nbsp;curs_getch(S)<br> &nbsp; getmaxyx &nbsp;curs_getyx(S)<br> &nbsp; getnwstr &nbsp;curs_getwstr(S)<br> &nbsp; getparyx &nbsp;curs_getyx(S)<br> &nbsp; getstr &nbsp;curs_getstr(S)<br> &nbsp; getsyx &nbsp;curs_kernel(S)<br> &nbsp; getwch &nbsp;curs_getwch(S)<br> &nbsp; getwin &nbsp;curs_util(S)<br> &nbsp; getwstr &nbsp;curs_getwstr(S)<br> &nbsp; getyx &nbsp; &nbsp;curs_getyx(S)<br> &nbsp; halfdelay &nbsp;curs_inopts(S)<br> &nbsp; has_colors &nbsp;curs_color(S)<br> &nbsp; has_ic &nbsp;curs_termattrs(S)<br> &nbsp; has_il &nbsp;curs_termattrs(S)<br> &nbsp; hline &nbsp; &nbsp;curs_border(S)<br> &nbsp; idcok &nbsp;curs_outopts(S)<br> &nbsp; idlok &nbsp;curs_outopts(S)<br> &nbsp; immedok &nbsp;curs_outopts(S)<br> &nbsp; inch &nbsp;curs_inch(S)<br> &nbsp; inchnstr &nbsp;curs_inchstr(S)<br> &nbsp; inchstr &nbsp;curs_inchstr(S)<br> &nbsp; init_color &nbsp;curs_color(S)<br> &nbsp; init_pair &nbsp;curs_color(S)<br> &nbsp; initscr &nbsp;curs_initscr(S)<br> &nbsp; innstr &nbsp;curs_instr(S)<br> &nbsp; innwstr &nbsp;curs_inwstr(S)<br> &nbsp; insch &nbsp;curs_insch(S)<br> &nbsp; insdelln &nbsp;curs_deleteln(S)<br> &nbsp; insertln &nbsp;curs_deleteln(S)<br> &nbsp; insnstr &nbsp;curs_insstr(S)<br> &nbsp; insnwstr &nbsp;curs_inswstr(S)<br> &nbsp; insstr &nbsp;curs_insstr(S)<br> &nbsp; instr &nbsp;curs_instr(S)<br> &nbsp; inswch &nbsp;curs_inswch(S)<br> &nbsp; inswstr &nbsp;curs_inswstr(S)<br> &nbsp; intrflush &nbsp;curs_inopts(S)<br> &nbsp; inwch &nbsp;curs_inwch(S)<br> &nbsp; inwchnstr &nbsp;curs_inwchstr(S)<br> &nbsp; inwchstr &nbsp;curs_inwchstr(S)<br> &nbsp; inwstr &nbsp;curs_inwstr(S)<br> &nbsp; is_linetouched &nbsp;curs_touch(S)<br> &nbsp; is_wintouched &nbsp;curs_touch(S)<br> &nbsp; isendwin &nbsp;curs_initscr(S)<br> &nbsp; keyname &nbsp;curs_util(S)<br> &nbsp; keypad &nbsp;curs_inopts(S)<br> &nbsp; killchar &nbsp;curs_termattrs(S)<br> &nbsp; leaveok &nbsp;curs_outopts(S)<br> &nbsp; longname &nbsp;curs_termattrs(S)<br> &nbsp; meta &nbsp;curs_inopts(S)<br> &nbsp; move &nbsp;curs_move(S)<br> &nbsp; mvaddch &nbsp;curs_addch(S)<br> &nbsp; mvaddchnstr &nbsp;curs_addchstr(S)<br> &nbsp; mvaddchstr &nbsp;curs_addchstr(S)<br> &nbsp; mvaddnstr &nbsp;curs_addstr(S)<br> &nbsp; mvaddnwstr &nbsp;curs_addwstr(S)<br> &nbsp; mvaddstr &nbsp;curs_addstr(S)<br> &nbsp; mvaddwch &nbsp;curs_addwch(S)<br> &nbsp; mvaddwchnstr &nbsp;curs_addwchstr(S)<br> &nbsp; mvaddwchstr &nbsp;curs_addwchstr(S)<br> &nbsp; mvaddwstr &nbsp;curs_addwstr(S)<br> &nbsp; mvcur &nbsp;curs_terminfo(S)<br> &nbsp; mvdelch &nbsp;curs_delch(S)<br> &nbsp; mvderwin &nbsp;curs_window(S)<br> &nbsp; mvgetch &nbsp;curs_getch(S)<br> &nbsp; mvgetnwstr &nbsp;curs_getwstr(S)<br> &nbsp; mvgetstr &nbsp;curs_getstr(S)<br> &nbsp; mvgetwch &nbsp;curs_getwch(S)<br> &nbsp; mvgetwstr &nbsp;curs_getwstr(S)<br> &nbsp; mvinch &nbsp;curs_inch(S)<br> &nbsp; mvinchnstr &nbsp;curs_inchstr(S)<br> &nbsp; mvinchstr &nbsp;curs_inchstr(S)<br> &nbsp; mvinnstr &nbsp;curs_instr(S)<br> &nbsp; mvinnwstr &nbsp;curs_inwstr(S)<br> &nbsp; mvinsch &nbsp;curs_insch(S)<br> &nbsp; mvinsnstr &nbsp;curs_insstr(S)<br> &nbsp; mvinsnwstr &nbsp;curs_inswstr(S)<br> &nbsp; mvinsstr &nbsp;curs_insstr(S)<br> &nbsp; mvinstr &nbsp;curs_instr(S)<br> &nbsp; mvinswch &nbsp;curs_inswch(S)<br> &nbsp; mvinswstr &nbsp;curs_inswstr(S)<br> &nbsp; mvinwch &nbsp;curs_inwch(S)<br> &nbsp; mvinwchnstr &nbsp;curs_inwchstr(S)<br> &nbsp; mvinwchstr &nbsp;curs_inwchstr(S)<br> &nbsp; mvinwstr &nbsp;curs_inwstr(S)<br> &nbsp; mvprintw &nbsp;curs_printw(S)<br> &nbsp; mvscanw &nbsp;curs_scanw(S)<br> &nbsp; mvwaddch &nbsp;curs_addch(S)<br> &nbsp; mvwaddchnstr &nbsp;curs_addchstr(S)<br> &nbsp; mvwaddchstr &nbsp;curs_addchstr(S)<br> &nbsp; mvwaddnstr &nbsp;curs_addstr(S)<br> &nbsp; mvwaddnwstr &nbsp;curs_addwstr(S)<br> &nbsp; mvwaddstr &nbsp;curs_addstr(S)<br> &nbsp; mvwaddwch &nbsp;curs_addwch(S)<br> &nbsp; mvwaddwchnstr &nbsp;curs_addwchstr(S)<br> &nbsp; mvwaddwchstr &nbsp;curs_addwchstr(S)<br> &nbsp; mvwaddwstr &nbsp;curs_addwstr(S)<br> &nbsp; mvwdelch &nbsp;curs_delch(S)<br> &nbsp; mvwgetch &nbsp;curs_getch(S)<br> &nbsp; mvwgetnwstr &nbsp;curs_getwstr(S)<br> &nbsp; mvwgetstr &nbsp;curs_getstr(S)<br> &nbsp; mvwgetwch &nbsp;curs_getwch(S)<br> &nbsp; mvwgetwstr &nbsp;curs_getwstr(S)<br> &nbsp; mvwin &nbsp;curs_window(S)<br> &nbsp; mvwinch &nbsp;curs_inch(S)<br> &nbsp; mvwinchnstr &nbsp;curs_inchstr(S)<br> &nbsp; mvwinchstr &nbsp;curs_inchstr(S)<br> &nbsp; mvwinnstr &nbsp;curs_instr(S)<br> &nbsp; mvwinnwstr &nbsp;curs_inwstr(S)<br> &nbsp; mvwinsch &nbsp;curs_insch(S)<br> &nbsp; mvwinsnstr &nbsp;curs_insstr(S)<br> &nbsp; mvwinsstr &nbsp;curs_insstr(S)<br> &nbsp; mvwinstr &nbsp;curs_instr(S)<br> &nbsp; mvwinswch &nbsp;curs_inswch(S)<br> &nbsp; mvwinswstr &nbsp;curs_inswstr(S)<br> &nbsp; mvwinwch &nbsp;curs_inwch(S)<br> &nbsp; mvwinwchnstr &nbsp;curs_inwchstr(S)<br> &nbsp; mvwinwchstr &nbsp;curs_inwchstr(S)<br> &nbsp; mvwinwstr &nbsp;curs_inwstr(S)<br> &nbsp; mvwprintw &nbsp;curs_printw(S)<br> &nbsp; mvwscanw &nbsp;curs_scanw(S)<br> &nbsp; napms &nbsp;curs_kernel(S)<br> &nbsp; newpad &nbsp;curs_pad(S)<br> &nbsp; newterm &nbsp;curs_initscr(S)<br> &nbsp; newwin &nbsp;curs_window(S)<br> &nbsp; nl &nbsp;curs_outopts(S)<br> &nbsp; nocbreak &nbsp;curs_inopts(S)<br> &nbsp; nodelay &nbsp;curs_inopts(S)<br> &nbsp; noecho &nbsp;curs_inopts(S)<br> &nbsp; nonl &nbsp;curs_outopts(S)<br> &nbsp; noqiflush &nbsp;curs_inopts(S)<br> &nbsp; noraw &nbsp;curs_inopts(S)<br> &nbsp; notimeout &nbsp;curs_inopts(S)<br> &nbsp; overlay &nbsp;curs_overlay(S)<br> &nbsp; overwrite &nbsp;curs_overlay(S)<br> &nbsp; pair_content &nbsp;curs_color(S)<br> &nbsp; pechochar &nbsp;curs_pad(S)<br> &nbsp; pechowchar &nbsp;curs_pad(S)<br> &nbsp; pnoutrefresh &nbsp;curs_pad(S)<br> &nbsp; prefresh &nbsp;curs_pad(S)<br> &nbsp; printw &nbsp;curs_printw(S)<br> &nbsp; putp &nbsp;curs_terminfo(S)<br> &nbsp; putwin &nbsp;curs_util(S)<br> &nbsp; qiflush &nbsp;curs_inopts(S)<br> &nbsp; raw &nbsp;curs_inopts(S)<br> &nbsp; redrawwin &nbsp;curs_refresh(S)<br> &nbsp; refresh &nbsp;curs_refresh(S)<br> &nbsp; reset_prog_mode &nbsp;curs_kernel(S)<br> &nbsp; reset_shell_mode &nbsp;curs_kernel(S)<br> &nbsp; resetty &nbsp;curs_kernel(S)<br> &nbsp; restartterm &nbsp;curs_terminfo(S)<br> &nbsp; ripoffline &nbsp;curs_kernel(S)<br> &nbsp; savetty &nbsp;curs_kernel(S)<br> &nbsp; scanw &nbsp;curs_scanw(S)<br> &nbsp; scr_dump &nbsp;curs_scr_dump(S)<br> &nbsp; scr_init &nbsp;curs_scr_dump(S)<br> &nbsp; scr_restore &nbsp;curs_scr_dump(S)<br> &nbsp; scr_set &nbsp;curs_scr_dump(S)<br> &nbsp; scrl &nbsp;curs_scroll(S)<br> &nbsp; scroll &nbsp;curs_scroll(S)<br> &nbsp; scrollok &nbsp;curs_outopts(S)<br> &nbsp; set_curterm &nbsp;curs_terminfo(S)<br> &nbsp; set_term &nbsp;curs_initscr(S)<br> &nbsp; setscrreg &nbsp;curs_outopts(S)<br> &nbsp; setsyx &nbsp;curs_kernel(S)<br> &nbsp; setterm &nbsp;curs_terminfo(S)<br> &nbsp; setupterm &nbsp;curs_terminfo(S)<br> &nbsp; slk_attroff &nbsp;curs_slk(S)<br> &nbsp; slk_attron &nbsp;curs_slk(S)<br> &nbsp; slk_attrset &nbsp;curs_slk(S)<br> &nbsp; slk_clear &nbsp;curs_slk(S)<br> &nbsp; slk_init &nbsp;curs_slk(S)<br> &nbsp; slk_label &nbsp;curs_slk(S)<br> &nbsp; slk_noutrefresh &nbsp;curs_slk(S)<br> &nbsp; slk_refresh &nbsp;curs_slk(S)<br> &nbsp; slk_restore &nbsp;curs_slk(S)<br> &nbsp; slk_set &nbsp;curs_slk(S)<br> &nbsp; slk_touch &nbsp;curs_slk(S)<br> &nbsp; standend &nbsp;curs_attr(S)<br> &nbsp; standout &nbsp;curs_attr(S)<br> &nbsp; start_color &nbsp;curs_color(S)<br> &nbsp; subpad &nbsp;curs_pad(S)<br> &nbsp; subwin &nbsp;curs_window(S)<br> &nbsp; syncok &nbsp;curs_window(S)<br> &nbsp; termattrs &nbsp;curs_termattrs(S)<br> &nbsp; termname &nbsp;curs_termattrs(S)<br> &nbsp; tgetent &nbsp;curs_termcap(S)<br> &nbsp; tgetflag &nbsp;curs_termcap(S)<br> &nbsp; tgetnum &nbsp;curs_termcap(S)<br> &nbsp; tgetstr &nbsp;curs_termcap(S)<br> &nbsp; tgoto &nbsp;curs_termcap(S)<br> &nbsp; tigetflag &nbsp;curs_terminfo(S)<br> &nbsp; tigetnum &nbsp;curs_terminfo(S)<br> &nbsp; tigetstr &nbsp;curs_terminfo(S)<br> &nbsp; timeout &nbsp;curs_inopts(S)<br> &nbsp; touchline &nbsp;curs_touch(S)<br> &nbsp; touchwin &nbsp;curs_touch(S)<br> &nbsp; tparm &nbsp;curs_terminfo(S)<br> &nbsp; tputs &nbsp;curs_termcap(S)<br> &nbsp; tputs &nbsp;curs_terminfo(S)<br> &nbsp; typeahead &nbsp;curs_inopts(S)<br> &nbsp; unctrl &nbsp;curs_util(S)<br> &nbsp; ungetch &nbsp;curs_getch(S)<br> &nbsp; ungetwch &nbsp;curs_getwch(S)<br> &nbsp; untouchwin &nbsp;curs_touch(S)<br> &nbsp; use_env &nbsp;curs_util(S)<br> &nbsp; vidattr &nbsp;curs_terminfo(S)<br> &nbsp; vidputs &nbsp;curs_terminfo(S)<br> &nbsp; vline &nbsp;curs_border(S)<br> &nbsp; vwprintw &nbsp;curs_printw(S)<br> &nbsp; vwscanw &nbsp;curs_scanw(S)<br> &nbsp; waddch &nbsp;curs_addch(S)<br> &nbsp; waddchnstr &nbsp;curs_addchstr(S)<br> &nbsp; waddchstr &nbsp;curs_addchstr(S)<br> &nbsp; waddnstr &nbsp;curs_addstr(S)<br> &nbsp; waddnwstr &nbsp;curs_addwstr(S)<br> &nbsp; waddstr &nbsp;curs_addstr(S)<br> &nbsp; waddwch &nbsp;curs_addwch(S)<br> &nbsp; waddwchnstr &nbsp;curs_addwchstr(S)<br> &nbsp; waddwchstr &nbsp;curs_addwchstr(S)<br> &nbsp; waddwstr &nbsp;curs_addwstr(S)<br> &nbsp; wattroff &nbsp;curs_attr(S)<br> &nbsp; wattron &nbsp;curs_attr(S)<br> &nbsp; wattrset &nbsp;curs_attr(S)<br> &nbsp; wbkgd &nbsp;curs_bkgd(S)<br> &nbsp; wbkgdset &nbsp;curs_bkgd(S)<br> &nbsp; wborder &nbsp;curs_border(S)<br> &nbsp; wclear &nbsp;curs_clear(S)<br> &nbsp; wclrtobot &nbsp;curs_clear(S)<br> &nbsp; wclrtoeol &nbsp;curs_clear(S)<br> &nbsp; wcursyncup &nbsp;curs_window(S)<br> &nbsp; wdelch &nbsp;curs_delch(S)<br> &nbsp; wdeleteln &nbsp;curs_deleteln(S)<br> &nbsp; wechochar &nbsp;curs_addch(S)<br> &nbsp; wechowchar &nbsp;curs_addwch(S)<br> &nbsp; werase &nbsp;curs_clear(S)<br> &nbsp; wgetch &nbsp;curs_getch(S)<br> &nbsp; wgetnstr &nbsp;curs_getstr(S)<br> &nbsp; wgetnwstr &nbsp;curs_getwstr(S)<br> &nbsp; wgetstr &nbsp;curs_getstr(S)<br> &nbsp; wgetwch &nbsp;curs_getwch(S)<br> &nbsp; wgetwstr &nbsp;curs_getwstr(S)<br> &nbsp; whline &nbsp;curs_border(S)<br> &nbsp; winch &nbsp;curs_inch(S)<br> &nbsp; winchnstr &nbsp;curs_inchstr(S)<br> &nbsp; winchstr &nbsp;curs_inchstr(S)<br> &nbsp; winnstr &nbsp;curs_instr(S)<br> &nbsp; winnwstr &nbsp;curs_inwstr(S)<br> &nbsp; winsch &nbsp;curs_insch(S)<br> &nbsp; winsdelln &nbsp;curs_deleteln(S)<br> &nbsp; winsertln &nbsp;curs_deleteln(S)<br> &nbsp; winsnstr &nbsp;curs_insstr(S)<br> &nbsp; winsnwstr &nbsp;curs_inswstr(S)<br> &nbsp; winsstr &nbsp;curs_insstr(S)<br> &nbsp; winstr &nbsp;curs_instr(S)<br> &nbsp; winswch &nbsp;curs_inswch(S)<br> &nbsp; winswstr &nbsp;curs_inswstr(S)<br> &nbsp; winwch &nbsp;curs_inwch(S)<br> &nbsp; winwchnstr &nbsp;curs_inwchstr(S)<br> &nbsp; winwchstr &nbsp;curs_inwchstr(S)<br> &nbsp; winwstr &nbsp;curs_inwstr(S)<br> &nbsp; wmove &nbsp;curs_move(S)<br> &nbsp; wnoutrefresh &nbsp;curs_refresh(S)<br> &nbsp; wprintw &nbsp;curs_printw(S)<br> &nbsp; wredrawln &nbsp;curs_refresh(S)<br> &nbsp; wrefresh &nbsp;curs_refresh(S)<br> &nbsp; wscanw &nbsp;curs_scanw(S)<br> &nbsp; wscrl &nbsp;curs_scroll(S)<br> &nbsp; wsetscrreg &nbsp;curs_outopts(S)<br> &nbsp; wstandend &nbsp;curs_attr(S)<br> &nbsp; wstandout &nbsp;curs_attr(S)<br> &nbsp; wsyncdown &nbsp;curs_window(S)<br> &nbsp; wsyncup &nbsp;curs_window(S)<br> &nbsp; wtimeout &nbsp;curs_inopts(S)<br> &nbsp; wtouchln &nbsp;curs_touch(S)<br> &nbsp; wvline &nbsp;curs_border(S)<br>返回值<br> &nbsp;=============<br>除非在例程描述中特别声明,否则,通常返回整数的例程返回ERR代表错误,返回非ERR的整数,通常是OK,代表成功.<br>除setscrreg( ), &nbsp;wsetscrreg( ), getyx(), getbegyx( ),and getmaxyx( )外, 所有的宏返回窗口版本值.这些例外的例程的返回值未定义,所以在分配语句中不要将其作为最好的方法.<br>返回指针的例程返回NULL代表出错.<br>警告<br>========<br>头文件curses.h自动包含有stdio.h和unctrl.h两个头文件.<br>文件<br>========<br>/usr/lib/libcurses.a<br>库文件<br> &nbsp;See also<br>参见<br>============<br>terminfo(F), terminfo(M), andcurs_*(S)获取更详细的例程描述<br>标准一致性<br> &nbsp;=====================<br>curses(S)不是任何当前支持标准的一部分&#59;它是由UNIX System Laboratories, Inc.开发且要经许可才能使用.<br> &nbsp;31_January_1995<br>Johnsilver译<br>2002/11/30<br>本人的E文能力一般,还望各位在此方面有专长的高手指教,愿与大家交朋友.<br>我的email:zkzxl@etang.com<br>		</SPAN>		</td>              </TR>              </TBODY>              </TABLE>    </td>  </tr> <table><table width=750 border="0" cellspacing="0" cellpadding="0" align="center">  <tr><td ><hr  size=1>此文章相关评论: <br>      </td>  </tr>  <tr><td>该文章有<font color=#ff0000>13</font>个相关评论如下:(<a href=http://www.douzhe.com/bbs/topic.cgi?forum=4&topic=14678 target=_blank><font Color=#ffa200>点这儿可以发表评论</font></a>)<br></td>  </tr>  <tr>     <td>            <TABLE cellSpacing=0 cellPadding=0 width="90%" border=0>              <TBODY>              <TR>		<td>			<table style='TABLE-LAYOUT: fixed' cellpadding=8 cellspacing=1 border=0 width=100%>        <tr>            <td bgcolor='#FFFFFF' rowspan=2 valign='top' width=20%><font color=#000000>            <b><a href=http://www.douzhe.com/bbs/profile.cgi?action=show&member=lcz88990200 target=_blank>lcz88990200</a></b></font></td>            <td bgcolor='#FFFFFF' ><font color=#000000><b>发表于: 2002/12/03 04:43pm</b><br></td>        </tr>        <tr>             <td bgcolor='#FFFFFF' style='LEFT: 0px; WIDTH: 100%; WORD-WRAP: break-word'>晚上来消化</td>        </tr>        <tr>            <td colspan=2 bgcolor='#EEEEEE' align=right>&nbsp;</td>        </tr>         </table>      	<table style='TABLE-LAYOUT: fixed' cellpadding=8 cellspacing=1 border=0 width=100%>        <tr>            <td bgcolor='#FFFFFF' rowspan=2 valign='top' width=20%><font color=#000000>

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -