home *** CD-ROM | disk | FTP | other *** search
/ Fresh Fish 8 / FreshFishVol8-CD1.bin / gnu / man / cat3 / curses.0 < prev    next >
Text File  |  1993-12-07  |  7KB  |  133 lines

  1.  
  2. CURSES(3)                  UNIX Programmer's Manual                  CURSES(3)
  3.  
  4. NNAAMMEE
  5.      ccuurrsseess - screen functions with ``optimal'' cursor motion
  6.  
  7. SSYYNNOOPPSSIISS
  8.      cccc [_f_l_a_g_s] _f_i_l_e_s --llccuurrsseess --lltteerrmmccaapp [_l_i_b_r_a_r_i_e_s]
  9.  
  10. DDEESSCCRRIIPPTTIIOONN
  11.      These routines give the user a method of updating screens with reasonable
  12.      optimization.  They keep an image of the current screen, and the user
  13.      sets up an image of a new one.  Then the rreeffrreesshh() tells the routines to
  14.      make the current screen look like the new one.  In order to initialize
  15.      the routines, the routine iinniittssccrr() must be called before any of the oth­
  16.      er routines that deal with windows and screens are used.  The routine
  17.      eennddwwiinn() should be called before exiting.
  18.  
  19. SSEEEE AALLSSOO
  20.      ioctl(2),  getenv(3),  tty(4),  termcap(5)
  21.  
  22.      Ken Arnold, _S_c_r_e_e_n _U_p_d_a_t_i_n_g _a_n_d _C_u_r_s_o_r _M_o_v_e_m_e_n_t _O_p_t_i_m_i_z_a_t_i_o_n_: _A _L_i_b_r_a_r_y
  23.      _P_a_c_k_a_g_e.
  24.  
  25. AAUUTTHHOORR
  26.      Ken Arnold
  27.  
  28. FFUUNNCCTTIIOONNSS
  29.      addch(ch)                                    add a character to _s_t_d_s_c_r
  30.      addstr(str)                                  add a string to _s_t_d_s_c_r
  31.      box(win,vert,hor)                            draw a box around a window
  32.      cbreak()                                     set cbreak mode
  33.      clear()                                      clear _s_t_d_s_c_r
  34.      clearok(scr,boolf)                           set clear flag for _s_c_r
  35.      clrtobot()                                   clear to bottom on _s_t_d_s_c_r
  36.      clrtoeol()                                   clear to end of line on
  37.                                                   _s_t_d_s_c_r
  38.      delch()                                      delete a character
  39.      deleteln()                                   delete a line
  40.      delwin(win)                                  delete _s_t_d_s_c_r
  41.      echo()                                       set echo mode
  42.      endwin()                                     end window modes
  43.      erase()                                      erase _s_t_d_s_c_r
  44.      flusok(win,boolf)                            set flush­on­refresh flag
  45.                                                   for _w_i_n
  46.      getch()                                      get a char through _s_t_d_s_c_r
  47.      getcap(name)                                 get terminal capability _n_a_m_e
  48.      getstr(str)                                  get a string through _s_t_d_s_c_r
  49.      gettmode()                                   get tty modes
  50.      getyx(win,y,x)                               get (y,x) co­ordinates
  51.      inch()                                       get char at current (y,x)
  52.                                                   co­ordinates
  53.      initscr()                                    initialize screens
  54.      insch(c)                                     insert a char
  55.      insertln()                                   insert a line
  56.      leaveok(win,boolf)                           set leave flag for _s_t_d_s_c_r
  57.      longname(termbuf,name)                       get long name from _t_e_r_m_b_u_f
  58.      move(y,x)                                    move to (y,x) on _s_t_d_s_c_r
  59.      mvcur(lasty,lastx,newy,newx)                 actually move cursor
  60.      newwin(lines,cols,begin_y,begin_x)           create a new window
  61.      nl()                                         set newline mapping
  62.      nocbreak()                                   unset cbreak mode
  63.      noecho()                                     unset echo mode
  64.  
  65.  
  66.      nonl()                                       unset newline mapping
  67.      noraw()                                      unset raw mode
  68.      overlay(win1,win2)                           overlay win1 on win2
  69.      overwrite(win1,win2)                         overwrite win1 on top of
  70.                                                   win2
  71.      printw(fmt,arg1,arg2,...)                    printf on _s_t_d_s_c_r
  72.      raw()                                        set raw mode
  73.      refresh()                                    make current screen look
  74.                                                   like _s_t_d_s_c_r
  75.      resetty()                                    reset tty flags to stored
  76.                                                   value
  77.      savetty()                                    stored current tty flags
  78.      scanw(fmt,arg1,arg2,...)                     scanf through _s_t_d_s_c_r
  79.      scroll(win)                                  scroll _w_i_n one line
  80.      scrollok(win,boolf)                          set scroll flag
  81.      setterm(name)                                set term variables for name
  82.      standend()                                   end standout mode
  83.      standout()                                   start standout mode
  84.      subwin(win,lines,cols,begin_y,begin_x)       create a subwindow
  85.      touchline(win,y,sx,ex)                       mark line _y _s_x through _s_y as
  86.                                                   changed
  87.      touchoverlap(win1,win2)                      mark overlap of _w_i_n_1 on _w_i_n_2
  88.                                                   as changed
  89.      touchwin(win)                                change all of _w_i_n
  90.      unctrl(ch)                                   printable version of _c_h
  91.      waddch(win,ch)                               add char to _w_i_n
  92.      waddstr(win,str)                             add string to _w_i_n
  93.      wclear(win)                                  clear _w_i_n
  94.      wclrtobot(win)                               clear to bottom of _w_i_n
  95.      wclrtoeol(win)                               clear to end of line on _w_i_n
  96.      wdelch(win,c)                                delete char from _w_i_n
  97.      wdeleteln(win)                               delete line from _w_i_n
  98.      werase(win)                                  erase _w_i_n
  99.      wgetch(win)                                  get a char through _w_i_n
  100.      wgetstr(win,str)                             get a string through _w_i_n
  101.      winch(win)                                   get char at current (y,x) in
  102.                                                   _w_i_n
  103.      winsch(win,c)                                insert char into _w_i_n
  104.      winsertln(win)                               insert line into _w_i_n
  105.      wmove(win,y,x)                               set current (y,x) co­
  106.                                                   ordinates on _w_i_n
  107.      wprintw(win,fmt,arg1,arg2,...)               printf on _w_i_n
  108.      wrefresh(win)                                make screen look like _w_i_n
  109.      wscanw(win,fmt,arg1,arg2,...)                scanf through _w_i_n
  110.      wstandend(win)                               end standout mode on _w_i_n
  111.      wstandout(win)                               start standout mode on _w_i_n
  112.  
  113. HHIISSTTOORRYY
  114.      The ccuurrsseess package appeared in 4.0BSD.
  115.  
  116. 4th Berkeley Distribution       April 19, 1991                               2
  117.  
  118.  
  119.  
  120.  
  121.  
  122.  
  123.  
  124.  
  125.  
  126.  
  127.  
  128.  
  129.  
  130.  
  131.  
  132.  
  133.