[comp.sources.misc] PC curses manual pages - Part 4/4

steve@cit5.cit.oz.AU (Steve Balogh) (10/09/87)

#! /bin/sh
# This is a shell archive, meaning:
# 1. Remove everything above the #! /bin/sh line.
# 2. Save the resulting text in a file.
# 3. Execute the file with /bin/sh (not csh) to create the files.
# This archive created: Wed Oct  7 17:49:38 EST 1987
# Archived by: Steve Balogh - steve%cit5.cit.oz@uunet.uu.net
export PATH; PATH=/bin:$PATH
echo shar: extracting "'makelinks'" '(2553 characters)'
if test -f 'makelinks'
then
	echo shar: will not over-write existing file "'makelinks'"
else
sed 's/^X//' << \SHAR_EOF > 'makelinks'
Xln beep.m flash.m
Xln move.m wmove.m
Xln erase.m werase.m
Xln tabsize.m wtabsize.m
Xln clear.m wclear.m
Xln setscrreg.m wsetscrreg.m
Xln overlay.m overwrite.m
Xln wnoutrefresh.m refresh.m
Xln wnoutrefresh.m wrefresh.m
Xln inch.m mvinch.m
Xln inch.m mvwinch.m
Xln inch.m winch.m
Xln box.m wbox.m
Xln clrtoeol.m mvclrtoeol.m
Xln clrtoeol.m mvwclrtoeol.m
Xln clrtoeol.m wclrtoeol.m
Xln cbreak.m crmode.m
Xln cbreak.m echo.m
Xln cbreak.m nocbreak.m
Xln cbreak.m nocrmode.m
Xln cbreak.m noecho.m
Xln cbreak.m noraw.m
Xln cbreak.m raw.m
Xln cbreak.m refrbrk.m
Xln clrbot.m mvclrtobot.m
Xln clrbot.m mvwclrtobot.m
Xln clrbot.m wclrtobot.m
Xln insertln.m mvinsertln.m
Xln insertln.m mvwinsertln.m
Xln insertln.m winsertln.m
Xln insch.m mvinsch.m
Xln insch.m mvwinsch.m
Xln insch.m winsch.m
Xln fixterm.m baudrate.m
Xln fixterm.m erasechar.m
Xln fixterm.m gettmode.m
Xln fixterm.m killchar.m
Xln fixterm.m resetterm.m
Xln fixterm.m resetty.m
Xln fixterm.m saveoldterm.m
Xln fixterm.m saveterm.m
Xln fixterm.m savetty.m
Xln fixterm.m setterm.m
Xln fixterm.m setupterm.m
Xln addstr.m mvaddstr.m
Xln addstr.m mvwaddstr.m
Xln addstr.m waddstr.m
Xln deleteln.m mvdeleteln.m
Xln deleteln.m mvwdeleteln.m
Xln deleteln.m wdeleteln.m
Xln delch.m mvdelch.m
Xln delch.m mvwdelch.m
Xln delch.m wdelch.m
Xln addch.m mvaddch.m
Xln addch.m mvwaddch.m
Xln addch.m newline.m
Xln addch.m waddch.m
Xln makenew.m newwin.m
Xln makenew.m subwin.m
Xln wattron.m attroff.m
Xln wattron.m attron.m
Xln wattron.m attrset.m
Xln wattron.m standend.m
Xln wattron.m standout.m
Xln wattron.m wattroff.m
Xln wattron.m wattrset.m
Xln wattron.m wstandend.m
Xln wattron.m wstandout.m
Xln backchar.m getstr.m
Xln backchar.m mvgetstr.m
Xln backchar.m mvwgetstr.m
Xln backchar.m wgetstr.m
Xln clearscreen.m clrupdate.m
Xln clearscreen.m doupdate.m
Xln clearscreen.m gotoxy.m
Xln clearscreen.m putchar.m
Xln clearscreen.m transformlin.m
X/*ln clearscreen.m transformline.m     only if >14char filenames allowed*/
Xln clearok.m cursoff.m
Xln clearok.m curson.m
Xln clearok.m idlok.m
Xln clearok.m keypad.m
Xln clearok.m leaveok.m
Xln clearok.m meta.m
Xln clearok.m nodelay.m
Xln clearok.m scrollok.m
Xln flushinp.m cursespendch.m
X/*ln flushinp.m _cursespendch.m        only if >14char filenames allowed*/
Xln flushinp.m getch.m
Xln flushinp.m mvgetch.m
Xln flushinp.m mvwgetch.m
Xln flushinp.m rawgetch.m
Xln flushinp.m sysgetch.m
Xln flushinp.m validchar.m
Xln flushinp.m wgetch.m
Xln flushinp.m wungetch.m
Xln mvprintw.m mvscanw.m
Xln mvprintw.m mvwprintw.m
Xln mvprintw.m mvwscanw.m
Xln mvprintw.m pblen.m
Xln mvprintw.m printw.m
Xln mvprintw.m scanw.m
Xln mvprintw.m wprintw.m
Xln mvprintw.m wscanw.m
SHAR_EOF
if test 2553 -ne "`wc -c < 'makelinks'`"
then
	echo shar: error transmitting "'makelinks'" '(should have been 2553 characters)'
fi
fi # end of overwriting check
echo shar: extracting "'makenew.m'" '(1179 characters)'
if test -f 'makenew.m'
then
	echo shar: will not over-write existing file "'makenew.m'"
else
sed 's/^X//' << \SHAR_EOF > 'makenew.m'
XNAME
X	makenew() newwin() subwin() - create a new window or subwindow
X
XSYNOPSIS
X	#include <stdio.h>
X	#include <curses.h>
X	#include <curspriv.h>
X
X	static WINDOW *makenew(num_lines, num_columns, begy, begx)
X	int num_lines, num_columns, begy, begx;
X
X	WINDOW *newwin(num_lines, num_columns, begy, begx)
X	int num_lines, num_columns, begy, begx;
X
X	WINDOW *subwin(orig, num_lines, num_columns, begy, begx)
  
