home *** CD-ROM | disk | FTP | other *** search
/ Usenet 1994 January / usenetsourcesnewsgroupsinfomagicjanuary1994.iso / sources / misc / volume1 / 8710 / pc-curses-doc / 4 / mvprintw.m < prev    next >
Encoding:
Text File  |  1993-09-02  |  2.2 KB  |  93 lines

  1. NAME
  2.     wprintw() printw() mvprintw() mvwprintw() - simulate the printf function
  3.     wscanw() scanw() mvscanw() mvwscanw() - simulate the scanf function
  4.     pblen() - return length of string
  5.  
  6. SYNOPSIS
  7.     #include <curses.h>
  8.     #include <curspriv.h>
  9.  
  10.     int wprintw(win,fmt,A1,A2,A3,A4,A5)
  11.     WINDOW *win;
  12.     char *fmt;
  13.     double A1,A2,A3,A4,A5;
  14.  
  15.     int printw(fmt,A1,A2,A3,A4,A5)
  16.     char *fmt;
  17.     double A1,A2,A3,A4,A5;
  18.  
  19.     int mvprintw(y,x,fmt,A1,A2,A3,A4,A5)
  20.     int y;
  21.     int x;
  22.     char *fmt;
  23.     double A1,A2,A3,A4,A5;
  24.  
  25.     int mvwprintw(win,y,x,fmt,A1,A2,A3,A4,A5)
  26.     WINDOW *win;
  27.     int y;
  28.     int x;
  29.     char *fmt;
  30.     double A1,A2,A3,A4,A5;
  31.  
  32.     int wscanw(win,fmt,A1,A2,A3,A4,A5)
  33.     WINDOW *win;
  34.     char *fmt;
  35.     double A1,A2,A3,A4,A5; /* really pointers */
  36.  
  37.     int scanw(fmt,A1,A2,A3,A4,A5)
  38.     char *fmt;
  39.     double A1,A2,A3,A4,A5; /* really pointers */
  40.  
  41.     int mvscanw(y,x,fmt,A1,A2,A3,A4,A5)
  42.     int y;
  43.     int x;
  44.     char *fmt;
  45.     double A1,A2,A3,A4,A5; /* really pointers */
  46.  
  47.     int mvwscanw(win,y,x,fmt,A1,A2,A3,A4,A5)
  48.     WINDOW *win;
  49.     int y;
  50.     int x;
  51.     char *fmt;
  52.     double A1,A2,A3,A4,A5; /* really pointers */
  53.  
  54.     static int pblen()
  55.  
  56. DESCRIPTION
  57.     wprintw() does a printf() in window 'win'.  
  58.  
  59.     printw() does a printf() in stdscr.  
  60.  
  61.     mvprintw() moves the stdscr cursor to a new posi-  
  62.     tion, then does a printf() in stdscr.  
  63.  
  64.     mvwprintw() moves the window 'win's cursor to  
  65.     a new position, then does a printf() in window 'win'.  
  66.  
  67.     wscanw() gets a string via window 'win', then  
  68.     scans the string using format 'fmt' to extract the values  
  69.     and put them in the variables pointed to the arguments.  
  70.  
  71.     scanw() gets a string via stdscr, then scans the  
  72.     string using format 'fmt' to extract the values and put them  
  73.     in the variables pointed to the arguments.  
  74.  
  75.     mvscanw() moves stdscr's cursor to a new posi-  
  76.     tion, then gets a string via stdscr and scans the string  
  77.     using format 'fmt' to extract the values and put them in the  
  78.     variables pointed to the arguments.  
  79.  
  80.     mvwscanw() moves window 'win's cursor to a  
  81.     new position, then gets a string via 'win' and scans the  
  82.     string using format 'fmt' to extract the values and put them  
  83.     in the variables pointed to the arguments.  
  84.  
  85.     pblen() returns the length of the string in printscanbuf.  
  86.  
  87. EXAMPLES
  88.  
  89. SEE ALSO
  90.     sprintf(); waddstr(); wmove(); wrefresh(); wgetstr(); sscanf()
  91.  
  92. BUGS
  93.