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.
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.
tput sgr0 will reset the text formatting back to the default values, making the text appear as it normally would without any modifications.