Linux Box Admin
Trusted Remote Administration
logo

Tilde
What's new
Articles
Micro HowTos
About
Contact







Index arrow Micro HowTos

index of all micro how-tos
arrow Userland

Fix a broken terminal
(0 votes)
Wednesday, 07 March 2007
   
    Fix a broken terminal    
     
       
 

To fix a broken terminal, try:

tput init
tput reset

If binary characters are sent to a terminal, it will often break because it interprets them as control characters. A random stream of control characters can make the terminal unreadable. You may not be able to see the commands as you type them until the terminal is reset.

To see the device of the current terminal:

tty

Pseudo-terminals under X are usually /dev/pts/?.

To see all current terminal settings:

stty -a
   
       
         
 



Copyright © 2006,2007 Linux Box Admin.

 
My NHL fan blog