Jump to content
IGNORED

Printer and CF7


moulinaie

Recommended Posts

Hello,

 

When printing a program using

LIST "PIO"

on the CF7+, the last page is not ejected. The printer is still waiting to complete the 60 lines (more or less)... So I must send a FF (form feed) manually:

OPEN #1:"PIO"
print #1:chr$(12)
close #1

Is there a better way?

 

Guillaume.

Link to comment
Share on other sites

4 hours ago, moulinaie said:

Hello,

 

When printing a program using


LIST "PIO"

on the CF7+, the last page is not ejected. The printer is still waiting to complete the 60 lines (more or less)... So I must send a FF (form feed) manually:


OPEN #1:"PIO"
print #1:chr$(12)
close #1

Is there a better way?

 

Guillaume.

Does your editor allow you to embedded the control character (CTRL L) in the file at the end of the text? 

Oops.  I think you are using BASIC's line editor.

 

Edited by TheBF
Link to comment
Share on other sites

Challenge accepted...

 

Hmm, entering ctrl-L into a basic line with quotes gets you an >8C in the listing, not an >0C.

20 PRINT "<ctrl-L>"

LIST

... 22 8C 22

REM ctrl-L becomes tokens 9A 8C or REM  FOR.

 

CALL POKEV(14272,12)

don't ask me how I found that address..I just looked for the byte with >8C in it.


Now that puts a real 0C in the listing!

 

SO.. its just barely possible to put a form feed char in your BASIC program, assuming you have E/A and some way to find the darn byte in VDP.

 

  • Like 1
Link to comment
Share on other sites

18 hours ago, fabrice montupet said:

Hi Guillaume,
Alas, I can't see in Basic how to send an ASCII CTRL-L, CHR$(12) or $0C command to the PIO with less number of instructions than the method above.  
Maybe the solution is on the printer side? What is your model?

 

It is a HP Laserjet 2200DN.

 

Link to comment
Share on other sites

14 hours ago, FarmerPotato said:

CALL POKEV(14272,12)

don't ask me how I found that address..I just looked for the byte with >8C in it.


Now that puts a real 0C in the listing!

 

SO.. its just barely possible to put a form feed char in your BASIC program, assuming you have E/A and some way to find the darn byte in VDP.

 

Ah ah !!

Great!

 

Guillaume.

Link to comment
Share on other sites

Laser printers (and most modern inkjets) are page printers.  While they will not print until an entire page has been received, like the old line printers an incomplete printed page is not ejected from the printer  unless it receives a form feed control character or the FF button is pressed.

 

Usually pressing the GO button will do the same (it has on my HPs.)  If that does not work, well, I have tried nothing and I am all out of ideas.

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...
  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...