X	WINDOW *orig;
  
X	int num_lines, num_columns, begy, begx;
  
X
XDESCRIPTION
X	makenew() allocates all data for a new window except the  
X	actual lines themselves.  
X
X	newwin() creates a new window with size num_lines * num_co-  
X	lumns, and origin begx,begy relative to the SCREEN. Special  
X	case: if num_lines and/or num_columns is 0, the remainder of  
X	the screen is used.  
X
X	subwin() creates a sub-window in the 'orig' window, with  
X	size num_lines * num_columns, and with origin begx, begy  
X	relative to the SCREEN. Special case: if num_lines and/or  
X	num_columns is 0, the remainder of the original window is  
X	used. The subwindow uses the original window's line buffers  
X	to store it's own lines.  
X
XEXAMPLES
X
XSEE ALSO
X	malloc(); sizeof(); calloc(); free();  
X
XBUGS
SHAR_EOF
if test 1179 -ne "`wc -c < 'makenew.m'`"
then
	echo shar: error transmitting "'makenew.m'" '(should have been 1179 characters)'
fi
fi # end of overwriting check
echo shar: extracting "'move.m'" '(335 characters)'
if test -f 'move.m'
then
	echo shar: will not over-write existing file "'move.m'"
else
sed 's/^X//' << \SHAR_EOF > 'move.m'
XNAME
X	wmove() move() - move the cursor
X
XSYNOPSIS
X	#include <curses.h>
X	#include <curspriv.h>
X
X	int wmove(win,y,x)
X	WINDOW *win;
X	int y;
X	int x;
X
X	int move(y,x)
X	int y;
X	int x;
X
XDESCRIPTION
X	wmove() moves the cursor in window 'win' to position (x,y).  
X
X	move() moves the cursor in stdscr to position (x,y).  
X
XEXAMPLES
X
XSEE ALSO
X
XBUGS
SHAR_EOF
if test 335 -ne "`wc -c < 'move.m'`"
then
	echo shar: error transmitting "'move.m'" '(should have been 335 characters)'
fi
fi # end of overwriting check
echo shar: extracting "'mvcur.m'" '(299 characters)'
if test -f 'mvcur.m'
then
	echo shar: will not over-write existing file "'mvcur.m'"
else
sed 's/^X//' << \SHAR_EOF > 'mvcur.m'
XNAME
X	mvcur() - move the display cursor
X
XSYNOPSIS
X	#include <curses.h>
X	#include <curspriv.h>
X
X	int mvcur(oldy,oldx,newy,newx)
X	int oldy;
X	int oldx;
X	int newy;
X	int newx;
X
XDESCRIPTION
X	mvcur(oldy,oldx,newy,newx) moves the display cursor to <newy,newx>  
X
XEXAMPLES
X
XSEE ALSO
X	_cursescursor()  
X
XBUGS
SHAR_EOF
if test 299 -ne "`wc -c < 'mvcur.m'`"
then
	echo shar: error transmitting "'mvcur.m'" '(should have been 299 characters)'
fi
fi # end of overwriting check
echo shar: extracting "'mvgetch.m'" '(2223 characters)'
if test -f 'mvgetch.m'
then
	echo shar: will not over-write existing file "'mvgetch.m'"
else
sed 's/^X//' << \SHAR_EOF > 'mvgetch.m'
XNAME
X	getch() - ***same as wgetch()*** see curses.h
X	wgetch() flushinp() wungetch() mvgetch() mvwgetch() rawgetch() 
X	sysgetch() validchar() _cursespendch() - manipulate input characters
X
XSYNOPSIS
X	#include <curses.h>
X	#include <curspriv.h>
X
X	int wgetch(win)
X	WINDOW *win;
X
X	void flushinp()
X
X	int wungetch(ch)
X	int ch;
X
X	int mvgetch(y,x)
X	int y;
X	int x;
X
X	int mvwgetch(win,y,x)
X	WINDOW *win;
X	int y;
X	int x;
X
X	static int rawgetch()
X
X	static int sysgetch()
X
X	static int validchar(c)
X	int c;
X
X	bool _cursespendch()
X
XDESCRIPTION
X	wgetch(win) gets a character from the terminal, in normal,  
X	cbreak or raw mode, optionally echoing to window 'win'.  
X
X	flushinp() kills any pending input characters.  
X
X	wungetch() pushes back it's argument on the input stream. If  
X	OK, returns 1, otherwise returns 0.  
X
X	mvgetch() first moves the stdscr cursor to a new location,  
X	then does a wgetch() on stdscr.  
X
X	mvwgetch() first moves the cursor of window 'win' to a new  
X	location, then does a wgetch() in 'win'.  
X
X	rawgetch() gets a character without any interpretation at  
X	all and returns it. If keypad mode is active for the desig-  
X	nated window, function key translation will be performed.  
X	Otherwise, function keys are ignored.If nodelay mode is  
X	active in the window, then rawgetch() returns -1 if no cha-  
X	racter is available.  
X
X	sysgetch() gets a character with normal ^S, ^Q, ^P and ^C  
X	interpretation and returns it. If keypad mode is active for  
X	the designated window, function key translation will be per-  
X	formed. Otherwise, function keys are ignored. If nodelay  
X	mode is active in the window, then sysgetch() returns -1 if  
X	no character is available.  
X
X	validchar(c) checks that 'c' is a valid character, and  
X	if so returns it, with function key translation applied if  
X	'w' has keypad mode set. If char is invalid, returns -1.  
X
X	_cursespendch() returns 1 if there is any character avai-  
X	lable, and 0 if there is none. this is not for programmer  
X	usage, but for the updatew routines.  
X
XEXAMPLES
X
XSEE ALSO
X	rawgetch(); _cursesgcb(); _cursesscb(); sysgetch(); _cursesscb();
X	waddch(); wrefresh(); _curseskey(); kbhit(); getch(); wmove();
X	wgetch(); _curseskeytst(); validchar();
X
XBUGS
SHAR_EOF
if test 2223 -ne "`wc -c < 'mvgetch.m'`"
then
	echo shar: error transmitting "'mvgetch.m'" '(should have been 2223 characters)'
