I’m using os.popen() in order to run a few commands.
This is what “man ls” looks like:

Any ideas why the text is displayed as such. I tried both Arial and Consolas fonts.
Help would be amazing! Thanks
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
Those are backspace characters:
manis trying to backspace and reprint characters to get bolding, or underscores plus backspaces to get underlining.The
manman page says:You could also do a simple post-processing in Python:
This removes any pair of characters where the second character is a backspace.