Fixing the display with reset

From Linux Shell Scripting Tutorial - A Beginner's handbook
Jump to: navigation, search
← Get the name of the current terminalHomeGet screen width and hight with tput →

Sometime your terminal gets messed up. It will be full of weird character sequences that can lock down your display. These characters will hide what you type or character displayed into strange symbols.

Messed up bash terminal session


To fix your display type the reset command[1] or tput command as follows:

reset

OR

tput reset

Or reset an AT&T 5620 terminal, overriding the type of terminal in the environmental variable TERM:

tput -T5620 reset

References

  1. BASH – fix the display.
← Get the name of the current terminalHomeGet screen width and hight with tput →