I'd like to print some errors in red and then go back to the standard color of the terminal. I'm doing this using the same bash commands e.g. \033[1;31;40m
In python it would be:
print ('\033[1;31;40mERROR:\033[1;37;40m')
the problem is that this works for my own terminal but if someone would have some different coloring the exit coloring wouldn't be the same
So I was wondering if there's a way in python to know what is the value of PS1 in bash or maybe some approach even more general to go back to the original coloring