chr(12) Form Feed in Notepad

bartc bartc at freeuk.com
Sat Jan 16 18:59:52 EST 2010


"Steve Holden" <steve at holdenweb.com> wrote in message 
news:mailman.1007.1263682208.28905.python-list at python.org...
> bartc wrote:
>>
>> "Nobody" <nobody at nowhere.com> wrote in message
>> news:pan.2010.01.16.04.24.18.437000 at 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 neither Notepad nor your printer attempts to
>>> maintain compatibility with a Teletype model 37.
>>
>> Odd that TXT files under Windows still use the same 13 (carriage
>> return), 10 (linefeed) and 9 (tab) codes that used to work on my ASR 33.
>> So why not code 12 (formfeed)?
>>
> Because the KSR/ASR33 devices were designed for continuous output in
> things like torn-tape and torn-paper messaging systems (where I believe
> Cable and Wireless made a lot of  money once upon a time). There was no
> point paginating the copy, and to do so would have been wasteful.

My point was these other control codes from over 30 years ago are still in 
use today, so why not also make use of chr(12)?

-- 
Bartc 




More information about the Python-list mailing list