?? curses.3x
字號(hào):
.\" SCCSID: @(#)curses.3x 8.1 9/11/90.TH curses 3x.SH Namecurses \- screen functions with optimal cursor motion.SH Syntax.B cc[ flags ] files.B \-lcurses \-ltermcap[ libraries ].SH Description.NXR "curses package".NXR "screen" "updating".NXR "terminal" "updating screen".NXR "cursor" "optimizing movement"These routines give the user a method of updating screens with reasonableoptimization. They keep an image of the current screen,and the user sets up an image of a new one. Then the .PN refreshsubroutine tells the routines to make the current screen look like the new one.To initialize the routines, the routine.PN initscrmust be called before anyof the other routines that deal with windows andscreens are used. The routine.PN endwinshould be called before exiting..SH Functions.NXR "curses package" "subroutine list".NXR "addch subroutine" .NXR "addstr subroutine".NXR "box subroutine".NXR "crmode subroutine".NXR "clear subroutine".NXR "clearok subroutine".NXR "clrtobot subroutine".NXR "clrtoeol subroutine".NXR "delch subroutine".NXR "deleteln subroutine".NXR "delwin subroutine".NXR "echo subroutine".NXR "endwin subroutine".NXR "erase subroutine (curses)".NXR "getch subroutine".NXR "getcap subroutine".NXR "getstr subroutine".NXR "gettmode subroutine".NXR "getyx subroutine".NXR "inch subroutine".NXR "initscr subroutine".NXR "insch subroutine".NXR "insertln subroutine".NXR "leaveok subroutine".NXR "longname subroutine".NXR "move subroutine (curses)".NXR "mvcur subroutine".NXR "newwin subroutine".NXR "nl subroutine".NXR "nocrmode subroutine".NXR "noecho subroutine".nf.ds w \fIwin\fR.ds s \fIstdscr\fR.ta 3iaddch(ch) add a character to \*saddstr(str) add a string to \*sbox(win,vert,hor) draw a box around a windowclear() clear \*sclearok(scr,boolf) set clear flag for \fIscr\fRclrtobot() clear to bottom on \*sclrtoeol() clear to end of line on \*scrmode() set cbreak modedelch() delete a characterdeleteln() delete a linedelwin(win) delete \*wecho() set echo modeendwin() end window modeserase() erase \*sgetch() get a char through \*sgetcap(name) get terminal capability \fIname\fRgetstr(str) get a string through \*sgettmode() get tty modesgetyx(win,y,x) get (y,x) co-ordinatesinch() get char at current (y,x) co-ordinatesinitscr() initialize screensinsch(c) insert a charinsertln() insert a lineleaveok(win,boolf) set leave flag for \*wlongname(termbuf,name) get long name from \fItermbuf\fRmove(y,x) move to (y,x) on \*smvcur(lasty,lastx,newy,newx) actually move cursornewwin(lines,cols,begin_y,begin_x)\ create a new windownl() set newline mappingnocrmode() unset cbreak modenoecho() unset echo mode.NXR "nonl subroutine".NXR "noraw subroutine".NXR "overlay subroutine".NXR "overwrite subroutine".NXR "printw subroutine".NXR "raw subroutine".NXR "refresh subroutine".NXR "resetty subroutine".NXR "savetty subroutine".NXR "scanw subroutine".NXR "scroll subroutine".NXR "scrollok subroutine".NXR "setterm subroutine".NXR "standend subroutine".NXR "standout subroutine".NXR "subwin subroutine".NXR "touchwin subroutine".NXR "unctrl subroutine".NXR "waddch subroutine".NXR "waddstr subroutine".NXR "wclear subroutine".NXR "wclrtobot subroutine".NXR "wclrtoeol subroutine".NXR "wdelch subroutine".NXR "wdeleteln subroutine".NXR "werase subroutine".NXR "wgetch subroutine".NXR "wgetstr subroutine".NXR "winch subroutine".NXR "winsch subroutine".NXR "winsertln subroutine".NXR "wmove subroutine".NXR "wprintw subroutine".NXR "wrefresh subroutine".NXR "wscanw subroutine".NXR "wstandend subroutine".NXR "wstandout subroutine"nonl() unset newline mappingnoraw() unset raw modeoverlay(win1,win2) overlay win1 on win2overwrite(win1,win2) overwrite win1 on top of win2printw(fmt,arg1,arg2,...) printf on \*sraw() set raw moderefresh() make current screen look like \*sresetty() reset tty flags to stored valuesavetty() stored current tty flagsscanw(fmt,arg1,arg2,...) scanf through \*sscroll(win) scroll \*w one linescrollok(win,boolf) set scroll flagsetterm(name) set term variables for namestandend() end standout modestandout() start standout modesubwin(win,lines,cols,begin_y,begin_x)\ create a subwindowtouchwin(win) \*(lqchange\*(rq all of \*wunctrl(ch) printable version of \fIch\fRwaddch(win,ch) add char to \*wwaddstr(win,str) add string to \*wwclear(win) clear \*wwclrtobot(win) clear to bottom of \*wwclrtoeol(win) clear to end of line on \*wwdelch(win,c) delete char from \*wwdeleteln(win) delete line from \*wwerase(win) erase \*wwgetch(win) get a char through \*wwgetstr(win,str) get a string through \*wwinch(win) get char at current (y,x) in \*wwinsch(win,c) insert char into \*wwinsertln(win) insert line into \*wwmove(win,y,x) set current (y,x) co-ordinates on \*wwprintw(win,fmt,arg1,arg2,...)\ printf on \*wwrefresh(win) make screen look like \*wwscanw(win,fmt,arg1,arg2,...)\ scanf through \*wwstandend(win) end standout mode on \*wwstandout(win) start standout mode on \*w.SH See Alsoioctl(2), getenv(3), termcap(3x), tty(4), termcap(5).br.I Screen Updating and Cursor Movement Optimization: A Library Package,.I ULTRIX Supplementary DocumentsVol. II:Programmer
?? 快捷鍵說明
復(fù)制代碼
Ctrl + C
搜索代碼
Ctrl + F
全屏模式
F11
切換主題
Ctrl + Shift + D
顯示快捷鍵
?
增大字號(hào)
Ctrl + =
減小字號(hào)
Ctrl + -