Escapes???
Arinté
shouldbe at message.com
Fri Jun 2 09:09:29 EDT 2000
I am trying to write this escape seq to a device from python
"H\x1b\x23\x12art\x1b\x23\x01\n"
The \x1b\x23\x12 is supposed to be a command tell the device to do something
special with "art", but python is making it look like this \x1b\x23\x12a
"rt". Am I missing something on how to work with escape sequences? Is
there another way to write hex values in a string. I rather us \x00 because
that is what are testers are familiar with.
Thanks
jamarijr at hotmail.com
More information about the Python-list
mailing list