#!/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