Escapse sequences???
Arinté
jamarijr at my-deja.com
Fri Jun 2 10:47:24 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 to 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 use \x00 because that is what are testers are familiar with.
I guess I need 8bit sized escapes and not 16bit.
Thanks
Sent via Deja.com http://www.deja.com/
Before you buy.
More information about the Python-list
mailing list