Forrest logo
back to the tput tool

tput:tldr:9c1d3

tput: Reset all terminal attributes.
$ tput sgr0
try on your machine

The command tput sgr0 is used to reset all the text formatting and attributes in the terminal to their default values.

In Unix-like systems, the tput command is a utility that interacts with the terminal's capability database to control various terminal capabilities, such as cursor positioning, colors, and text formatting.

The sgr0 capability refers to "Set Graphics Rendition" reset, and it is used to reset any text formatting and attributes that might have been set previously. This includes attributes like bold, underline, colored text, or any other visual modifications applied to the text.

So, running tput sgr0 will reset the text formatting back to the default values, making the text appear as it normally would without any modifications.

This explanation was created by an AI. In most cases those are correct. But please always be careful and never run a command you are not sure if it is safe.
back to the tput tool