sgr0
sgr0 is the shorthand name for the ANSI escape sequence ESC[0m, which resets all graphic rendition attributes in terminals that support ANSI escape codes. SGR stands for Select Graphic Rendition, and the sequence consists of the escape character, a left bracket, one or more numeric parameters separated by semicolons, and the letter m. The parameter 0 acts as the reset command: when present, it clears any style set by previous SGR sequences and returns colors to the terminal’s defaults.
The reset affects text attributes such as bold or bright, faint, italic, underlined, blinking, inverse, hidden,
sgr0 is widely supported across modern terminals, including xterm-compatible emulators and Windows consoles with ANSI support,
In practice, sgr0 serves as a universal, portable way to clear styles, though some terminal features may