switch to/from ansi on the console
From: email@example.com Subject: Re: OSR6 Console emulation woes Date: 30 Sep 2005 05:47:50 -0700 Message-ID: <firstname.lastname@example.org> 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
Got something to add? Send me email.
(OLDER) <- More Stuff -> (NEWER) (NEWEST)
Printer Friendly Version
Increase ad revenue 50-250% with Ezoic