I am looking for a way of putting non-printable characters in a string in python.
Small background information: I am working with windows command prompt over SSH using paramiko. however paramiko does not 'parse'/'work with' the ANSI Terminal Emulation escape sequences. So they are appearing in my output, which I do not want. So I need to strip-off these escape sequences.
These strings/escape sequences however are encoded in the following manner: Esc[Line;ColumnH
And as you can guess. I can't get the esc-byte value in a string. It will either print as, well, something like 0x1b or 27. Thus useless.
Is there anyone who knows how to solve this? Thanks in advance.