[plug] question about file types

Matt Kemner zombie at networx.net.au
Wed Jan 6 10:45:47 WST 1999


On Wed, 6 Jan 1999, Mike Holland wrote:

> > 2) Reset a clagged terminal with 'stty sane'.
> 
> This doesnt seem to help, usually, on XTerms though. I must use the mouse
> menu. It there a way to reset an xterm on the command line?

There are a number of different ways in which a vt100 compatible terminal
(including xterms) can be "stuffed" all with 3 different ways of fixing
it.

If my terminal's stuffed I usually type (in this order:)

stty sane
echo <control-V><control-O>
echo <control-V><ESC> c

Note that the reason the display seems "screwed" is because you can use
vt100 terminals to draw simple grahical characters by switching to and
from graphics mode with ^N and ^O

eg. to draw a little box type:

/bin/echo -e "<control-V><control-N>lqk\nmqj<control-V><control-O>"

you can draw nice little menus etc. with these.
(although a better idea is to use ncurses because it is more portable)

 - Matt



More information about the plug mailing list