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

SCO `Unix, Xenix and ODT General FAQ


Some material is very old and may be incorrect today

© December 2003 Tony Lawrence

This article is from a FAQ concerning SCO operating systems. While some of the information may be applicable to any OS, or any Unix or Linux OS, it may be specific to SCO Xenix, Open There is lots of Linux, Mac OS X and general Unix info elsewhere on this site: Search this site is the best way to find anything.

I have one application that doesn't work with SCO Unix "scoansi"; how can I fix that?

It may use its own termcap or terminfo file, or it may just need to see the terminal as ansi. This trick might work if it has a shell script to start it, add this line to the top:


 [ "$TERM" = "scoansi" ] && TERM="ansi"
 

That changes TERM to ansi but only if it was set to "scoansi", so it won't affect wyse terminals, etc.

But it may also be that SCO changed the definition between releases - As of 5.0.6, you also change the console driver configuration with "mkdev scoansi".

You can configure the terminal types to revert to their former behavior, allowing remote logins to use the scoansi type for old behavior or scoansi-new for the new.

The options are:

Use new (5.0.6 and later) terminal database entries
Use old (pre 5.0.6) terminal database entries
Use new (5.0.6 and later) in-kernel scoansi emulator
Use old (pre 5.0.6) in-kernel scoansi emulator (backwards compatibility mode)

Before 5.0.6, "scoansi" and "ansi" were the same. In 5.0.6 and later, they are not.

You might fix this with "mapchan" also; see Graphical characters don't work

See My ANSI terminal emulator doesn't work correctly and Where can I get a Linux terminfo for "scoansi" or vice-versa ?.

See the article here on Termcap and Terminfo also.

Filepro: add " -m scoansi:ansi" to the tset line in .profile files.

Here is "ansi" from a working Filepro SCO 5.0.7 system:

ansic:CT:tc=ansi:
ln|ansi-nam|ansinam|Ansi standard crt without automargin:\
	:al=\E[L: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:\
	:kb=^h:ku=\E[A:kd=\E[B:kl=\E[D:kr=\E[C:eo:sf=\E[S:sr=\E[T:\
	: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:


This is the filepro /app/fp/termcap for ansi

li|ansi|Ansi standard crt (Unix/Xenix 286/386 console):\
	: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:dn=\E[B:ei=:ho=\E[H:ic=\E[@:im=:li#25:\
	:nd=\E[C:ms:pt:so=\E[7m:se=\E[m:us=\E[4m:ue=\E[m:up=\E[A:\
	:kh=\E[H:kb=^h:ku=\E[A:kd=\E[B:kl=\E[D:kr=\E[C:eo:\
	:GS=\E[12m:GE=\E[10m:GV=\E[12m3:GH=D:\
	:G1=?:G2=Z:[email protected]:G4=Y:GZ=~:\
	:GU=A:GD=B:GC=E:GR=C:GL=\E[12m4:RT=^J:\
	:L0=F1:L1=F2:L2=F3:L3=F4:L4=ESC ESC:L5=F5:\
	:L6=PgUp:L7=PgDn:L8=ShiftTAB:L9=TAB:LA=Ctrl-O:\
	:LB=F6:LC=Ctrl-L:LD=F7:\
	:LE=F8:LG=Ctrl-Z:LH=F9:LJ=F10:LY=Del:LZ=Enter:\
	:P0=\E[M:P1=\E[N:P2=\E[O:P3=\E[P:P4=\E\E:P5=\E[Q:P6=\E[I:\
	:P7=\E[G:P8=\E[Z:P9=^I:\
	:PA=^O:PB=\E[R:PC=^L:PD=\E[S:PE=\E[T:PG=^Z:PH=\E[U:PJ=\E[V:
 

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

->
-> scoansi emulation SCO Unix 5.0.6 and 5.0.7


Inexpensive and informative Apple related e-books:

Take Control of Numbers

Take Control of iCloud, Fifth Edition

iOS 10: A Take Control Crash Course

Take Control of Automating Your Mac

Photos for Mac: A Take Control Crash Course





More Articles by © Tony Lawrence





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





Yeah, it's obsolete, clunky, insecure and broken, but people still use this stuff (Tony Lawrence)




Linux posts

Troubleshooting posts


This post tagged:

SCO_OSR5

Terminals



Unix/Linux Consultants

Skills Tests

Unix/Linux Book Reviews

My Unix/Linux Troubleshooting Book

This site runs on Linode