clippy
clippy copied to clipboard
Restores console state to original colors
The original code assumes the background is black and the foreground is white. My terminal (Windows Terminal) uses transparency, so the colors are not restored properly. The ANSI codes define a restore sequence to return the colors to their original state. This has been tested in CMD on Windows Terminal, but I have not had the chance to test it on Linux.