Re: chr(12) Form Feed in Notepad

2010-01-17 Thread bartc
"Dennis Lee Bieber" wrote in message news:mailman.1021.1263702437.28905.python-l...@python.org... On Sat, 16 Jan 2010 23:59:52 GMT, "bartc" declaimed the following in gmane.comp.python.general: My point was these other control codes from over 30 years ago are still in use today, so why no

Re: chr(12) Form Feed in Notepad

2010-01-16 Thread Ben Finney
Grant Edwards writes: > FF still works with a lot of things. Most ASCII printers still > honor it, as do pagers and programs like a2ps. I still use it > in ASCII text files... Yes. It's especially useful for making large sectional structure in a text file — for example, program source code — t

Re: chr(12) Form Feed in Notepad

2010-01-16 Thread Grant Edwards
On 2010-01-16, Nobody wrote: > On Fri, 15 Jan 2010 10:42:43 -0800, W. eWatson wrote: > >> I thought I'd put a page break, chr(12), character in a txt file I wrote >> to skip to the top of the page. It doesn't work. Comments? > > The 1970's are over, and neither Notepad nor your printer attempts t

Re: chr(12) Form Feed in Notepad

2010-01-16 Thread bartc
"Steve Holden" wrote in message news:mailman.1007.1263682208.28905.python-l...@python.org... bartc wrote: "Nobody" wrote in message news:pan.2010.01.16.04.24.18.437...@nowhere.com... On Fri, 15 Jan 2010 10:42:43 -0800, W. eWatson wrote: I thought I'd put a page break, chr(12), character i

Re: chr(12) Form Feed in Notepad

2010-01-16 Thread Steve Holden
bartc wrote: > > "Nobody" wrote in message > news:pan.2010.01.16.04.24.18.437...@nowhere.com... >> On Fri, 15 Jan 2010 10:42:43 -0800, W. eWatson wrote: >> >>> I thought I'd put a page break, chr(12), character in a txt file I wrote >>> to skip to the top of the page. It doesn't work. Comments? >

Re: chr(12) Form Feed in Notepad (Windows)

2010-01-16 Thread Steve Holden
Lie Ryan wrote: > On 01/17/10 02:37, W. eWatson wrote: >> D'Arcy J.M. Cain wrote: >>> On Fri, 15 Jan 2010 20:17:35 -0800 >>> "W. eWatson" wrote: Could be, but I have no way of easily knowing. In any case, I was trying to write a simple report that could be printed with titles at the

Re: chr(12) Form Feed in Notepad (Windows)

2010-01-16 Thread Tim Chase
John Yeung wrote: In another response, Tim Chase suggested creating an RTF file instead of plain text. I think this is your best bet if your goal is to get page breaks with the least amount of additional effort. The package he's probably referring to is PyRTF. I took a quick look at it and in

Re: chr(12) Form Feed in Notepad

2010-01-16 Thread bartc
"Nobody" wrote in message news:pan.2010.01.16.04.24.18.437...@nowhere.com... On Fri, 15 Jan 2010 10:42:43 -0800, W. eWatson wrote: I thought I'd put a page break, chr(12), character in a txt file I wrote to skip to the top of the page. It doesn't work. Comments? The 1970's are over, and ne

Re: chr(12) Form Feed in Notepad (Windows)

2010-01-16 Thread John Yeung
On Jan 15, 7:40 pm, "W. eWatson" wrote: > I am writing a txt file. It's up to the user to print > it using Notepad or some other tool. In another response, Tim Chase suggested creating an RTF file instead of plain text. I think this is your best bet if your goal is to get page breaks with the le

Re: chr(12) Form Feed in Notepad (Windows)

2010-01-16 Thread Lie Ryan
On 01/17/10 02:37, W. eWatson wrote: > D'Arcy J.M. Cain wrote: >> On Fri, 15 Jan 2010 20:17:35 -0800 >> "W. eWatson" wrote: >>> Could be, but I have no way of easily knowing. In any case, I was >>> trying to write a simple report that could be printed with titles at >>> the top of each page. If th

Re: chr(12) Form Feed in Notepad (Windows)

2010-01-16 Thread Tim Chase
W. eWatson wrote: I am writing a txt file. It's up to the user to print it using Notepad or some other tool. I have no idea how to send it directly to the printer, but I really don't want to furnish that capability in the program. From Google, The Graphics Device Interface (GDI). If you're wri

Re: chr(12) Form Feed in Notepad (Windows)

2010-01-16 Thread W. eWatson
D'Arcy J.M. Cain wrote: On Fri, 15 Jan 2010 20:17:35 -0800 "W. eWatson" wrote: Could be, but I have no way of easily knowing. In any case, I was trying to write a simple report that could be printed with titles at the top of each page. If there's another "common" format that I can write in to

Re: chr(12) Form Feed in Notepad (Windows)

2010-01-15 Thread D'Arcy J.M. Cain
On Fri, 15 Jan 2010 20:17:35 -0800 "W. eWatson" wrote: > Could be, but I have no way of easily knowing. In any case, I was trying > to write a simple report that could be printed with titles at the top of > each page. If there's another "common" format that I can write in to > produce the file,