fi
fi # end of overwriting check
echo shar: extracting "'mvprintw.m'" '(2275 characters)'
if test -f 'mvprintw.m'
then
	echo shar: will not over-write existing file "'mvprintw.m'"
else
sed 's/^X//' << \SHAR_EOF > 'mvprintw.m'
XNAME
X	wprintw() printw() mvprintw() mvwprintw() - simulate the printf function
X	wscanw() scanw() mvscanw() mvwscanw() - simulate the scanf function
X	pblen() - return length of string
X
XSYNOPSIS
X	#include <curses.h>
X	#include <curspriv.h>
X
X	int wprintw(win,fmt,A1,A2,A3,A4,A5)
X	WINDOW *win;
X	char *fmt;
X	double A1,A2,A3,A4,A5;
X
X	int printw(fmt,A1,A2,A3,A4,A5)
X	char *fmt;
X	double A1,A2,A3,A4,A5;
X
X	int mvprintw(y,x,fmt,A1,A2,A3,A4,A5)
X	int y;
X	int x;
X	char *fmt;
X	double A1,A2,A3,A4,A5;
X
X	int mvwprintw(win,y,x,fmt,A1,A2,A3,A4,A5)
X	WINDOW *win;
X	int y;
X	int x;
X	char *fmt;
X	double A1,A2,A3,A4,A5;
X
X	int wscanw(win,fmt,A1,A2,A3,A4,A5)
X	WINDOW *win;
X	char *fmt;
X	double A1,A2,A3,A4,A5; /* really pointers */
X
X	int scanw(fmt,A1,A2,A3,A4,A5)
X	char *fmt;
X	double A1,A2,A3,A4,A5; /* really pointers */
X
X	int mvscanw(y,x,fmt,A1,A2,A3,A4,A5)
X	int y;
X	int x;
X	char *fmt;
X	double A1,A2,A3,A4,A5; /* really pointers */
X
X	int mvwscanw(win,y,x,fmt,A1,A2,A3,A4,A5)
X	WINDOW *win;
X	int y;
X	int x;
X	char *fmt;
X	double A1,A2,A3,A4,A5; /* really pointers */
X
X	static int pblen()
X
XDESCRIPTION
X	wprintw() does a printf() in window 'win'.  
X
X	printw() does a printf() in stdscr.  
X
X	mvprintw() moves the stdscr cursor to a new posi-  
X	tion, then does a printf() in stdscr.  
X
X	mvwprintw() moves the window 'win's cursor to  
X	a new position, then does a printf() in window 'win'.  
X
X	wscanw() gets a string via window 'win', then  
X	scans the string using format 'fmt' to extract the values  
X	and put them in the variables pointed to the arguments.  
X
X	scanw() gets a string via stdscr, then scans the  
X	string using format 'fmt' to extract the values and put them  
X	in the variables pointed to the arguments.  
X
X	mvscanw() moves stdscr's cursor to a new posi-  
X	tion, then gets a string via stdscr and scans the string  
X	using format 'fmt' to extract the values and put them in the  
X	variables pointed to the arguments.  
X
X	mvwscanw() moves window 'win's cursor to a  
X	new position, then gets a string via 'win' and scans the  
X	string using format 'fmt' to extract the values and put them  
X	in the variables pointed to the arguments.  
X
X	pblen() returns the length of the string in printscanbuf.  
X
XEXAMPLES
X
XSEE ALSO
X	sprintf(); waddstr(); wmove(); wrefresh(); wgetstr(); sscanf()
X
XBUGS
SHAR_EOF
if test 2275 -ne "`wc -c < 'mvprintw.m'`"
then
	echo shar: error transmitting "'mvprintw.m'" '(should have been 2275 characters)'
fi
fi # end of overwriting check
echo shar: extracting "'mvwgetch.m'" '(2223 characters)'
if test -f 'mvwgetch.m'
then
	echo shar: will not over-write existing file "'mvwgetch.m'"
