Open relector-tuxnix opened 4 years ago
What kind of issues are the colors causing?
STDOUT contains bash colour codes. For example:
share_tree[share_name]['privs'] = colored('NO ACCESS', 'red') ===> \e[31mNO ACCESS\e[0m
What i would like to see is an option to ensure no bash colour codes are in STDOUT. For example:
share_tree[share_name]['privs'] = 'NO ACCESS' ===> NO ACCESS
I saw this in the option list, seems to be implemented? :)
If i run smbmap from a python3 script by calling subprocess.Popen i get terminal colors in the output.
Eg, \033[1;37m
Is it possible to have add a flag to disable termcolor so output does not have to be cleaned.