Re: chr(12) Form Feed in Notepad (Windows)

2010-01-15 Thread W. eWatson
Neil Hodgson wrote: W. eWatson wrote: I am writing a txt file. It's up to the user to print it using Notepad or some other tool. WordPad will interpret chr(12) as you want. Neil That may be the solution. Just tell the end user to copy the file into it, and print it there. I just

Re: chr(12) Form Feed in Notepad

2010-01-15 Thread Nobody
On Fri, 15 Jan 2010 10:42:43 -0800, W. eWatson wrote: > I thought I'd put a page break, chr(12), character in a txt file I wrote > to skip to the top of the page. It doesn't work. Comments? The 1970's are over, and neither Notepad nor your printer attempts to maintain compatibility with a Telety

Re: chr(12) Form Feed in Notepad (Windows)

2010-01-15 Thread W. eWatson
Mensanator wrote: On Jan 15, 6:40 pm, "W. eWatson" wrote: Tim Chase wrote: W. eWatson wrote: Tim Chase wrote: ... program. From Google, The Graphics Device Interface (GDI). Have you considered the possibility that your printer can't print raw text files? I had one that would ONLY print Po

Re: chr(12) Form Feed in Notepad (Windows)

2010-01-15 Thread Neil Hodgson
W. eWatson wrote: > I am writing a txt file. It's up to the user to print it using Notepad > or some other tool. WordPad will interpret chr(12) as you want. Neil -- http://mail.python.org/mailman/listinfo/python-list

Re: chr(12) Form Feed in Notepad (Windows)

2010-01-15 Thread Mensanator
On Jan 15, 6:40 pm, "W. eWatson" wrote: > Tim Chase wrote: > > W. eWatson wrote: > >> Tim Chase wrote: > >>> The pseudo-pipeline comparison would be > > >>>   type file.txt > lpt1: > > >>> which would send the raw text file to the printer (assuming it's set > >>> up on LPT1, otherwise, use whateve

Re: chr(12) Form Feed in Notepad (Windows)

2010-01-15 Thread W. eWatson
Tim Chase wrote: W. eWatson wrote: Tim Chase wrote: The pseudo-pipeline comparison would be type file.txt > lpt1: which would send the raw text file to the printer (assuming it's set up on LPT1, otherwise, use whatever port it's attached to in your printer control panel); or are you using

Re: chr(12) Form Feed in Notepad (Windows)

2010-01-15 Thread Tim Chase
W. eWatson wrote: Tim Chase wrote: The pseudo-pipeline comparison would be type file.txt > lpt1: which would send the raw text file to the printer (assuming it's set up on LPT1, otherwise, use whatever port it's attached to in your printer control panel); or are you using something like

Re: chr(12) Form Feed in Notepad (Windows)

2010-01-15 Thread W. eWatson
Tim Chase wrote: W. eWatson wrote: Grant Edwards wrote: On 2010-01-15, W. eWatson wrote: I thought I'd put a page break, chr(12), character in a txt file I wrote to skip to the top of the page. It doesn't work. Comments? Yes, it does work. Apparently not with with my Brother 1440 laser pri

Re: chr(12) Form Feed in Notepad

2010-01-15 Thread Tim Chase
W. eWatson wrote: Grant Edwards wrote: On 2010-01-15, W. eWatson wrote: I thought I'd put a page break, chr(12), character in a txt file I wrote to skip to the top of the page. It doesn't work. Comments? Yes, it does work. Apparently not with with my Brother 1440 laser printer. The characte

Re: chr(12) Form Feed in Notepad

2010-01-15 Thread W. eWatson
Grant Edwards wrote: On 2010-01-15, W. eWatson wrote: I thought I'd put a page break, chr(12), character in a txt file I wrote to skip to the top of the page. It doesn't work. Comments? Yes, it does work. Apparently not with with my Brother 1440 laser printer. The character in NotePad.txt

Re: chr(12) Form Feed in Notepad

2010-01-15 Thread Grant Edwards
On 2010-01-15, W. eWatson wrote: > I thought I'd put a page break, chr(12), character in a txt > file I wrote to skip to the top of the page. It doesn't work. > Comments? Yes, it does work. -- Grant Edwards grante Yow! ... bleakness

Re: chr(12) Form Feed in Notepad

2010-01-15 Thread Duncan Booth
"W. eWatson" wrote: > I thought I'd put a page break, chr(12), character in a txt file I wrote > to skip to the top of the page. It doesn't work. Comments? > Did you intend to ask a question? If so you might like to read http://catb.org/~esr/faqs/smart-questions.html first. -- http://mail.pyt

chr(12) Form Feed in Notepad

2010-01-15 Thread W. eWatson
I thought I'd put a page break, chr(12), character in a txt file I wrote to skip to the top of the page. It doesn't work. Comments? -- http://mail.python.org/mailman/listinfo/python-list