else
sed 's/^X//' << \SHAR_EOF > 'mvwgetch.m'
XNAME
X	getch() - ***same as wgetch()*** see curses.h
X	wgetch() flushinp() wungetch() mvgetch() mvwgetch() rawgetch() 
X	sysgetch() validchar() _cursespendch() - manipulate input characters
X
XSYNOPSIS
X	#include <curses.h>
X	#include <curspriv.h>
X
X	int wgetch(win)
X	WINDOW *win;
X
X	void flushinp()
X
X	int wungetch(ch)
X	int ch;
X
X	int mvgetch(y,x)
X	int y;
X	int x;
X
X	int mvwgetch(win,y,x)
X	WINDOW *win;
X	int y;
X	int x;
X
X	static int rawgetch()
X
X	static int sysgetch()
X
X	static int validchar(c)
X	int c;
X
X	bool _cursespendch()
X
XDESCRIPTION
X	wgetch(win) gets a character from the terminal, in normal,  
X	cbreak or raw mode, optionally echoing to window 'win'.  
X
X	flushinp() kills any pending input characters.  
X
X	wungetch() pushes back it's argument on the input stream. If  
X	OK, returns 1, otherwise returns 0.  
X
X	mvgetch() first moves the stdscr cursor to a new location,  
X	then does a wgetch() on stdscr.  
X
X	mvwgetch() first moves the cursor of window 'win' to a new  
X	location, then does a wgetch() in 'win'.  
X
X	rawgetch() gets a character without any interpretation at  
X	all and returns it. If keypad mode is active for the desig-  
X	nated window, function key translation will be performed.  
X	Otherwise, function keys are ignored.If nodelay mode is  
X	active in the window, then rawgetch() returns -1 if no cha-  
X	racter is available.  
X
X	sysgetch() gets a character with normal ^S, ^Q, ^P and ^C  
X	interpretation and returns it. If keypad mode is active for  
X	the designated window, function key translation will be per-  
X	formed. Otherwise, function keys are ignored. If nodelay  
X	mode is active in the window, then sysgetch() returns -1 if  
X	no character is available.  
X
X	validchar(c) checks that 'c' is a valid character, and  
X	if so returns it, with function key translation applied if  
X	'w' has keypad mode set. If char is invalid, returns -1.  
X
X	_cursespendch() returns 1 if there is any character avai-  
X	lable, and 0 if there is none. this is not for programmer  
X	usage, but for the updatew routines.  
X
XEXAMPLES
X
XSEE ALSO
X	rawgetch(); _cursesgcb(); _cursesscb(); sysgetch(); _cursesscb();
X	waddch(); wrefresh(); _curseskey(); kbhit(); getch(); wmove();
X	wgetch(); _curseskeytst(); validchar();
X
XBUGS
SHAR_EOF
if test 2223 -ne "`wc -c < 'mvwgetch.m'`"
then
	echo shar: error transmitting "'mvwgetch.m'" '(should have been 2223 characters)'
fi
fi # end of overwriting check
echo shar: extracting "'mvwin.m'" '(305 characters)'
if test -f 'mvwin.m'
then
	echo shar: will not over-write existing file "'mvwin.m'"
else
sed 's/^X//' << \SHAR_EOF > 'mvwin.m'
XNAME
X	mvwin() - move window to another position on the screen.  
X
XSYNOPSIS
X	#include <curses.h>
X	#include <curspriv.h>
X
X	int mvwin(win, begy, begx)
X	WINDOW *win;
X	int begy, begx;
X
XDESCRIPTION
X	mvwin() moves window 'win' to position (begx, begy) on the  
X	screen.  
X
XEXAMPLES
X
XSEE ALSO
X	touchwin()  
X
XBUGS
SHAR_EOF
if test 305 -ne "`wc -c < 'mvwin.m'`"
then
	echo shar: error transmitting "'mvwin.m'" '(should have been 305 characters)'
fi
fi # end of overwriting check
echo shar: extracting "'overlay.m'" '(559 characters)'
if test -f 'overlay.m'
then
	echo shar: will not over-write existing file "'overlay.m'"
else
sed 's/^X//' << \SHAR_EOF > 'overlay.m'
XNAME
X	overlay() overwrite() - overwrites old window with new window
X
XSYNOPSIS
X	#include <curses.h>
X	#include <curspriv.h>
X
X	void overlay(win1, win2)
X	WINDOW *win1, *win2;
X
X	void overwrite(win1, win2)
X	WINDOW *win1, *win2;
X
XDESCRIPTION
X	overlay() overwrites 'win1' upon 'win2', with origins alig-  
X	ned. Overlay is transparent; blanks from 'win1' are not  
X	copied to 'win2'.  
X
X	overwrite() overwrites 'win1' upon 'win2', with origins  
X	aligned. Overwrite is non-transparent; blanks from 'win1'  
X	are copied to 'win2'.  
X
XEXAMPLES
X
XSEE ALSO
X	min()  
X
XBUGS
SHAR_EOF
if test 559 -ne "`wc -c < 'overlay.m'`"
then
	echo shar: error transmitting "'overlay.m'" '(should have been 559 characters)'
fi
fi # end of overwriting check
echo shar: extracting "'rawgetch.m'" '(2223 characters)'
if test -f 'rawgetch.m'
then
	echo shar: will not over-write existing file "'rawgetch.m'"
