home *** CD-ROM | disk | FTP | other *** search
- NAME
- wgetstr() getstr() mvgetstr() mvwgetstr() - reads in a string
- terminated by \n or \r
- backchar() - character delete with screen erase
-
- SYNOPSIS
- #include <curses.h>
- #include <curspriv.h>
-
- int wgetstr(win,str)
- WINDOW *win;
- char *str;
-
- int getstr(str)
- char *str;
-
- int mvgetstr(y,x,str)
- int y;
- int x;
- char *str;
-
- int mvwgetstr(win,y,x,str)
- WINDOW *win;
- int y;
- int x;
- char *str;
-
- static char *backchar(s)
- char *s;
-
- DESCRIPTION
- wgetstr() reads in a string (terminated by \n or \r)
- to the buffer pointed to by 'str', and displays the input
- in window 'win'. The user's erase and kill characters are
- active.
-
- getstr() reads in a string (terminated by \n or \r) to
- the buffer pointed to by 'str', and displays the input in
- stdscr. The user's erase and kill characters are active.
-
- mvgetstr() moves the stdscr cursor to a new position,
- then reads in a string (terminated by \n or \r) to the buf-
- fer pointed to by 'str', and displays the input in stdscr.
- The user's erase and kill characters are active.
-
- mvwgetstr() moves the 'win' cursor to a new
- position, then reads in a string (terminated by \n or \r)
- to the buffer pointed to by 'str', and displays the input in
- stdscr. The user's erase and kill characters are active.
-
- backchar() does a character delete with screen erase, even
- up to previous lines. It will not back-scroll if the begi-
- ning of the string has scrolled off the window. Steps back
- pointer 's', and returns the new value.
-
- EXAMPLES
-
- SEE ALSO
- wrefresh(); getch(); waddch(); wmove(); waddstr(); mvwaddch()
-
- BUGS
-