Article View: comp.windows.x
Article #24289xterm, VT100 emulator reset script
From: Andrew Daviel
Date: Mon, 12 Sep 1994 19:36
Date: Mon, 12 Sep 1994 19:36
33 lines
1645 bytes
1645 bytes
Ever got your VT100 (or emulation) in a strange state because you accidentally tried to display a binary file. Here's how to fix it (quicker than RESET on a real terminal). This has been used on genuine VT100s for years, and more recently on xterm running under Unix. vnorm - Script to reset VT100 terminal What's here: <esc>[m attributes off <esc>(B charset G0 = US <esc>)0 charset G1 = graphics ^O (SI) select charset G0 <esc>7 save cursor and attributes <esc>[r select whole screen scroll region <esc>8 restore cursor and attributes <esc>[?5l white on black ) <esc>[?5h black on white ) select 1 only begin vnorm echo 'X[mX(BX)0OX[?5lX7X[rX8' | tr 'XO' '\033\017' end -- </pre><p> <a href="http://andrew.triumf.ca/~andrew"> Andrew Daviel </a>, <a href="http://www.triumf.ca"> TRIUMF </a>, Vancouver, Canada </a></p><img src= "http://andrew.triumf.ca/~andrew/sig2t.gif"> <br><a href="mailto:advax@triumf.ca"> advax@triumf.ca </a>
Technical Details
Message-ID:
<352ak5$5f3@nntp.ucs.ubc.ca>Path:
arc1-ca.pugleaf.net!wupost!spool.mu.edu!howland.reston.ans.net!swiss.ans.net!solaris.cc.vt.edu!news.duke.edu!MathWorks.Com!panix!zip.eecs.umich.edu!newsxfer.itd.umich.edu!nntp.cs.ubc.ca!unixg.ubc.ca!andrew.triumf.ca!andrewShow Full Headers
Complete Article Headers
Path: arc1-ca.pugleaf.net!wupost!spool.mu.edu!howland.reston.ans.net!swiss.ans.net!solaris.cc.vt.edu!news.duke.edu!MathWorks.Com!panix!zip.eecs.umich.edu!newsxfer.itd.umich.edu!nntp.cs.ubc.ca!unixg.ubc.ca!andrew.triumf.ca!andrew From: andrew@andrew.triumf.ca (Andrew Daviel) Newsgroups: comp.windows.x,alt.sources Subject: xterm, VT100 emulator reset script Date: 12 Sep 1994 19:36:37 GMT Organization: TRIUMF Lines: 33 Distribution: world Message-ID: <352ak5$5f3@nntp.ucs.ubc.ca> Reply-To: advax@triumf.ca NNTP-Posting-Host: andrew.triumf.ca Keywords: VT100,xterm X-Newsreader: TIN [version 1.2 PL2]