else
sed 's/^X//' << \SHAR_EOF > 'rawgetch.m'
XNAME
X	getch() - ***same as wgetch()*** see curses.h
X	wgetch() flushinp() wungetch() mvgetch() mvwgetch() rawgetch() 
X	sysgetch() validchar() _cursespendch() - manipulate input characters
X
XSYNOPSIS
X	#include <curses.h>
X	#include <curspriv.h>
X
X	int wgetch(win)
X	WINDOW *win;
X
X	void flushinp()
X
X	int wungetch(ch)
X	int ch;
X
X	int mvgetch(y,x)
X	int y;
X	int x;
X
X	int mvwgetch(win,y,x)
X	WINDOW *win;
X	int y;
X	int x;
X
X	static int rawgetch()
X
X	static int sysgetch()
X
X	static int validchar(c)
X	int c;
X
X	bool _cursespendch()
X
XDESCRIPTION
X	wgetch(win) gets a character from the terminal, in normal,  
X	cbreak or raw mode, optionally echoing to window 'win'.  
X
X	flushinp() kills any pending input characters.  
X
X	wungetch() pushes back it's argument on the input stream. If  
X	OK, returns 1, otherwise returns 0.  
X
X	mvgetch() first moves the stdscr cursor to a new location,  
X	then does a wgetch() on stdscr.  
X
X	mvwgetch() first moves the cursor of window 'win' to a new  
X	location, then does a wgetch() in 'win'.  
X
X	rawgetch() gets a character without any interpretation at  
X	all and returns it. If keypad mode is active for the desig-  
X	nated window, function key translation will be performed.  
X	Otherwise, function keys are ignored.If nodelay mode is  
X	active in the window, then rawgetch() returns -1 if no cha-  
X	racter is available.  
X
X	sysgetch() gets a character with normal ^S, ^Q, ^P and ^C  
X	interpretation and returns it. If keypad mode is active for  
X	the designated window, function key translation will be per-  
X	formed. Otherwise, function keys are ignored. If nodelay  
X	mode is active in the window, then sysgetch() returns -1 if  
X	no character is available.  
X
X	validchar(c) checks that 'c' is a valid character, and  
X	if so returns it, with function key translation applied if  
X	'w' has keypad mode set. If char is invalid, returns -1.  
X
X	_cursespendch() returns 1 if there is any character avai-  
X	lable, and 0 if there is none. this is not for programmer  
X	usage, but for the updatew routines.  
X
XEXAMPLES
X
XSEE ALSO
X	rawgetch(); _cursesgcb(); _cursesscb(); sysgetch(); _cursesscb();
X	waddch(); wrefresh(); _curseskey(); kbhit(); getch(); wmove();
X	wgetch(); _curseskeytst(); validchar();
X
XBUGS
SHAR_EOF
if test 2223 -ne "`wc -c < 'rawgetch.m'`"
then
	echo shar: error transmitting "'rawgetch.m'" '(should have been 2223 characters)'
fi
fi # end of overwriting check
echo shar: extracting "'scroll.m'" '(324 characters)'
if test -f 'scroll.m'
then
	echo shar: will not over-write existing file "'scroll.m'"
else
sed 's/^X//' << \SHAR_EOF > 'scroll.m'
XNAME
X	scroll() - scroll the scrolling region of window.
X
XSYNOPSIS
X	#include <curses.h>
X	#include <curspriv.h>
X
X	void scroll(win)
X	WINDOW *win;
X
XDESCRIPTION
X	scroll() scrolls the scrolling region of 'win', but only if  
X	scrolling is allowed and if the cursor is inside the scrol-  
X	ling region.  
X
XEXAMPLES
X
XSEE ALSO
X
XBUGS
SHAR_EOF
if test 324 -ne "`wc -c < 'scroll.m'`"
then
	echo shar: error transmitting "'scroll.m'" '(should have been 324 characters)'
fi
fi # end of overwriting check
echo shar: extracting "'setscrreg.m'" '(495 characters)'
if test -f 'setscrreg.m'
then
	echo shar: will not over-write existing file "'setscrreg.m'"
else
sed 's/^X//' << \SHAR_EOF > 'setscrreg.m'
XNAME
X	wsetscrreg() setscrreg() - set scrolling region of window
X
XSYNOPSIS
X	#include <curses.h>
X	#include <curspriv.h>
X
X	int wsetscrreg(win, top, bottom)
X	WINDOW *win;
X	int top;
X	int bottom;
X
X	int setscrreg(top, bottom)
X	int top;
X	int bottom;
X
XDESCRIPTION
X	wsetscrreg() set the scrolling region of window 'win' to in-  
X	clude all lines between 'top' and 'bottom'.  
X
X	setscrreg() set the scrolling region of stdscr to include  
X	all lines between 'top' and 'bottom'.  
X
XEXAMPLES
X
XSEE ALSO
X
XBUGS
SHAR_EOF
if test 495 -ne "`wc -c < 'setscrreg.m'`"
then
	echo shar: error transmitting "'setscrreg.m'" '(should have been 495 characters)'
fi
fi # end of overwriting check
echo shar: extracting "'sysgetch.m'" '(2223 characters)'
if test -f 'sysgetch.m'
then
	echo shar: will not over-write existing file "'sysgetch.m'"
else
sed 's/^X//' << \SHAR_EOF > 'sysgetch.m'
XNAME
X	getch() - ***same as wgetch()*** see curses.h
X	wgetch() flushinp() wungetch() mvgetch() mvwgetch() rawgetch() 
X	sysgetch() validchar() _cursespendch() - manipulate input characters
X
XSYNOPSIS
X	#include <curses.h>
X	#include <curspriv.h>
X
X	int wgetch(win)
X	WINDOW *win;
X
X	void flushinp()
X
X	int wungetch(ch)
X	int ch;
X
X	int mvgetch(y,x)
X	int y;
X	int x;
X
X	int mvwgetch(win,y,x)
X	WINDOW *win;
X	int y;
X	int x;
X
X	static int rawgetch()
X
X	static int sysgetch()
X
X	static int validchar(c)
X	int c;
X
X	bool _cursespendch()
X
XDESCRIPTION
X	wgetch(win) gets a character from the terminal, in normal,  
X	cbreak or raw mode, optionally echoing to window 'win'.  
X
X	flushinp() kills any pending input characters.  
X
X	wungetch() pushes back it's argument on the input stream. If  
X	OK, returns 1, otherwise returns 0.  
X
X	mvgetch() first moves the stdscr cursor to a new location,  
X	then does a wgetch() on stdscr.  
X
X	mvwgetch() first moves the cursor of window 'win' to a new  
X	location, then does a wgetch() in 'win'.  
X
X	rawgetch() gets a character without any interpretation at  
X	all and returns it. If keypad mode is active for the desig-  
X	nated window, function key translation will be performed.  
X	Otherwise, function keys are ignored.If nodelay mode is  
X	active in the window, then rawgetch() returns -1 if no cha-  
X	racter is available.  
X
X	sysgetch() gets a character with normal ^S, ^Q, ^P and ^C  
X	interpretation and returns it. If keypad mode is active for  
X	the designated window, function key translation will be per-  
X	formed. Otherwise, function keys are ignored. If nodelay  
X	mode is active in the window, then sysgetch() returns -1 if  
X	no character is available.  
X
X	validchar(c) checks that 'c' is a valid character, and  
X	if so returns it, with function key translation applied if  
X	'w' has keypad mode set. If char is invalid, returns -1.  
X
X	_cursespendch() returns 1 if there is any character avai-  
X	lable, and 0 if there is none. this is not for programmer  
X	usage, but for the updatew routines.  
X
XEXAMPLES
X
XSEE ALSO
X	rawgetch(); _cursesgcb(); _cursesscb(); sysgetch(); _cursesscb();
X	waddch(); wrefresh(); _curseskey(); kbhit(); getch(); wmove();
X	wgetch(); _curseskeytst(); validchar();
X
XBUGS
SHAR_EOF
if test 2223 -ne "`wc -c < 'sysgetch.m'`"
then
	echo shar: error transmitting "'sysgetch.m'" '(should have been 2223 characters)'
