bad ANSI sequence corrupts my terminal!

alythh_at_netscape.net
Date: 03/16/05


Date: 16 Mar 2005 07:16:58 -0800

Hi people,
I'm asking again your help: I am displaying in a terminal (Eterm) the
color - ASCII version of an image
(http://sam.zoy.org/projects/libcaca/) - and although I can display it,
it contains a lot of ESC- commands (to set color etc),
and after displaying it the term becomes "corrupted": the cursor
disappears, and more important each mouse click now generates
characters ( 0<#0< for leftclick, !\F#\F for middleclick, "QE#QE for
rightclick).
What I don't understand is that I don't see any ANSI sequence in the
standard tables showing how to manipulate in this way the mouse - so I
don't know how to reset it. (and franly I prefer not to check any byte
in a 10k file containing just ESC- codes ;-)

any hint?

Thanks!

Alessandro Magni