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

  1. NAME
  2.     wgetstr() getstr() mvgetstr() mvwgetstr() - reads in a string
  3.                             terminated by \n or \r  
  4.     backchar() - character delete with screen erase
  5.  
  6. SYNOPSIS
  7.     #include <curses.h>
  8.     #include <curspriv.h>
  9.  
  10.     int wgetstr(win,str)
  11.     WINDOW *win; 
  12.     char *str;
  13.  
  14.     int getstr(str)
  15.     char *str;
  16.  
  17.     int mvgetstr(y,x,str)
  18.     int y;
  19.     int x;
  20.     char *str;
  21.  
  22.     int mvwgetstr(win,y,x,str)
  23.     WINDOW *win;
  24.     int y;
  25.     int x;
  26.     char *str;
  27.  
  28.     static char *backchar(s)
  29.     char *s;
  30.  
  31. DESCRIPTION
  32.     wgetstr() reads in a string (terminated by \n or \r)  
  33.     to the buffer pointed to by 'str', and displays the input  
  34.     in window 'win'. The user's erase and kill characters are  
  35.     active.  
  36.  
  37.     getstr() reads in a string (terminated by \n or \r) to  
  38.     the buffer pointed to by 'str', and displays the input in  
  39.     stdscr. The user's erase and kill characters are active.  
  40.  
  41.     mvgetstr() moves the stdscr cursor to a new position,  
  42.     then reads in a string (terminated by \n or \r) to the buf-  
  43.     fer pointed to by 'str', and displays the input in stdscr.  
  44.     The user's erase and kill characters are active.  
  45.  
  46.     mvwgetstr() moves the 'win' cursor to a new  
  47.     position, then reads in a string (terminated by \n or \r)  
  48.     to the buffer pointed to by 'str', and displays the input in  
  49.     stdscr. The user's erase and kill characters are active.  
  50.  
  51.     backchar() does a character delete with screen erase, even  
  52.     up to previous lines. It will not back-scroll if the begi-  
  53.     ning of the string has scrolled off the window. Steps back  
  54.     pointer 's', and returns the new value.  
  55.  
  56. EXAMPLES
  57.  
  58. SEE ALSO
  59.     wrefresh(); getch(); waddch(); wmove(); waddstr(); mvwaddch()
  60.  
  61. BUGS
  62.