fi
fi # end of overwriting check
echo shar: extracting "'tabsize.m'" '(429 characters)'
if test -f 'tabsize.m'
then
	echo shar: will not over-write existing file "'tabsize.m'"
else
sed 's/^X//' << \SHAR_EOF > 'tabsize.m'
XNAME
X	wtabsize() tabsize(ts) - set the tabsize and return the original value  
X
XSYNOPSIS
X	#include <curses.h>
X	#include <curspriv.h>
X
X	int wtabsize(win,ts)
X	WINDOW *win;
X	int ts;
X
X	int tabsize(ts)
X	int ts;
X
XDESCRIPTION
X	wtabsize(win,ts) sets the tabsize of window 'win' to 'ts',  
X	and returns the original value.  
X
X	tabsize(ts) sets the tabsize of stdscr to 'ts', and returns  
X	the original value.  
X
XEXAMPLES
X
XSEE ALSO
X
XBUGS
SHAR_EOF
if test 429 -ne "`wc -c < 'tabsize.m'`"
then
	echo shar: error transmitting "'tabsize.m'" '(should have been 429 characters)'
fi
fi # end of overwriting check
echo shar: extracting "'touchwin.m'" '(295 characters)'
if test -f 'touchwin.m'
then
	echo shar: will not over-write existing file "'touchwin.m'"
else
sed 's/^X//' << \SHAR_EOF > 'touchwin.m'
XNAME
X	touchwin() - mark all lines of window as changed.
X
XSYNOPSIS
X	#include <curses.h>
X	#include <curspriv.h>
X
X	void touchwin(win)
X	WINDOW *win;
X
XDESCRIPTION
X	touchwin() marks all lines of window 'win' as changed, from  
X	the first to the last character on the line.  
X
XEXAMPLES
X
XSEE ALSO
X
XBUGS
SHAR_EOF
if test 295 -ne "`wc -c < 'touchwin.m'`"
then
	echo shar: error transmitting "'touchwin.m'" '(should have been 295 characters)'
fi
fi # end of overwriting check
echo shar: extracting "'unctrl.m'" '(262 characters)'
if test -f 'unctrl.m'
then
	echo shar: will not over-write existing file "'unctrl.m'"
else
sed 's/^X//' << \SHAR_EOF > 'unctrl.m'
XNAME
X	unctrl() - return a char pointer to a string
X
XSYNOPSIS
X	#include <curses.h>
X	#include <curspriv.h>
X
X	char *unctrl(c)
X	char c;
X
XDESCRIPTION
X	unctrl() returns a char pointer to a string corresponding to  
X	argument character 'c'.  
X
XEXAMPLES
X
XSEE ALSO
X
XBUGS
SHAR_EOF
if test 262 -ne "`wc -c < 'unctrl.m'`"
then
	echo shar: error transmitting "'unctrl.m'" '(should have been 262 characters)'
fi
fi # end of overwriting check
echo shar: extracting "'validchar.m'" '(2223 characters)'
if test -f 'validchar.m'
then
	echo shar: will not over-write existing file "'validchar.m'"
else
sed 's/^X//' << \SHAR_EOF > 'validchar.m'
XNAME
X	getch() - ***same as wgetch()*** see curses.h
X	wgetch() flushinp() wungetch() mvgetch() mvwgetch() rawgetch() 
X	sysgetch() validchar() _cursespendch() - manipulate input characters
X
XSYNOPSIS
X	#include <curses.h>
X	#include <curspriv.h>
X
X	int wgetch(win)
X	WINDOW *win;
X
X	void flushinp()
X
X	int wungetch(ch)
X	int ch;
X
X	int mvgetch(y,x)
X	int y;
X	int x;
X
X	int mvwgetch(win,y,x)
X	WINDOW *win;
X	int y;
X	int x;
X
X	static int rawgetch()
X
X	static int sysgetch()
X
X	static int validchar(c)
X	int c;
X
X	bool _cursespendch()
X
XDESCRIPTION
X	wgetch(win) gets a character from the terminal, in normal,  
X	cbreak or raw mode, optionally echoing to window 'win'.  
X
X	flushinp() kills any pending input characters.  
X
X	wungetch() pushes back it's argument on the input stream. If  
X	OK, returns 1, otherwise returns 0.  
X
X	mvgetch() first moves the stdscr cursor to a new location,  
X	then does a wgetch() on stdscr.  
X
X	mvwgetch() first moves the cursor of window 'win' to a new  
X	location, then does a wgetch() in 'win'.  
X
X	rawgetch() gets a character without any interpretation at  
X	all and returns it. If keypad mode is active for the desig-  
X	nated window, function key translation will be performed.  
X	Otherwise, function keys are ignored.If nodelay mode is  
X	active in the window, then rawgetch() returns -1 if no cha-  
X	racter is available.  
X
X	sysgetch() gets a character with normal ^S, ^Q, ^P and ^C  
X	interpretation and returns it. If keypad mode is active for  
X	the designated window, function key translation will be per-  
X	formed. Otherwise, function keys are ignored. If nodelay  
X	mode is active in the window, then sysgetch() returns -1 if  
X	no character is available.  
X
X	validchar(c) checks that 'c' is a valid character, and  
X	if so returns it, with function key translation applied if  
X	'w' has keypad mode set. If char is invalid, returns -1.  
X
X	_cursespendch() returns 1 if there is any character avai-  
X	lable, and 0 if there is none. this is not for programmer  
X	usage, but for the updatew routines.  
X
XEXAMPLES
X
XSEE ALSO
X	rawgetch(); _cursesgcb(); _cursesscb(); sysgetch(); _cursesscb();
X	waddch(); wrefresh(); _curseskey(); kbhit(); getch(); wmove();
X	wgetch(); _curseskeytst(); validchar();
X
XBUGS
SHAR_EOF
if test 2223 -ne "`wc -c < 'validchar.m'`"
then
	echo shar: error transmitting "'validchar.m'" '(should have been 2223 characters)'
