home *** CD-ROM | disk | FTP | other *** search
/ Usenet 1994 January / usenetsourcesnewsgroupsinfomagicjanuary1994.iso / sources / misc / volume1 / 8710 / pc-curses-doc / 2 / addch.m next >
Encoding:
Text File  |  1993-09-02  |  1.1 KB  |  57 lines

  1. NAME
  2.     newline() - line advance
  3.     waddch() addch() mvaddch() mvwaddch() - insert a character
  4.  
  5. SYNOPSIS
  6.     #include <curses.h>
  7.     #include <curspriv.h>
  8.  
  9.     static short newline(win, lin)
  10.     WINDOW *win;
  11.     short lin;
  12.  
  13.     int waddch(win, c)
  14.     register WINDOW *win;
  15.     char c;
  16.  
  17.     int addch(c)
  18.     char c;
  19.  
  20.     int mvaddch(y,x,c)
  21.     int x;
  22.     int y;
  23.     char c;
  24.  
  25.     int mvwaddch(win,y,x,c)
  26.     WINDOW *win;
  27.     int x;
  28.     int y;
  29.     char c;
  30.  
  31. DESCRIPTION
  32.     newline() does line advance and returns the new cursor line.  
  33.     If error, return -1.  
  34.  
  35.     waddch() inserts character 'c' at the current cursor posi-  
  36.     tion in window 'win', and takes any actions as dictated by  
  37.     the character.  
  38.  
  39.     addch() inserts character 'c' at the current cursor posi-  
  40.     tion in stdscr, and takes any actions as dictated by the  
  41.     character.  
  42.  
  43.     mvaddch() moves to position in stdscr, then inserts charac-  
  44.     ter 'c' at that point, and takes any actions as dictated by  
  45.     the character.  
  46.  
  47.     mvwaddch() moves to position in window 'win', then inserts  
  48.     character 'c' at that point in the window, and takes any  
  49.     actions as dictated by the character.  
  50.  
  51. EXAMPLES
  52.  
  53. SEE ALSO
  54.     scroll(), switch(), waddch(), newline(), wmove()
  55.  
  56. BUGS
  57.