[comp.sys.sgi] terminfo entry for sun

tres@virga.rap.ucar.edu (Tres Hofmeister) (03/07/91)

	I'm looking for either:

	A terminfo entry for terminal type 'sun',

	Information on how to convert an existing Sun termcap entry for
same to terminfo format for use on an SGI Personal Iris.

	Any help will be appreciated - please email and I will summarize.

--
Tres Hofmeister
tres@ncar.ucar.edu

blbates@AERO36.LARC.NASA.GOV (Brent Bates ViGYAN AAD/TAB) (03/07/91)

   Use:

captoinfo (1M) - convert a termcap description into a terminfo description
tic (1M)       - terminfo compiler

	Brent L. Bates
	NASA-Langley Research Center
	M.S. 361
	Hampton, Virginia  23665-5225
	(804) 864-2854
	E-mail: blbates@aero36.larc.nasa.gov or blbates@aero8.larc.nasa.gov

brad@lsr-vax.UUCP (Brad J Zoltick) (03/07/91)

>
>From: Tres Hofmeister <uunet!handies.ucar.edu!virga.rap.ucar.edu!tres>
>Organization: Research Applications Program/NCAR, Boulder, CO
>Subject: Terminfo entry for Sun
>Message-Id: <10499@ncar.ucar.edu>
>Sender: uunet!BRL.MIL!info-iris-request
>To: info-iris@BRL.MIL
>Status: R
>
>
>	I'm looking for either:
>
>	A terminfo entry for terminal type 'sun',
>
>	Information on how to convert an existing Sun termcap entry for
>same to terminfo format for use on an SGI Personal Iris.
>
>	Any help will be appreciated - please email and I will summarize.
>
>--
>Tres Hofmeister
>tres@ncar.ucar.edu

This is a note I wrote up for the research fellows within our laboratory.
This should solve your problem.  Our site consists of both Suns and SGI machines.

Brad J. Zoltick
Laboratory of Sensorimotor Research
National Institutes of Health

UUCP:		...uunet!lsr-vax!brad
INTERNET:	lsr-vax!brad@uunet.uu.net or brad%lsr-vax.UUCP@uunet.uu.net


*******************TERMINFO - TERMCAP Document*****************

Notes on adding additional terminals to the terminfo database.

SYSV versus bsd machines use different databases to describe
the terminal capabilities of terminals.  On SUN(bsd) machines,
the database is an ascii, readable database called termcap. On
SYSV machines, the database is composed of binary files for
each type of terminal. These binary files reside under
the directories /usr/lib/terminfo/?/*, where ? is replaced
by the letters a-z. As networks now consists of both SYSV
and bsd machines, there are various UNIX utilities to convert
from termcap databases to terminfo databases.

On SUN machines, the program, infocmp, will print out
the terminfo characteristics in "source" format suitable as
input to the terminfo compiler (tic).  The result
of running "infocmp -I" on a SUN workstation under OpenWindows
produces the following output.  Here the terminal type was
called "sun-cmd" under OpenWindows.

sun-cmd|Sun Microsystems Workstation console with scrollable history,
	am, km, msgr,
	cols#80, lines#34,
	bel=^G, bold=\E[1m, clear=\f, cr=\r, cub1=\b, cud1=\n,
	cuf1=\E[C, cup=\E[%i%p1%d;%p2%dH, cuu1=\E[A,
	dch=\E[%p1%dP, dch1=\E[P, dl=\E[%p1%dM, dl1=\E[M,
	ed=\E[J, el=\E[K, ht=\t, ich=\E[%p1%d@, ich1=\E[@,
	il=\E[%p1%dL, il1=\E[L, ind=\n, kcub1=\E[D,
	kcud1=\E[B, kcuf1=\E[C, kcuu1=\E[A, kf1=\E[224z,
	kf2=\E[225z, kf3=\E[226z, kf4=\E[227z, kf5=\E[228z,
	kf6=\E[229z, kf7=\E[230z, kf8=\E[231z, kf9=\E[232z,
	rev=\E[7m, rmcup=\E[>4h, rmso=\E[m, rmul=\E[m,
	rs2=\E[s,
	sgr=\E[0%?%p6%t;1%;%?%p2%t;4%;%?%p1%p3%|%t;7%;m,
	sgr0=\E[m, smcup=\E[>4l, smso=\E[7m, smul=\E[4m,


This "source" file then becomes the input file for the terminfo
compiler, tic.  Unless the environment variable, TERMINFO,
is specified, the result of running tic on the above source
file will be to create a binary files called sun-cmd under
/usr/lib/terminfo/s.  

The above ascii file was compiled by tic on the irises and the terminfo 
database was updated for lsr-iris[a-e].  This has corrected the problems
arising from rlogins.

******************************************