Forums
New posts
Search forums
Members
Current visitors
Log in
Register
What's new
Search
Search
Search titles only
By:
New posts
Search forums
Menu
Log in
Register
Install the app
Install
Forums
Archive
Archive
Python
chr(12) Form Feed in Notepad
JavaScript is disabled. For a better experience, please enable JavaScript in your browser before proceeding.
You are using an out of date browser. It may not display this or other websites correctly.
You should upgrade or use an
alternative browser
.
Reply to thread
Message
[QUOTE="bartc, post: 4010980"] Until recently at least printers were non-text-only but did not necessarily accept only bitmap images. For example they might use Postscript, HP/PCL or Epson Esc/p (or whatever the exact names were). I'm fairly certain the last two responded directly to chr(12) codes in the input stream. Windows may or may not drive these in bitmap mode (which can be simpler for Windows, but then you lose any special processing available inside the printer), but given the task of sending a TXT file to such a printer, it is not unreasonable to expect it to honour codes such as CR, LF and FF, especially as most printers seem to be page-oriented now rather than use roll or fanfold paper. It would just need to translate FF into the page-break command for the printer in question, eg. send the image so far and eject the page, just as it might do for EOF. [/QUOTE]
Verification
Post reply
Forums
Archive
Archive
Python
chr(12) Form Feed in Notepad
Top