LinuxQuestions.org
Support LQ: Use code LQ3 and save $3 on Domain Registration
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 05-02-2011, 03:16 PM   #1
stf92
Senior Member
 
Registered: Apr 2007
Location: Buenos Aires.
Distribution: Slackware
Posts: 3,485

Rep: Reputation: 51
Cat made the screen permanently unreadable.


Kernel 2.6.21.5, Slackware 12.0

Hi:
I have a file named juan34. I was sure it was a plain text file so, instead of running first 'file juan34' I directly did 'cat juan34'. The result was everything echoed to the console are the ascii caracters greater than 127 decimal. In other words, the screen is unreadable.

I typed 'exit' but this did not remedy the situation. The login prompt was written with these strange chars. In another console I'm running a program which I estimate will terminate execution in 20 hours or more, so I do not want to reboot the machine.

When I worked in MS-DOS, I had (made) a program that reinitialized the 6845 CRT controller, fixing this problem (for this could also happen under that O.S.). But, if there is a solution for MS-DOS, all the more so there must be one under unix/linux. Any help would be greatly appreciated.
 
Old 05-02-2011, 03:33 PM   #2
druuna
LQ Veteran
 
Registered: Sep 2003
Posts: 10,532
Blog Entries: 7

Rep: Reputation: 2387Reputation: 2387Reputation: 2387Reputation: 2387Reputation: 2387Reputation: 2387Reputation: 2387Reputation: 2387Reputation: 2387Reputation: 2387Reputation: 2387
Hi,

Try the reset command. You do need to be logged in.

Hope this helps.
 
1 members found this post helpful.
Old 05-02-2011, 03:35 PM   #3
business_kid
LQ Guru
 
Registered: Jan 2006
Location: Ireland
Distribution: Slackware & Android
Posts: 7,583

Rep: Reputation: 698Reputation: 698Reputation: 698Reputation: 698Reputation: 698Reputation: 698
have you tried
reset tty
it will ask which type and you type
linux
 
Old 05-02-2011, 03:38 PM   #4
MrCode
Member
 
Registered: Aug 2009
Location: Oregon, USA
Distribution: Arch
Posts: 864
Blog Entries: 31

Rep: Reputation: 148Reputation: 148
IME "reset" is quite sufficient (no need to specify the type of tty). In fact, I use this all the time to clear the terminal instead of "clear".
 
Old 05-02-2011, 03:48 PM   #5
stf92
Senior Member
 
Registered: Apr 2007
Location: Buenos Aires.
Distribution: Slackware
Posts: 3,485

Original Poster
Rep: Reputation: 51
I will engrave the name of this command in marbles. Sensational. Thanks a hundred times.

P.S.: If I had done 'less juan34' instead of 'cat juan34' I think it wouldn't have messed the screen up. Cat seems to be a dangerous tool.
 
Old 05-02-2011, 04:18 PM   #6
jefro
Moderator
 
Registered: Mar 2008
Posts: 15,394

Rep: Reputation: 2207Reputation: 2207Reputation: 2207Reputation: 2207Reputation: 2207Reputation: 2207Reputation: 2207Reputation: 2207Reputation: 2207Reputation: 2207Reputation: 2207
What command fixed it?
 
Old 05-02-2011, 04:29 PM   #7
goossen
Member
 
Registered: May 2006
Location: Bayern, Germany
Distribution: Many
Posts: 224

Rep: Reputation: 41
I think it was plain "reset".
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Screen unreadable in Ubuntu 11.04 gragra Linux - Newbie 2 05-03-2011 04:05 AM
Radeon 9600 & unreadable screen farna Linux - Newbie 5 11-11-2009 07:08 PM
I changed screen configs, restarted, video unreadable eddiewan Linux - Laptop and Netbook 0 11-07-2007 06:38 PM
Yikes! Installation screen unreadable... colors? jbrush SUSE / openSUSE 0 01-17-2006 07:27 PM
red hat 8 - flickering screen unreadable desktop brizboy Linux - Newbie 1 12-14-2004 11:23 AM


All times are GMT -5. The time now is 07:41 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration