bulletmark / edir

Program to rename, remove, and copy files and directories using your editor
139 stars 8 forks source link

Reset output color in the terminal after the log function #16

Closed xtradev closed 1 year ago

xtradev commented 1 year ago

Currently the log function colors output by issuing a color sequence (like '\033[33m') before the actual message. This color persists in the terminal after edir quits. This change proposes to reset the color after each message.

bulletmark commented 1 year ago

Sorry, I fixed this in Nov and after seeing your PR I realized I had not pushed the commit which I have just done. Note I reset the default FG color rather remove all styles as you were doing, and as a matter of style you should define the color codes where the others were defined.