Technical article 109521

The scoansi terminal type is unknown by pre-SCO OpenServer 5.0.5 systems.

OpenServer 5.0.0OpenServer 5.0.2OpenServer 5.0.4OpenServer 5.0.5

Written · Last revised

Problem

When I rlogin in from my SCO OpenServer 5.0.5 server to an SCO OpenServer 5.0.4 or earlier server, I get this message:

tput: unknown terminal "scoansi"

Or, if I log in to either a Data General or Sun Microsystem UNIX server, I get:

Error: unable to initialize with term value of scoansi

This can cause incompatibility with some older applications.

Cause

In order to make the default terminal type compatible with UnixWare 7's scoansi terminal, scoansi has been made the default terminal type in SCO OpenServer Release 5.0.5. The ansi terminal definition for UnixWare is not the same as the ansi definition for OpenServer, but the two scoansi's are fully compatible.

You will find the OpenServer terminfo definitions available for UnixWare7 and Open UNIX 8 in /usr/share/lib/terminfo/terminfo.src.osr5

Solution

There are three known solutions for this:

(1) When logging into an SCO OpenServer 5.0.4 (or earlier) system, when the line TERM = (scoansi) appears, change the type to ansi by typing:

TERM = (scoansi) ansi  (just type "ansi" and press <Enter>)

(2) If it is inconvenient to change the terminal type on every login, or there are still problems with applications due to the initial setting of scoansi, then you may do this instead:

# vi /etc/ttytype (on the OpenServer 5.0.5 system)

Change every instance of "scoansi" to "ansi", save changes.

Also, edit the .profile, to make ansi the default terminal on login.

# vi .profile
Find the line that reads:
eval `tset -m scoansi:${TERM:-scoansi} -m :\?${TERM:-scoansi} -e -r -s -Q`

Change each instance of "scoansi" to "ansi" and restart the system.

NOTE: This change will not work if ScoTerm is being used because ScoTerm is 'hard-wired' to use scoansi.

(3) Or, if you want a solution that brings the pre-5.0.5 system up-to-date with the scoansi terminal setting, rather than changing the 5.0.5 system back to ansi, type:

# vi /etc/termcap (on the pre - 5.0.5 system)
Find the line that reads:
li|ansi|ansi80x25|Ansi standard crt:\
and change it to read:
li|ansi|scoansi|ansi80x25|Ansi standard crt:\
Then type:
# vi /usr/lib/terminfo/terminfo.src
Find the line that reads:
ansi|ansic|ansi-437|ansi80x25|Ansi standard console,
and change it to read:
ansi|ansic|ansi-437|ansi80x25|scoansi|Ansi standard console,

After adding the scoansi definition to the terminfo.src file, run the terminal info compiler:

# tic  (no relink/reboot necessary)

You may then log in from the OpenServer 5.0.5 system to the OpenServer 5.0.4 (or earlier) system without changing the terminal type of scoansi on either system.

Other scoansi compatibility solutions may be available from the
vendor of the UNIX operating system being used.  Consult the
vendor's documentation and other support resources for further
information.

See also

Manual pages: ttytype(F), profile(M), tic(C)

From the Xinuos technical article database, record 109521. Reproduced with permission. The original is at www.sco.com/ta/109521, which is reachable but blocked from search engines. Xinuos marks this article against a retired product line. That refers to the product’s lifecycle, not to whether the advice still works — plenty of it still applies to running systems.

Next step

Need this fixed rather than explained?

Tell us the release, what the system runs and what it is doing. We will reply by email with what we would do next.

  • You deal with the people who do the work
  • No obligation, and no upgrade required before we will help
  • We tell you plainly if something is not worth doing

Send an enquiry

We reply by email. If a server is down, say so in the first line. You can also write to help@scoexpert.com.