APLawrence.com -  Resources for Unix and Linux Systems, Bloggers and the self-employed

Where can I get a Linux terminfo for SCO Unix "scoansi" or vice-versa ?


Some material is very old and may be incorrect today

© December 2003 (various)

When I telnet from a SCO machine to a Linux machine, resetting erase and intr is only the beginning of what I need to do to avoid driving myself crazy. If I'm using Linux as my deskop, the problem will be reversed when I access customer's SCO machines from that box.

Admittedly, it's SCO's fault. It would have been smarter to make the SCO console and xterms act like a vt100 as Linux and Mac do. If you'd like to explore some of the details and history of all this, Linux and SCO key mappings are discussed here, including some opinions by Linus Torvalds.

If coming from SCO to Linux, you may find a scoansi-old and scoansi-new terminfo definition. Which one you would use depends upon whether you have "old" sco (pre 5.0.6) or not.

That's just the start of possible confusion. That's why there is so much information posted below: what you need depends upon what you have and even upon the particular application you want to use. Termcap and terminfo definitions are what controls your experience.

(Don't understand terminfo? See Termcap and Terminfo.)

Thomas E. Dickey offers this in ncurses 5.0 (See Ncurses FAQ).

Thomas gave me permission to extract the terminfo source and make it available here; you can just "tic" this on any Linux box if all you need is a better scoansi terminfo definition.




 # SCO console and SOS-Syscons console for 386bsd
 # (scoansi: had unknown capabilities
 #      :Gc=N:Gd=K:Gh=M:Gl=L:Gu=J:Gv=\072:\
 #      :GC=E:GD=B:GH=D:GL=\64:GU=A:GV=\63:GR=C:
 #      :G1=?:G2=Z:[email protected]:G4=Y:G5=;:G6=I:G7=H:G8=<:\
 #      :CW=\E[M:NU=\E[N:RF=\E[O:RC=\E[P:\
 #      :WL=\E[S:WR=\E[T:CL=\E[U:CR=\E[V:\
 # I renamed GS/GE/HM/EN/PU/PD/RT and added klone+sgr-dumb, based
 # on the <smacs>=\E[12m  -- esr)
 #
 # klone+sgr-dumb is an error since the acsc does not match -TD
 #
 # In this description based on SCO's keyboard(HW) manpage list of default function key
 # values:
 #      F13-F24 are shifted F1-F12
 #      F25-F36 are control F1-F12
 #      F37-F48 are shift+control F1-F12
 scoansi|SCO Extended ANSI standard crt, 
        OTbs, am, eo, xon, 
        colors#8, cols#80, it#8, lines#25, pairs#64, 
        acsc=0[5566778899\:\:;;<<==>>FFGGHHIIJJKKLLMMNNOOPPQQRRSSTTUUVVWWXX`[email protected]~y, 
        blink=\E[5m, bold=\E[1m, cbt=\E[Z, clear=\E[H\E[2J, 
        cub1=\E[D, cud1=\E[B, cuf1=\E[C, cup=\E[%i%p1%d;%p2%dH, 
        cuu1=\E[A, dch1=\E[P, dl1=\E[M, ed=\E[J, el=\E[K, home=\E[H, 
        ht=^I, ich1=\E[@, il1=\E[L, ind=\E[S, invis=\E[8m, kbeg=\E[E, 
        kbs=^H, kcbt=\E[Z, kcub1=\E[D, kcud1=\E[B, kcuf1=\E[C, 
        kcuu1=\E[A, kend=\E[F, kf1=\E[M, kf10=\E[V, kf11=\E[W, 
        kf12=\E[X, kf13=\E[Y, kf15=\E[a, kf16=\E[b, kf17=\E[c, 
        kf18=\E[d, kf19=\E[e, kf2=\E[N, kf20=\E[f, kf21=\E[g, 
        kf22=\E[h, kf23=\E[i, kf24=\E[j, kf25=\E[k, kf26=\E[l, 
        kf27=\E[m, kf28=\E[n, kf29=\E[o, kf3=\E[O, kf30=\E[p, 
        kf31=\E[q, kf32=\E[r, kf33=\E[s, kf34=\E[t, kf35=\E[u, 
        kf36=\E[v, kf37=\E[w, kf38=\E[x, kf39=\E[y, kf4=\E[P, 
        kf40=\E[z, kf41=\E[@, kf42=\E[[, kf43=\E[\\, kf44=\E[], 
        kf45=\E[\^, kf46=\E[_, kf47=\E[`, kf48=\E[{, kf5=\E[Q, 
        kf6=\E[R, kf7=\E[S, kf8=\E[T, kf9=\E[U, khome=\E[H, 
        kich1=\E[L, knp=\E[G, kpp=\E[I, op=\E[37;40m, rev=\E[7m, 
        ri=\E[T, rmacs=\E[10m, rmso=\E[m, rmul=\E[m, 
        setab=\E[4%p1%dm, setaf=\E[3%p1%dm, 
        sgr=\E[0;10%?%p1%t;7%;%?%p2%t;4%;%?%p3%t;7%;%?%p4%t;5%;%?%p6%t;1%;%?%p7%t;8%;%?%p9%t;12%;m, 
        sgr0=\E[0;10m, smacs=\E[12m, smso=\E[7m, smul=\E[4m, 


 


 


Brian White offered this:




Here is what I installed on my sco box to allow me to work from my linux box.
It is still a work in progess, since I don't telnet from linux to sco that
often, but it's pretty good.


http://www.aljex.com/bkw/sco/terminfo-lnx-on-sco

#	Constructed via infocmp on real linux box, added mc4,mc5,smpch
#	[email protected]
linux|linux console, 
	am, bce, eo, mir, msgr, xenl, xon, 
	colors#8, it#8, pairs#64, 
	acsc=+\020\,\021-\030.^Y0\333`\004a\261f\370g\361h\260i\316j\331k\277l\332m\300n\305o~p\304q\304r\304s_t\303u\264v\301w\302x\263y\363z\362{\343|\330}\234~\376, 
	bel=^G, blink=\E[5m, bold=\E[1m, civis=\E[?25l, 
	clear=\E[H\E[J, cnorm=\E[?25h, cr=^M, 
	csr=\E[%i%p1%d;%p2%dr, cub1=^H, cud1=^J, cuf1=\E[C, 
	cup=\E[%i%p1%d;%p2%dH, cuu1=\E[A, dch=\E[%p1%dP, 
	dch1=\E[P, dim=\E[2m, dl=\E[%p1%dM, dl1=\E[M, 
	ech=\E[%p1%dX, ed=\E[J, el=\E[K, el1=\E[1K, 
	flash=\E[?5h\E[?5l$<200/>, home=\E[H, hpa=\E[%i%p1%dG, 
	ht=^I, hts=\EH, ich=\E[%p1%[email protected], ich1=\E[@, il=\E[%p1%dL, 
	il1=\E[L, ind=^J, invis=\E[8m, kb2=\E[G, kbs=\177, kcbt=\E[Z, 
	kcub1=\E[D, kcud1=\E[B, kcuf1=\E[C, kcuu1=\E[A, 
	kdch1=\E[3~, kend=\E[4~, kf1=\E[[A, kf10=\E[21~, 
	kf11=\E[23~, kf12=\E[24~, kf13=\E[25~, kf14=\E[26~, 
	kf15=\E[28~, kf16=\E[29~, kf17=\E[31~, kf18=\E[32~, 
	kf19=\E[33~, kf2=\E[[B, kf20=\E[34~, kf3=\E[[C, kf4=\E[[D, 
	kf5=\E[[E, kf6=\E[17~, kf7=\E[18~, kf8=\E[19~, kf9=\E[20~, 
	khome=\E[1~, kich1=\E[2~, knp=\E[6~, kpp=\E[5~, kspd=^Z, 
	nel=^M^J, op=\E[39;49m, rc=\E8, rev=\E[7m, ri=\EM, 
	rmacs=\E[10m, rmir=\E[4l, rmpch=\E[10m, rmso=\E[27m, 
	rmul=\E[24m, rs1=\Ec\E]R, sc=\E7, setab=\E[4%p1%dm, 
	setaf=\E[3%p1%dm, 
	sgr=\E[0;10%?%p1%t;7%;%?%p2%t;4%;%?%p3%t;7%;%?%p4%t;5%;%?%p5%t;2%;%?%p6%t;1%;%?%p7%t;8%;%?%p9%t;11%;m, 
	sgr0=\E[0;10m, smacs=\E[11m, smir=\E[4h, smpch=\E[11m, 
	smso=\E[7m, smul=\E[4m, tbc=\E[3g, u6=\E[%i%d;%dR, 
	u7=\E[6n, u8=\E[?6c, u9=\E[c, vpa=\E[%i%p1%dd, mc5=\E[5i, mc4=\E[4i,
 
http://www.aljex.com/bkw/sco/termcap-lnx-on-sco

# pulled from real linux box, added is,PN,PS
# [email protected]
linux|linux console, cp437 font:\
	:am:eo:mi:ms:ut:xn:xo:\
	:co#80:it#8:li#25:\
	:&7=^Z:@7=\E[4~:AL=\E[%dL:DC=\E[%dP:DL=\E[%dM:\
	:F1=\E[23~:F2=\E[24~:F3=\E[25~:F4=\E[26~:F5=\E[28~:\
	:F6=\E[29~:F7=\E[31~:F8=\E[32~:F9=\E[33~:FA=\E[34~:\
	:IC=\E[%[email protected]:K2=\E[G:al=\E[L:bl=^G:cd=\E[J:ce=\E[K:\
	:ch=\E[%i%dG:cl=\E[H\E[J:cm=\E[%i%d;%dH:cr=^M:\
	:cs=\E[%i%d;%dr:ct=\E[3g:cv=\E[%i%dd:dc=\E[P:dl=\E[M:\
	:do=^J:ei=\E[4l:ho=\E[H:ic=\E[@:im=\E[4h:k1=\E[[A:\
	:k2=\E[[B:k3=\E[[C:k4=\E[[D:k5=\E[[E:k6=\E[17~:\
	:k7=\E[18~:k8=\E[19~:k9=\E[20~:k;=\E[21~:kB=\E[Z:\
	:kD=\E[3~:kI=\E[2~:kN=\E[6~:kP=\E[5~:kb=^H:kd=\E[B:\
	:kh=\E[1~:kl=\E[D:kr=\E[C:ku=\E[A:le=^H:mr=\E[7m:\
	:nd=\E[C:nw=^M^J:r1=\Ec:rc=\E8:sc=\E7:sf=^J:sr=\EM:\
	:st=\EH:ta=^I:u6=\E[%i%d;%dR:u7=\E[6n:u8=\E[?6c:\
	:u9=\E[c:up=\E[A:vb=200\E[?5h\E[?5l:ve=\E[?25h:\
	:vi=\E[?25l:\
	:S2=\E[11m:S3=\E[10m:ae=\E[11m:as=\E11m:mb=\E[5m:\
	:md=\E[1m:me=\E[0;10m:mk=\E[8m:mr=\E[7m:\
	:..sa=\E[0;10%?%p1%t;7%;%?%p2%t;4%;%?%p3%t;7%;%?%p4%t;5%;%?%p6%t;1%;%?%p7%t;8%;%?%p9%t;11%;m:\
	:se=\E[m:so=\E[7m:ue=\E[m:us=\E[4m:\
	:Co#8:NC#3:pa#64:\
	:AB=\E[4%p1%dm:AF=\E[3%p1%dm:Sb=\E[%+(m:Sf=\E[%+^^m:op=\E[37;40m:\
	:ac=`\004a\261f\370g\361h\260j\331k\277l\332m\300n\305o~q\304r\362s_t\303u\264v\301w\302x\263y\371z\372{\373|\374}\375~\376.\031-\030\054\021+^P0\333p\304r\304y\363z\362{\343|\330}\234:\
	:ae=\E[10m:as=\E[11m:\
	:is=\033(U:PN=\E[5i:PS=\E[4i:
 
http://www.aljex.com/bkw/sco/profile-lnx-on-sco

# paste this into /etc/profile on a sco box for linux terminal compatibility
# [email protected]
case $TERM in
    ""|dial*|unknown|*ansi*)
	TERM=ansi
    ;;
    linux)
	stty intr "^c"
	stty erase "^?"
	tput smpch
    ;;
esac
export TERM
 




copy these to the sco box and run the following commands:



tic terminfo-lnx-on-sco
cat termcap-lnx-on-sco >>/etc/termcap
cat profile-lnx-on-sco >>/etc/profile



exit and log back in to see the effects.



Conversely, here are the equivalent snippets that I install on linux boxes
so I can telnet to them from sco boxes. This I do more often. (from scoansi
terminal emulators like facetwin actually)


http://www.aljex.com/bkw/sco/terminfo-sco-on-lnx

#	constructed via infocmp on real sco 5.0.5 box, added mc4,mc5
#	[email protected]
scoansi|ansic|cansi|SCO Ansi standard console,
	am, bce, eo, xon,
	colors#8, cols#80, it#8, lines#25, pairs#64,
	bel=^G, blink=\E[5m, bold=\E[1m, cbt=\E[Z,
	acsc=0[I|`[email protected]~y;;IIHH<<JJKKMM::LL99NN88UUTT>>OOQQFF55XX77VVSS==PPRRGG66WW,
	civis=\E[=14;12C, clear=\E[2J\E[H, cnorm=\E[=10;12C,
	cr=\r, cub1=\b, cud1=\E[B, cuf1=\E[C,
	cup=\E[%i%p1%d;%p2%dH, cuu1=\E[A, dch1=\E[P, dl1=\E[M,
	ed=\E[m\E[J, el=\E[m\E[K, home=\E[H, ht=\t, ich1=\E[@,
	il1=\E[L, ind=\E[S, invis=\E[8m, kLFT=\E[d, kRIT=\E[c,
	kbs=\b, kcbt=\E[Z, kcub1=\E[D, kcud1=\E[B, kcuf1=\E[C,
	kcuu1=\E[A, kdch1=^_, kend=\E[F, kf1=\E[M, kf10=\E[V,
	kf11=\E[W, kf12=\E[X, kf2=\E[N, kf3=\E[O, kf4=\E[P,
	kf5=\E[Q, kf6=\E[R, kf7=\E[S, kf8=\E[T, kf9=\E[U,
	khome=\E[H, kich1=\E[L, knp=\E[G, kpp=\E[I,
	op=\E[37;40m, rev=\E[7m, ri=\E[T, rmacs=\E[10m,
	rmso=\E[m, rmul=\E[m, setb=\E[4%p1%dm,
	setf=\E[3%p1%dm, sgr0=\E[10;0m, smacs=\E[12m,
	smso=\E[7m, smul=\E[4m, mc4=\E[4i, mc5=\E[5i, 
 
http://www.aljex.com/bkw/sco/termcap-sco-on-lnx

# pulled from real sco box, added PN,PS
# [email protected]
scoansi|ansic|cansi|SCO Ansi standard crt:\
	:CT:al=\E[L:am:bs:cd=\E[J:ce=\E[K:cl=\E[2J\E[H:cm=\E[%i%d;%dH:co#80:\
	:dc=\E[P:dl=\E[M:do=\E[B:bt=\E[Z:ei=:ho=\E[H:ic=\E[@:im=:li#25:\
	:nd=\E[C:pt:so=\E[7m:se=\E[m:us=\E[4m:ue=\E[m:up=\E[A:\
	:k1=\E[M:k2=\E[N:k3=\E[O:k4=\E[P:k5=\E[Q:k6=\E[R:\
	:k7=\E[S:k8=\E[T:k9=\E[U:k0=\E[V:\
	:kb=^h:ku=\E[A:kd=\E[B:kl=\E[D:kr=\E[C:eo:sf=\E[S:sr=\E[T:\
	:mb=\E[5m:md=\E[1m:me=\E[m:\
	:GS=\E[12m:GE=\E[10m:GV=\63:GH=D:\
	:GC=E:GL=\64:GR=C:RT=^J:G1=?:G2=Z:[email protected]:G4=Y:G5=;:G6=I:G7=H:G8=<:\
	:GU=A:GD=B:\
	:CW=\E[M:NU=\E[N:RF=\E[O:RC=\E[P:\
	:WL=\E[S:WR=\E[T:CL=\E[U:CR=\E[V:\
	:HM=\E[H:EN=\E[F:PU=\E[I:PD=\E[G:\
	:Gc=N:Gd=K:Gh=M:Gl=L:Gu=J:Gv=\072:PN=\E[4i:PS=\E[5i:
 
http://www.aljex.com/bkw/sco/profile-sco-on-lnx

# paste this into /etc/profile on a linux box for sco terminal compatibility
# [email protected]
case $TERM in 
    ""|dial*|unknown|tty)
	TERM=linux
    ;;
    *ansi*)
	TERM=scoansi
	stty erase "^H"
	stty intr "^?"
	stty susp ""
	stty eol ""
	stty rprnt ""
	stty werase ""
	stty eol2 ""
    ;;
esac
export TERM
 



Also see Linux shell colors; shell ls colorization

Bruce Garlock sent this email:




A while ago, I asked you about linux to SCO terminal emulation, and
there really was not a good answer.  I see that it was one of the FAQ's
on your site, and I tried the various termcap files, etc...  I could
never get it working 100%, though.



I was just emailed a beta linux version of "Powerterm" from www.ericson.com. I am very impressed.
We use the Windows version of Powerterm, and the linux version is almost an 
exact copy.  All the F keys work, and the colors too!  I'm not sure if you 
would be interested in something like this, or not.



- Bruce







If you found something useful today, please consider a small donation.



Got something to add? Send me email.





(OLDER)    <- More Stuff -> (NEWER)    (NEWEST)   

Printer Friendly Version

->
-> (SCO Unix) Where can I get a Linux terminfo for 'scoansi' or vice-versa ?


Inexpensive and informative Apple related e-books:

Take Control of Pages

Photos for Mac: A Take Control Crash Course

iOS 8: A Take Control Crash Course

Take Control of Upgrading to El Capitan

Take Control of IOS 11






Printer Friendly Version

Have you tried Searching this site?

This is a Unix/Linux resource website. It contains technical articles about Unix, Linux and general computing related subjects, opinion, news, help files, how-to's, tutorials and more.

Contact us


Printer Friendly Version





The errors which arise from the absence of facts are far more numerous and more durable than those which result from unsound reasoning respecting true data. (Charles Babbage)




Linux posts

Troubleshooting posts


This post tagged:

Conversion

Emulators

FAQ

Linux

SCO_OSR5



Unix/Linux Consultants

Skills Tests

Unix/Linux Book Reviews

My Unix/Linux Troubleshooting Book

This site runs on Linode