Technical article 105293

An application has left my system in the alternate character set.

OpenServer 5.0.0OpenServer 5.0.2

Written · Last revised

Problem

My console is displaying strange characters.  If I type in
characters from the keyboard I don't see the characters I
type in.  I have tried to correct it with "stty sane" but the
problem persists.  The only thing that I have found to work
is a reboot.

Solution

An application has most likely left your system in the alternate character set. If you have not rebooted and your system is currently in this state, type the following at the command line:

# tput rmacs

NOTE: The # sign should not be typed. It is used to show the command line prompt. Also note that although you type "tput rmacs" it will not seem evident, as your console will be showing you the alternate characters.

If your system has been rebooted and is not currently in this state, you can duplicate it and correct it by typing the following at the command line:

# tput smacs

You will see strange characters appear. You can restore it to the previous state by typing:

# tput rmacs

So, "smacs" starts the alternate character set and "rmacs" ends it.

See also

man tput, man M terminfo

From the Xinuos technical article database, record 105293. Reproduced with permission. The original is at www.sco.com/ta/105293, 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.