Annotation of cci/usr/src/man/man3/curses.3x, revision 1.1.1.1

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

unix.superglobalmegacorp.com

This archive runs on limited infrastructure. Preserving old code on modern bandwidth. Automated agents are requested to crawl responsibly.