fi
fi # end of overwriting check
echo shar: extracting "'wattron.m'" '(1210 characters)'
if test -f 'wattron.m'
then
	echo shar: will not over-write existing file "'wattron.m'"
else
sed 's/^X//' << \SHAR_EOF > 'wattron.m'
XNAME
X	wattrset() wattron() wattroff() wstandout() wstandend()
X	attrset() attron() attroff()
X	standout() standend() - set and clear various attributes
X
XSYNOPSIS
X	#include <curses.h>  
X	#include <curspriv.h>  
X
X	void wattrset(win,attrs)  
X	WINDOW *win;  
X	int attrs;  
X
X	void wattron(win,attrs)
X	WINDOW *win;
X	int attrs;  
X
X	void wattroff(win,attrs)
X	WINDOW *win;
X	int attrs;  
X
X	void wstandout(win)  
X	WINDOW *win;
X
X	void wstandend(win)
X	WINDOW *win;
X
X	void attrset(attrs)  
X	int attrs;
X
X	void attron(attrs)
X	int attrs;
X
X	void attroff(attrs)
X	int attrs;
X
X	void standout()
X
X	void standend()
X
XDESCRIPTION
X	wattrset() sets the attributes as specified in window 'win'.  
X
X	wattron() sets the specified attribute(s) in window 'win'.  
X	wattroff() clears the specified attribute(s) in window 'win'.  
X
X	wstandout() starts standout mode in window 'win'.  
X	wstandend() clears all special attributes in window 'win'.  
X
X	attrset() sets the attributes as specified in stdscr.  
X
X	attron() sets the specified attribute(s) in stdscr.  
X	attroff() clears the specified attribute(s) in stdscr.  
X
X	standout() starts standout mode in stdscr.  
X	standend() clears all special attributes in stdscr.  
X
XEXAMPLES
X
XSEE ALSO
X
XBUGS
SHAR_EOF
if test 1210 -ne "`wc -c < 'wattron.m'`"
then
	echo shar: error transmitting "'wattron.m'" '(should have been 1210 characters)'
fi
fi # end of overwriting check
echo shar: extracting "'wgetch.m'" '(2223 characters)'
if test -f 'wgetch.m'
then
	echo shar: will not over-write existing file "'wgetch.m'"
else
sed 's/^X//' << \SHAR_EOF > 'wgetch.m'
XNAME
X	getch() - ***same as wgetch()*** see curses.h
X	wgetch() flushinp() wungetch() mvgetch() mvwgetch() rawgetch() 
X	sysgetch() validchar() _cursespendch() - manipulate input characters
X
XSYNOPSIS
X	#include <curses.h>
X	#include <curspriv.h>
X
X	int wgetch(win)
X	WINDOW *win;
X
X	void flushinp()
X
X	int wungetch(ch)
X	int ch;
X
X	int mvgetch(y,x)
X	int y;
X	int x;
X
X	int mvwgetch(win,y,x)
X	WINDOW *win;
X	int y;
X	int x;
X
X	static int rawgetch()
X
X	static int sysgetch()
X
X	static int validchar(c)
X	int c;
X
X	bool _cursespendch()
X
XDESCRIPTION
X	wgetch(win) gets a character from the terminal, in normal,  
X	cbreak or raw mode, optionally echoing to window 'win'.  
X
X	flushinp() kills any pending input characters.  
X
X	wungetch() pushes back it's argument on the input stream. If  
X	OK, returns 1, otherwise returns 0.  
X
X	mvgetch() first moves the stdscr cursor to a new location,  
X	then does a wgetch() on stdscr.  
X
X	mvwgetch() first moves the cursor of window 'win' to a new  
X	location, then does a wgetch() in 'win'.  
X
X	rawgetch() gets a character without any interpretation at  
X	all and returns it. If keypad mode is active for the desig-  
X	nated window, function key translation will be performed.  
X	Otherwise, function keys are ignored.If nodelay mode is  
X	active in the window, then rawgetch() returns -1 if no cha-  
X	racter is available.  
X
X	sysgetch() gets a character with normal ^S, ^Q, ^P and ^C  
X	interpretation and returns it. If keypad mode is active for  
X	the designated window, function key translation will be per-  
X	formed. Otherwise, function keys are ignored. If nodelay  
X	mode is active in the window, then sysgetch() returns -1 if  
X	no character is available.  
X
X	validchar(c) checks that 'c' is a valid character, and  
X	if so returns it, with function key translation applied if  
X	'w' has keypad mode set. If char is invalid, returns -1.  
X
X	_cursespendch() returns 1 if there is any character avai-  
X	lable, and 0 if there is none. this is not for programmer  
X	usage, but for the updatew routines.  
X
XEXAMPLES
X
XSEE ALSO
X	rawgetch(); _cursesgcb(); _cursesscb(); sysgetch(); _cursesscb();
X	waddch(); wrefresh(); _curseskey(); kbhit(); getch(); wmove();
X	wgetch(); _curseskeytst(); validchar();
X
XBUGS
SHAR_EOF
if test 2223 -ne "`wc -c < 'wgetch.m'`"
then
	echo shar: error transmitting "'wgetch.m'" '(should have been 2223 characters)'
