*nix Documentation Project
·  Home
 +   man pages
·  Linux HOWTOs
·  FreeBSD Tips
·  *niX Forums

  man pages->Tru64 Unix man pages -> getnstr (3)              
Title
Content
Arch
Section
 

curs_getstr(3)

Contents


NAME    [Toc]    [Back]

       curs_getstr, getstr, getnstr, wgetstr, wgetnstr, mvgetstr,
       mvgetnstr, mvwgetstr, mvwgetnstr - Get  character  strings
       from a Curses terminal keyboard

SYNOPSIS    [Toc]    [Back]

       #include <curses.h>

       int getstr(
               char *str ); int getnstr(
               char *str,
               int n ); int wgetstr(
               WINDOW *win,
               char *str ); int wgetnstr(
               WINDOW *win,
               char *str,
               int n ); int mvgetstr(
               int y,
               int x,
               char *str ); int mvgetnstr(
               int y,
               int x,
               char *str,
               int n ); int mvwgetstr(
               WINDOW *win,
               int y,
               int x,
               char *str ); int mvwgetnstr(
               WINDOW *win,
               int y,
               int x,
               char *str,
               int n );

LIBRARY    [Toc]    [Back]

       Curses Library (libcurses)

STANDARDS    [Toc]    [Back]

       Interfaces  documented  on  this reference page conform to
       industry standards as follows:

       getnstr, wgetnstr, mvgetnstr, mvwgetnstr, getstr, wgetstr,
       mvgetstr, mvwgetstr:  XCURSES4.2

       Refer to the standards(5) reference page for more information
 about industry standards and associated tags.

DESCRIPTION    [Toc]    [Back]

       The effect of getstr is as though a  series  of  calls  to
       getch  were  made,  until  a newline or carriage return is
       received. The  resulting  value  is  placed  in  the  area
       pointed  to by the character pointer str. The getnstr routine
 reads at most n characters, thus preventing a  possible
  overflow  of  the  input buffer. The user's erase and
       kill characters are interpreted, as well  as  any  special
       keys  (such as function keys, "home" key, "clear" key, and
       so on).

       The mvgetstr routine is identical to getstr except that it
       is  as  though  it  is a call to move and then a series of
       calls to getch. The mvwgetstr routine is identical to getstr
  except  it  is  as though a call to wmove is made and
       then a series of call to wgetch. The mvgetnstr routine  is
       identical  to  getnstr except that it is as though it is a
       call to move and then a series  of  calls  to  getch.  The
       mvwgetnstr is identical to getnstr except it is a though a
       call to wmove is made  and  then  a  series  of  calls  to
       wgetch.

       The  getnstr, wgetnstr, mvgetnstr, and mvwgetnstr routines
       return only the entire multibyte sequence associated  with
       a  character.  If  the array is large enough to contain at
       least one character, the routines fill the array with complete
 characters. If the array is not large enough to contain
 at least one complete character, the routines fail.

NOTES    [Toc]    [Back]

       The header  file  <curses.h>  automatically  includes  the
       header file <stdio.h>.

       Note  that all routines except wgetstr and wgetnstr may be
       macros.

RETURN VALUES    [Toc]    [Back]

       All routines return the integer ERR upon  failure  and  OK
       upon successful completion.

SEE ALSO    [Toc]    [Back]

      
      
       Functions: curses(3), curs_getch(3)

       Others: standards(5)



                                                   curs_getstr(3)
[ Back ]
 Similar pages
Name OS Title
mvgetwstr Tru64 Get wchar_t character strings from a Curses terminal keyboard
getnstr OpenBSD accept character strings from curses terminal keyboard
curs_getstr FreeBSD accept character strings from curses terminal keyboard
curs_getwstr Tru64 Get wchar_t character strings from a Curses terminal keyboard
mvgetnstr OpenBSD accept character strings from curses terminal keyboard
wgetstr OpenBSD accept character strings from curses terminal keyboard
getwstr Tru64 Get wchar_t character strings from a Curses terminal keyboard
wgetwstr Tru64 Get wchar_t character strings from a Curses terminal keyboard
curs_getstr OpenBSD accept character strings from curses terminal keyboard
getstr OpenBSD accept character strings from curses terminal keyboard
Copyright © 2004-2005 DeniX Solutions SRL
newsletter delivery service