SCCS-vsn: lib/libcurses/PSD.doc/doc.III 6.1
.\" All rights reserved. The Berkeley software License Agreement
.\" specifies the terms and conditions for redistribution.
.\"
.\" All rights reserved. The Berkeley software License Agreement
.\" specifies the terms and conditions for redistribution.
.\"
-.\" @(#)doc.III 5.1 (Berkeley) %G%
+.\" @(#)doc.III 6.1 (Berkeley) %G%
+.Fd baudrate "" \*m
+.De
+Returns the output baud rate of the terminal.
+This is a system dependent constant
+(defined in
+.b <sys/tty.h>
+on BSD systems,
+which is included by
+.b <curses.h> ).
+.Ds
.Fd delwin win
WINDOW *win;
.De
.Fd delwin win
WINDOW *win;
.De
when trapping rubouts via
.b signal (2).
.Ds
when trapping rubouts via
.b signal (2).
.Ds
+.Fd erasechar "" \*m
+.De
+Returns the erase character
+for the terminal,
+.i i.e. ,
+the character used by the user to erase a single character from the input.
+.Ds
+.Fd getcap str "" "char *"
+char *str;
+.De
+Return a pointer to the
+.b termcap
+capability described by
+.Vn str
+(see
+.b termcap (5)
+for details).
+.Ds
.Fd getyx win\*,y\*,x \*m
WINDOW *win;
int y\*,x;
.Fd getyx win\*,y\*,x \*m
WINDOW *win;
int y\*,x;
.Vn x .
.Ds
.Fd inch "" \*m
.Vn x .
.Ds
.Fd inch "" \*m
.Fd winch win \*m
WINDOW *win;
.De
Returns the character at the current \*(y
on the given window.
This does not make any changes to the window.
.Fd winch win \*m
WINDOW *win;
.De
Returns the character at the current \*(y
on the given window.
This does not make any changes to the window.
.Ds
.Fd initscr
.De
Initialize the screen routines.
This must be called before any of the screen routines are used.
It initializes the terminal-type data and such,
.Ds
.Fd initscr
.De
Initialize the screen routines.
This must be called before any of the screen routines are used.
It initializes the terminal-type data and such,
-and without it, none of the routines can operate.
+and without it none of the routines can operate.
If standard input is not a tty,
it sets the specifications to the terminal
whose name is pointed to by
If standard input is not a tty,
it sets the specifications to the terminal
whose name is pointed to by
is true,
.Vn Def\*_term
is always used.
is true,
.Vn Def\*_term
is always used.
+If the system supports the
+.b TIOCGWINSZ
+.Fn ioctl "" "" 2
+call,
+it is used to get the number of lines and columns for the terminal,
+otherwise it is taken from the
+.b termcap
+description.
+.Ds
+.Fd killchar "" \*m
+.De
+Returns the line kill character
+for the terminal,
+.i i.e. ,
+the character used by the user to erase an entire line from the input.
.Ds
.Fd leaveok win\*,boolf \*m
WINDOW *win;
.Ds
.Fd leaveok win\*,boolf \*m
WINDOW *win;
.Ds
.Fd longname termbuf\*,name
char *termbuf\*,*name;
.Ds
.Fd longname termbuf\*,name
char *termbuf\*,*name;
+.Fd fullname termbuf\*,name
+char *termbuf\*,*name;
-with the long (full) name of the terminal described by the termcap entry in
+with the long name of the terminal described by the
+.b termcap
+entry in
.Vn termbuf .
It is generally of little use,
but is nice for telling the user in a readable format what terminal
we think he has.
This is available in the global variable
.Vn ttytype .
.Vn termbuf .
It is generally of little use,
but is nice for telling the user in a readable format what terminal
we think he has.
This is available in the global variable
.Vn ttytype .
is usually set via the termlib routine
.Fn tgetent .
is usually set via the termlib routine
.Fn tgetent .
+.Fn fullname
+is the same as
+.Fn longname ,
+except that it gives the fullest name given in the entry,
+which can be quite verbose.
.Ds
.Fd mvwin win\*,y\*,x
WINDOW *win;
.Ds
.Fd mvwin win\*,y\*,x
WINDOW *win;
off the edge of the terminal screen,
.Fn mvwin
returns ERR and does not change anything.
off the edge of the terminal screen,
.Fn mvwin
returns ERR and does not change anything.
+For subwindows,
+.Fn mvwin
+also returns ERR if you attempt to move it off its main window.
+If you move a main window,
+all subwindows are moved along with it.
.Ds
.Fd newwin lines\*,cols\*,begin\*_y\*,begin\*_x "" "WINDOW *"
int lines\*,cols\*,begin\*_y\*,begin\*_x;
.Ds
.Fd newwin lines\*,cols\*,begin\*_y\*,begin\*_x "" "WINDOW *"
int lines\*,cols\*,begin\*_y\*,begin\*_x;
.Fn newwin . "" 0\*,0\*,0\*,0
.Ds
.Fd nl "" \*m
.Fn newwin . "" 0\*,0\*,0\*,0
.Ds
.Fd nl "" \*m
.Fd nonl "" \*m
.De
Set or unset the terminal to/from nl mode,
.Fd nonl "" \*m
.De
Set or unset the terminal to/from nl mode,
-i.e., start/stop the system from mapping
+.i i.e. ,
+start/stop the system from mapping
.b <RETURN>
to
.b <LINE-FEED> .
.b <RETURN>
to
.b <LINE-FEED> .
is FALSE, scrolling is not allowed.
This is its default setting.
.Ds
is FALSE, scrolling is not allowed.
This is its default setting.
.Ds
+.Fd touchline win\*,y\*,startx\*,endx
+WINDOW *win;
+int y\*,startx\*,endx;
+.De
+This function performs a function similar to
+.Fn touchwin
+on a single line.
+It marks the first change for the given line
+to be
+.Vn startx ,
+if it is before the current first change mark,
+and
+the last change mark is set to be
+.Vn endx
+if it is currently less than
+.Vn endx .
+.Ds
+.Fd touchoverlap win1\*,win2
+WINDOW *win1, *win2;
+.De
+Touch the window
+.Vn win2
+in the area which overlaps with
+.Vn win1 .
+If they do not overlap,
+no changes are made.
+.Ds
.Fd touchwin win
WINDOW *win;
.De
.Fd touchwin win
WINDOW *win;
.De
.Vn cols
columns starting at position
.Vn begin\*_y\*,begin\*_x ) (
.Vn cols
columns starting at position
.Vn begin\*_y\*,begin\*_x ) (
-in the middle of the window
.i win .
This means that any change made to either window
in the area covered
.i win .
This means that any change made to either window
in the area covered
Other letters stay just as they are.
To use
.Fn unctrl ,
Other letters stay just as they are.
To use
.Fn unctrl ,
.b #include\ <unctrl.h>
in your file.
.b #include\ <unctrl.h>
in your file.