Server for Information Technologies

(095) 932-9212, 932-9213, 939-0783
E-mail: info@citforum.ru
(!) CIT Forum CD-ROM

TERMCAP(3)
XENIX System V (21 1987)


tgetent, tgetnum, tgetflag, tgetstr, tgoto, tputs ypae epaa

	char PC;
	char *BC;
	char *UP;
	short ospeed;
	
	int tgetent(bp,name)
	char *bp,*name;
	
	int tgetnum(id)
	char *id;
	
	int tgetflag(id)
	char *id;
	
	char *tgetstr(id,area)
	char *id,*area;
	
	char *tgoto(cm,destcol,destline)
	char *cm;
	int destcol,destline;
	
	void tputs(cp,affcnt,outc)
	register char *cp;
	int affcnt;
	int (*outc)();


ae y ypa epao cooec c termcap(5). o y oo ypo. Curses ec aeo oee cooo ypo.

Tgetent oeae yep bp opa o epae name. Bp oe yaa a acc coo paepo 1024 aa oe coxpac poecce oo tgetnum, tgetflag tgetstr. Tgetent opaae -1 cyae, ec pooa oa p op aa termcap, opaae 0, ec e oca aoo epaa, aopaae 1, ec ce opao. Ec opye aea epeea TERMCAP , ec eo aee e aaec co aa "/", a ae ec name coaae co aee cpo opye TERM, cpoa TERMCAP coyec eco ca aa termcap. Ec e epeea TERMCAP aaec co aa "/", eco /etc/termcap coyec o . o oo ycop paoy c ye tgetent, oeae oay ox epao ae oooc coaa coceoe ocae epaa, ec e eee paa ac a /etc/termcap.

Tgetnum opaae ceoe aee xapaepc id, ec aa cyecye aoo epaa. B poo cyae opaaec -1. Tgetflag opaae 1 cyae, ec yaaa xapaepca id cyecye aoo epaa, 0 poo cyae. Tgetstr opaae cpooy epeey xapaepc id yepe area, p o yaae area poaec epe. Tae eopyec apeaypa yaaoo o termcap(5) a cee opa o oopoa ypcopa papoa.

Tgoto opaae cpoy apeca ypcopa cm epeoa ypcopa coe destcol cpoy destline. p eoxooc coyc ee epeee UP (xapaepca up) BC (ec eco bs aao bc) oo, o opaaey cpoy e oa \n, Ctrl-D NULL. cooa ao oooc eoxoo oy TAB3 (c. tty(5)), a a tgoto oe o co tab. ae, o popa, coye termcap, o oy TAB3, a a a eoopx epaax Ctrl-I coyec pyx ee. Ec aaa eepa % oceoaeoc, tgoto opaae OOPS.

Tputs eopye aae papye co cpoe cp; affcnt oeaec oeco opaoax cpo 1, ec aox e. Outc aec aoo opaoaoo coa. Be epeea ospeed oa coepa copoc oa epaa (c. stty(3)). Be epeea PC opeee papy co ( aopa pc), ec e ycpaae NULL.

A

     /usr/lib/libtermcap.a - oea
	
     /etc/termcap - ae

.
curses(3), termcap(5), tty(5)

AOPCE PAA
aoe cpeco papaoao yepcee Kaop ep oo cooac c papee.


p oooe eoxoo yaa a -ltermcap.
Comments: info@citmgu.ru
Designed by Andrey Novikov
Copyright © CIT