(OLDER) <- More Stuff -> (NEWER) (NEWEST)
Printer Friendly Version



Best of the Newsgroups: switch to/from ansi on the console

Main Index

From: jboland@sco.com
Subject: Re: OSR6 Console emulation woes
Date: 30 Sep 2005 05:47:50 -0700
Message-ID: <1128084470.698665.146020@g47g2000cwa.googlegroups.com> 
References: <loWdnb7SdsoJ_qHeRVn-uQ@newedgenetworks.com> 


dsSDF AEW wrote:
> Hello everyone,
>
> As we all know by now, OSR6 went and changed the emulation at the
> console in OSR6.  We lost our scoansi.

Dan,

Yes, the console behaviour has changed. No, scoansi as a TERM type is
still offered but not for the OSR6 console. You can still login from
any scoansi based terminal or emulator (scoterm on OSR6, OSR5 console
etc) and use scoansi.

> We also lost our ability to print line draw graphics characters.  I have
> a client runnning a filepro app.  The app was about 50% usable with the
> AT386-ie emulation so we set the TERM variable to ansi.

Please note that this is down to a badly behaved application. The
application is hardwired to scoansi from your description.

>
> Things improved quite a bit however we still get the foreign diacritical
> chars where nice lines are supposed to appear.  On 5.0.x we always did a
> mapchan -n to fix this, which no longer works.
>
> Suggestions anyone?

Try the following script (written by Doug Ritchie) to switch to/from
ansi on the console to see if this helps.

John

#!/bin/sh
# Switch the terminal emulation for the console from the default
# "at386-ie" to "ansi", or vice versa
#
# NOTE: not for use with non-US keyboards!

case "$1" in
   ansi)
       # change console term type
       defadm coterm TERM=ansi
       sed -e 's/^at386-ie/ansi/' < /etc/ttytype > /etc/ttytype.$$
       cp /etc/ttytype.$$ /etc/ttytype
       rm -f /etc/ttytype.$$

       # change console font
       defadm cofont COFONT=pc850

       # remap function keys
       [ -f /usr/lib/keyboard/strings.d/at386-ie ] || \
           cp /usr/lib/keyboard/strings
/usr/lib/keyboard/strings.d/at386-ie
       cp -f /usr/lib/keyboard/strings.d/ansi /usr/lib/keyboard/strings
       ;;

   at386*)
       # change console term type
       defadm coterm TERM=at386-ie
       sed -e 's/^ansi/at386-ie/' < /etc/ttytype > /etc/ttytype.$$
       cp /etc/ttytype.$$ /etc/ttytype
       rm -f /etc/ttytype.$$

       # change console font
       defadm cofont COFONT=8859-1

       # remap function keys
       cp -f /usr/lib/keyboard/strings.d/at386-ie
/usr/lib/keyboard/strings
       ;;
esac

/sbin/loadfont
mapstr




Click here to add your comments



Don't miss responses! Subscribe to Comments by RSS or by Email

Click here to add your comments


If you want a picture to show with your comment, go get a Gravatar



/Bofcusm/2619.html copyright 1997-2004 (various authors) All Rights Reserved

Have you tried Searching this site?

Unix/Linux/Mac OS X support by phone, email or on-site: Support Rates

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. We appreciate comments and article submissions.

Publishing your articles here

Jump to Comments



Many of the products and books I review are things I purchased for my own use. Some were given to me specifically for the purpose of reviewing them. I resell or can earn commissions from the sale of some of these items. Links within these pages may be affiliate links that pay me for referring you to them. That's mostly insignificant amounts of money; whenever it is not I have made my relationship plain. I also may own stock in companies mentioned here. If you have any question, please do feel free to contact me.

Specific links that take you to pages that allow you to purchase the item I reviewed are very likely to pay me a commission. Many of the books I review were given to me by the publishers specifically for the purpose of writing a review. These gifts and referral fees do not affect my opinions; I often give bad reviews anyway.

We use Google third-party advertising companies to serve ads when you visit our website. These companies may use information (not including your name, address, email address, or telephone number) about your visits to this and other websites in order to provide advertisements about goods and services of interest to you. If you would like more information about this practice and to know your choices about not having this information used by these companies, click here.



More:
       - OSR5
       - Bofcusm


Unix/Linux Consultants

Skills Tests

Guest Post Here











My Favorites

Change Congress