BSD 4_4 development
[unix-history] / usr / share / man / cat3 / curses.0
CURSES(3) BSD Programmer's Manual CURSES(3)
N\bNA\bAM\bME\bE
c\bcu\bur\brs\bse\bes\bs - screen functions with ``optimal'' cursor motion
S\bSY\bYN\bNO\bOP\bPS\bSI\bIS\bS
c\bcc\bc [_\bf_\bl_\ba_\bg_\bs] _\bf_\bi_\bl_\be_\bs -\b-l\blc\bcu\bur\brs\bse\bes\bs -\b-l\blt\bte\ber\brm\bmc\bca\bap\bp [_\bl_\bi_\bb_\br_\ba_\br_\bi_\be_\bs]
D\bDE\bES\bSC\bCR\bRI\bIP\bPT\bTI\bIO\bON\bN
These routines give the user a method of updating screens with reasonable
optimization. They keep an image of the current screen, and the user
sets up an image of a new one. Then the r\bre\bef\bfr\bre\bes\bsh\bh() tells the routines to
make the current screen look like the new one. In order to initialize
the routines, the routine i\bin\bni\bit\bts\bsc\bcr\br() must be called before any of the oth-
er routines that deal with windows and screens are used. The routine
e\ben\bnd\bdw\bwi\bin\bn() should be called before exiting.
S\bSE\bEE\bE A\bAL\bLS\bSO\bO
ioctl(2), getenv(3), tty(4), termcap(5)
Ken Arnold, _\bS_\bc_\br_\be_\be_\bn _\bU_\bp_\bd_\ba_\bt_\bi_\bn_\bg _\ba_\bn_\bd _\bC_\bu_\br_\bs_\bo_\br _\bM_\bo_\bv_\be_\bm_\be_\bn_\bt _\bO_\bp_\bt_\bi_\bm_\bi_\bz_\ba_\bt_\bi_\bo_\bn_\b: _\bA _\bL_\bi_\bb_\br_\ba_\br_\by
_\bP_\ba_\bc_\bk_\ba_\bg_\be.
A\bAU\bUT\bTH\bHO\bOR\bR
Ken Arnold
F\bFU\bUN\bNC\bCT\bTI\bIO\bON\bNS\bS
addch(ch) add a character to _\bs_\bt_\bd_\bs_\bc_\br
addstr(str) add a string to _\bs_\bt_\bd_\bs_\bc_\br
box(win,vert,hor) draw a box around a window
cbreak() set cbreak mode
clear() clear _\bs_\bt_\bd_\bs_\bc_\br
clearok(scr,boolf) set clear flag for _\bs_\bc_\br
clrtobot() clear to bottom on _\bs_\bt_\bd_\bs_\bc_\br
clrtoeol() clear to end of line on
_\bs_\bt_\bd_\bs_\bc_\br
delch() delete a character
deleteln() delete a line
delwin(win) delete _\bs_\bt_\bd_\bs_\bc_\br
echo() set echo mode
endwin() end window modes
erase() erase _\bs_\bt_\bd_\bs_\bc_\br
flusok(win,boolf) set flush-on-refresh flag
for _\bw_\bi_\bn
getch() get a char through _\bs_\bt_\bd_\bs_\bc_\br
getcap(name) get terminal capability _\bn_\ba_\bm_\be
getstr(str) get a string through _\bs_\bt_\bd_\bs_\bc_\br
gettmode() get tty modes
getyx(win,y,x) get (y,x) co-ordinates
inch() get char at current (y,x)
co-ordinates
initscr() initialize screens
insch(c) insert a char
insertln() insert a line
leaveok(win,boolf) set leave flag for _\bs_\bt_\bd_\bs_\bc_\br
longname(termbuf,name) get long name from _\bt_\be_\br_\bm_\bb_\bu_\bf
move(y,x) move to (y,x) on _\bs_\bt_\bd_\bs_\bc_\br
mvcur(lasty,lastx,newy,newx) actually move cursor
newwin(lines,cols,begin_y,begin_x) create a new window
nl() set newline mapping
nocbreak() unset cbreak mode
noecho() unset echo mode
nonl() unset newline mapping
noraw() unset raw mode
overlay(win1,win2) overlay win1 on win2
overwrite(win1,win2) overwrite win1 on top of
win2
printw(fmt,arg1,arg2,...) printf on _\bs_\bt_\bd_\bs_\bc_\br
raw() set raw mode
refresh() make current screen look
like _\bs_\bt_\bd_\bs_\bc_\br
resetty() reset tty flags to stored
value
savetty() stored current tty flags
scanw(fmt,arg1,arg2,...) scanf through _\bs_\bt_\bd_\bs_\bc_\br
scroll(win) scroll _\bw_\bi_\bn one line
scrollok(win,boolf) set scroll flag
setterm(name) set term variables for name
standend() end standout mode
standout() start standout mode
subwin(win,lines,cols,begin_y,begin_x) create a subwindow
touchline(win,y,sx,ex) mark line _\by _\bs_\bx through _\bs_\by as
changed
touchoverlap(win1,win2) mark overlap of _\bw_\bi_\bn_\b1 on _\bw_\bi_\bn_\b2
as changed
touchwin(win) change all of _\bw_\bi_\bn
unctrl(ch) printable version of _\bc_\bh
waddch(win,ch) add char to _\bw_\bi_\bn
waddstr(win,str) add string to _\bw_\bi_\bn
wclear(win) clear _\bw_\bi_\bn
wclrtobot(win) clear to bottom of _\bw_\bi_\bn
wclrtoeol(win) clear to end of line on _\bw_\bi_\bn
wdelch(win,c) delete char from _\bw_\bi_\bn
wdeleteln(win) delete line from _\bw_\bi_\bn
werase(win) erase _\bw_\bi_\bn
wgetch(win) get a char through _\bw_\bi_\bn
wgetstr(win,str) get a string through _\bw_\bi_\bn
winch(win) get char at current (y,x) in
_\bw_\bi_\bn
winsch(win,c) insert char into _\bw_\bi_\bn
winsertln(win) insert line into _\bw_\bi_\bn
wmove(win,y,x) set current (y,x) co-
ordinates on _\bw_\bi_\bn
wprintw(win,fmt,arg1,arg2,...) printf on _\bw_\bi_\bn
wrefresh(win) make screen look like _\bw_\bi_\bn
wscanw(win,fmt,arg1,arg2,...) scanf through _\bw_\bi_\bn
wstandend(win) end standout mode on _\bw_\bi_\bn
wstandout(win) start standout mode on _\bw_\bi_\bn
H\bHI\bIS\bST\bTO\bOR\bRY\bY
The c\bcu\bur\brs\bse\bes\bs package appeared in 4.0BSD.
4th Berkeley Distribution June 4, 1993 2