Article View: aus.computers.linux
Article #54405Re: A linux console question
From: David Gibson
Date: Tue, 28 Oct 1997 00:00
Date: Tue, 28 Oct 1997 00:00
31 lines
1658 bytes
1658 bytes
On Tue, 28 Oct 97 13:55:48 GMT, Ben Hardy <ephemerae@goth6.or5g.a7u> wrote:
>Greetings fellow protectors of process address space,
>
>I have a linux console question.
>
>In the event of doing something like catting a binary file and having your
>virtual console covered in junk until you reboot, what should you do to
>return it to a sane, useful state?
Usually the junking of the console that comes from catting a binary, is
because the binary containeda control scring (I'm not sure what it is) that
switches the console into an alternate character set.
To reset it to normal you need to send a ^O (control-O, ascii 15) to the
console. One way to do this is to blind type 'cat' with no arguments
the hit ctrl-O, return, ctrl-D. Cat will echo the ctrl-O you typed back to
the console.
Alternatively with bash (and maybe other shells) you can blind type the
command:
echo ^O
But to get the ^O in there, you have to press, ctrl-V, _then_ ctrl-O.
The ctrl-V makes the shell accept the ctrl-O literally, rather than as a
line-editing command.
--
David Gibson @ The Lorax | New from Microsoft...
D.Gibson@bohm.anu.edu.au | THNEED 95
| Which everyone, Everyone, EVERYONE needs.
Technical Details
Message-ID:
<slrn65aeqc.5q9.david@brucehall20.anu.edu.au>Path:
arc1-ca.pugleaf.net!unknown!not-for-mailReferences:
<633d3a$osr$1@news.mel.aone.net.au>Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 102983,c607a1173a3e837c X-Google-Attributes: gid102983,public From: david@brucehall20.anu.edu.au (David Gibson) Subject: Re: A linux console question Date: 1997/10/28 Message-ID: <slrn65aeqc.5q9.david@brucehall20.anu.edu.au> X-Deja-AN: 285417962 References: <633d3a$osr$1@news.mel.aone.net.au> Newsgroups: aus.computers.linux