fi
fi # end of overwriting check
echo shar: extracting "'wnoutrefresh.m'" '(589 characters)'
if test -f 'wnoutrefresh.m'
then
	echo shar: will not over-write existing file "'wnoutrefresh.m'"
else
sed 's/^X//' << \SHAR_EOF > 'wnoutrefresh.m'
XNAME
X	wrefresh() wnoutrefresh() refresh() - update the physical screen  
X
XSYNOPSIS
X	#include <curses.h>
X	#include <curspriv.h>
X
X	void wrefresh(win)
X	WINDOW *win;
X
X	void wnoutrefresh(win)
X	register WINDOW *win;
X
X	void refresh()
X
XDESCRIPTION
X	wrefresh() updates window win's area of the physical screen.  
X
X	wnoutrefresh() updates the image of the desired screen,  
X	without doing physical update (copies window win's image to  
X	the _cursvar.tmpwin window, which is hidden from the user).  
X
X	refresh() updates stdscr's area of the physical screen.  
X
XEXAMPLES
X
XSEE ALSO
X	doupdate();
X
XBUGS
SHAR_EOF
if test 589 -ne "`wc -c < 'wnoutrefresh.m'`"
then
	echo shar: error transmitting "'wnoutrefresh.m'" '(should have been 589 characters)'
fi
fi # end of overwriting check
echo shar: extracting "'wungetch.m'" '(2223 characters)'
if test -f 'wungetch.m'
then
	echo shar: will not over-write existing file "'wungetch.m'"
else
sed 's/^X//' << \SHAR_EOF > 'wungetch.m'
XNAME
X	getch() - ***same as wgetch()*** see curses.h
X	wgetch() flushinp() wungetch() mvgetch() mvwgetch() rawgetch() 
X	sysgetch() validchar() _cursespendch() - manipulate input characters
X
XSYNOPSIS
X	#include <curses.h>
X	#include <curspriv.h>
X
X	int wgetch(win)
X	WINDOW *win;
X
X	void flushinp()
X
X	int wungetch(ch)
X	int ch;
X
X	int mvgetch(y,x)
X	int y;
X	int x;
X
X	int mvwgetch(win,y,x)
X	WINDOW *win;
X	int y;
X	int x;
X
X	static int rawgetch()
X
X	static int sysgetch()
X
X	static int validchar(c)
X	int c;
X
X	bool _cursespendch()
X
XDESCRIPTION
X	wgetch(win) gets a character from the terminal, in normal,  
X	cbreak or raw mode, optionally echoing to window 'win'.  
X
X	flushinp() kills any pending input characters.  
X
X	wungetch() pushes back it's argument on the input stream. If  
X	OK, returns 1, otherwise returns 0.  
X
X	mvgetch() first moves the stdscr cursor to a new location,  
X	then does a wgetch() on stdscr.  
X
X	mvwgetch() first moves the cursor of window 'win' to a new  
X	location, then does a wgetch() in 'win'.  
X
X	rawgetch() gets a character without any interpretation at  
X	all and returns it. If keypad mode is active for the desig-  
X	nated window, function key translation will be performed.  
X	Otherwise, function keys are ignored.If nodelay mode is  
X	active in the window, then rawgetch() returns -1 if no cha-  
X	racter is available.  
X
X	sysgetch() gets a character with normal ^S, ^Q, ^P and ^C  
X	interpretation and returns it. If keypad mode is active for  
X	the designated window, function key translation will be per-  
X	formed. Otherwise, function keys are ignored. If nodelay  
X	mode is active in the window, then sysgetch() returns -1 if  
X	no character is available.  
X
X	validchar(c) checks that 'c' is a valid character, and  
X	if so returns it, with function key translation applied if  
X	'w' has keypad mode set. If char is invalid, returns -1.  
X
X	_cursespendch() returns 1 if there is any character avai-  
X	lable, and 0 if there is none. this is not for programmer  
X	usage, but for the updatew routines.  
X
XEXAMPLES
X
XSEE ALSO
X	rawgetch(); _cursesgcb(); _cursesscb(); sysgetch(); _cursesscb();
X	waddch(); wrefresh(); _curseskey(); kbhit(); getch(); wmove();
X	wgetch(); _curseskeytst(); validchar();
X
XBUGS
SHAR_EOF
if test 2223 -ne "`wc -c < 'wungetch.m'`"
then
	echo shar: error transmitting "'wungetch.m'" '(should have been 2223 characters)'
fi
fi # end of overwriting check
#	End of shell archive
exit 0
-		-		-		-		-
		(It's my opinion and not my employers)
Steve Balogh	VK3YMY			| steve@cit5.cit.oz (...oz.au)
Chisholm Institute of Technology	| steve%cit5.cit.oz@uunet.uu.net
PO Box 197, Caulfield East		| 
Melbourne, AUSTRALIA. 3145		| {hplabs,mcvax,uunet,ukc}!munnari\
+61 3 573 2266 (Ans Machine)		|  !cit5.cit.oz!steve