Annoying terminal characters

Annoying terminal characters

am 31.01.2008 10:09:22 von Kenneth Brun Nielsen

It happends from time to time, that I use more (the text file viewer)
on binary files.

Often the result is, that my terminal changes character set, so the
terminal is completely unreadable. I'm using XTERM.

Any ideas of how I can return to the default character set? Other than
shutting down, off course...

/Kenneth

Re: Annoying terminal characters

am 31.01.2008 10:50:23 von Stephane CHAZELAS

On Thu, 31 Jan 2008 01:09:22 -0800 (PST), Kenneth Brun Nielsen wrote:
> It happends from time to time, that I use more (the text file viewer)
> on binary files.
>
> Often the result is, that my terminal changes character set, so the
> terminal is completely unreadable. I'm using XTERM.
>
> Any ideas of how I can return to the default character set? Other than
> shutting down, off course...
[...]

Generally, the reset command when available does it.

You can also try:

tput rmacs

Or

printf '\017'

or:

printf '\033(B'

You could also consider using less (without the -r option)
instead of more.

--
Stephane

Re: Annoying terminal characters

am 31.01.2008 13:33:53 von Maxwell Lol

Kenneth Brun Nielsen writes:

> Any ideas of how I can return to the default character set? Other than
> shutting down, off course...

Besides what Stephane says, you can type
reset
clear

you might need a Control-J instead of a
if your terminal is really really messed up.