remove dependency list
[unix-history] / usr / src / lib / libcurses / curses.3
CommitLineData
844471ae
KM
1.\" Copyright (c) 1980 Regents of the University of California.
2.\" All rights reserved. The Berkeley software License Agreement
3.\" specifies the terms and conditions for redistribution.
4.\"
35ced0c0 5.\" @(#)curses.3 6.3 (Berkeley) %G%
844471ae 6.\"
95bb4131 7.TH CURSES 3X ""
844471ae
KM
8.UC 4
9.SH NAME
10curses \- screen functions with ``optimal'' cursor motion
11.SH SYNOPSIS
12.B cc
35ced0c0 13[ flags ] files
844471ae 14.B \-lcurses \-ltermcap
35ced0c0 15[ libraries ]
844471ae 16.SH DESCRIPTION
eb74245b
KM
17These routines give the user a method of updating screens with reasonable
18optimization. They keep an image of the current screen,
19and the user sets up an image of a new one. Then the
844471ae 20.I refresh()
eb74245b
KM
21tells the routines to make the current screen look like the new one.
22In order to initialize the routines, the routine
844471ae 23.I initscr()
eb74245b
KM
24must be called before any of the other routines that deal with windows and
25screens are used. The routine
844471ae 26.I endwin()
35ced0c0 27should be called before exiting.
844471ae
KM
28.SH SEE ALSO
29.I "Screen Updating and Cursor Movement Optimization: A Library Package,"
30Ken Arnold,
31.br
eb74245b
KM
32ioctl(2),
33getenv(3),
34tty(4),
844471ae
KM
35termcap(5)
36.SH AUTHOR
37Ken Arnold
38.SH FUNCTIONS
39.nf
64f4641e
KM
40.ds w \fIwin\fP
41.ds s \fIstdscr\fP
844471ae
KM
42.ta 3i
43addch(ch) add a character to \*s
44addstr(str) add a string to \*s
45box(win,vert,hor) draw a box around a window
64f4641e 46cbreak() set cbreak mode
844471ae 47clear() clear \*s
64f4641e 48clearok(scr,boolf) set clear flag for \fIscr\fP
844471ae
KM
49clrtobot() clear to bottom on \*s
50clrtoeol() clear to end of line on \*s
51delch() delete a character
52deleteln() delete a line
53delwin(win) delete \*w
54echo() set echo mode
55endwin() end window modes
56erase() erase \*s
35ced0c0 57flusok(win,boolf) set flush-on-refresh flag for \fIwin\fP
844471ae 58getch() get a char through \*s
64f4641e 59getcap(name) get terminal capability \fIname\fP
844471ae
KM
60getstr(str) get a string through \*s
61gettmode() get tty modes
35ced0c0
KM
62getyx(win,y,x) get (y,x) co-ordinates
63inch() get char at current (y,x) co-ordinates
844471ae
KM
64initscr() initialize screens
65insch(c) insert a char
66insertln() insert a line
67leaveok(win,boolf) set leave flag for \*w
64f4641e 68longname(termbuf,name) get long name from \fItermbuf\fP
35ced0c0 69move(y,x) move to (y,x) on \*s
844471ae
KM
70mvcur(lasty,lastx,newy,newx) actually move cursor
71newwin(lines,cols,begin_y,begin_x)\ create a new window
72nl() set newline mapping
64f4641e 73nocbreak() unset cbreak mode
844471ae
KM
74noecho() unset echo mode
75nonl() unset newline mapping
76noraw() unset raw mode
77overlay(win1,win2) overlay win1 on win2
78overwrite(win1,win2) overwrite win1 on top of win2
79printw(fmt,arg1,arg2,...) printf on \*s
80raw() set raw mode
81refresh() make current screen look like \*s
82resetty() reset tty flags to stored value
83savetty() stored current tty flags
84scanw(fmt,arg1,arg2,...) scanf through \*s
85scroll(win) scroll \*w one line
86scrollok(win,boolf) set scroll flag
87setterm(name) set term variables for name
88standend() end standout mode
89standout() start standout mode
90subwin(win,lines,cols,begin_y,begin_x)\ create a subwindow
64f4641e
KM
91touchline(win,y,sx,ex) mark line \fIy\fP \fIsx\fP through \fIsy\fP as changed
92touchoverlap(win1,win2) mark overlap of \fIwin1\fP on \fIwin2\fP as changed
844471ae 93touchwin(win) \*(lqchange\*(rq all of \*w
64f4641e 94unctrl(ch) printable version of \fIch\fP
844471ae
KM
95waddch(win,ch) add char to \*w
96waddstr(win,str) add string to \*w
97wclear(win) clear \*w
98wclrtobot(win) clear to bottom of \*w
99wclrtoeol(win) clear to end of line on \*w
100wdelch(win,c) delete char from \*w
101wdeleteln(win) delete line from \*w
102werase(win) erase \*w
103wgetch(win) get a char through \*w
104wgetstr(win,str) get a string through \*w
35ced0c0 105winch(win) get char at current (y,x) in \*w
844471ae
KM
106winsch(win,c) insert char into \*w
107winsertln(win) insert line into \*w
35ced0c0 108wmove(win,y,x) set current (y,x) co-ordinates on \*w
844471ae
KM
109wprintw(win,fmt,arg1,arg2,...)\ printf on \*w
110wrefresh(win) make screen look like \*w
111wscanw(win,fmt,arg1,arg2,...)\ scanf through \*w
112wstandend(win) end standout mode on \*w
113wstandout(win) start standout mode on \*w
eb74245b 114.SH BUGS