I think in Linux, line breaks are just a single \n character, but in windows, it's supposed to be \r\n. You might need to replace all \n's with \r\n's.
On Saturday, April 9, 2011 1:15:55 PM UTC-4, w2padawan wrote: > hello everybody, > > sorry if this a too basic question, but have not found anything about how > to solve this. > I'm trying to print some text to a serial printer directly from my > controller just pushing the text to /dev/ttyS0 with Popen. that works in > gnulinux but in win32 it doesn't work if the text has line breaks. > even, if I write a text with line breaks, doing a "type asdf.txt > com1" > print all the text in one line. > > in short, how could I [format the text to] print new lines in windows to a > serial printer? > > best regards, > danto >

