How to open .txt file that contains ansi color codes
Question:
In my telnet server written in python, if i send a message to client socket like this:
socket.send(" 33[32;1mHello! 33[0m")
then it is correctly colorized for the client.
But when i use a text file, for example, hello.txt with such content:
In my telnet server written in python, if i send a message to client socket like this:
socket.send(" 33[32;1mHello! 33[0m")
then it is correctly colorized for the client.
But when i use a text file, for example, hello.txt with such content: