Page 1 of 1

Pyilper: how to avoid printing of the line number?

PostPosted: Mon Sep 20, 2021 8:38 am
by floppy_stuttgart
Hello,
by making PRP "RGAM00" on my HP41 with pilbox and Pyilper,
the code below is going into the area "Printer1" of Pyilper.
Is there any method for deactivating the printing of the line numbers?
(if not, all fine; not a blocking point for me, just a little bit disturbing)

Code: Select all
 4:38PM 01/21
 01 LBL "RGAM00"
 02 STO 07
 03 0.0001
 04 STO 01
 05 1.461
 06 STO 02
 07 "ZWFF"
 08 ASTO 06
 09 SOLVE
 10 RTN
 11 LBL "ZWFF"
 12 XEQ "GAMMA"
 13 RCL 07
 14 -
 15 RTN
 16 END

Re: Pyilper: how to avoid printing of the line number?

PostPosted: Mon Sep 20, 2021 3:15 pm
by pcscote
Flags 15 and 16 changes manual/normal/trace modes and PRP listing format.

Re: Pyilper: how to avoid printing of the line number?

PostPosted: Tue Sep 21, 2021 2:39 pm
by floppy_stuttgart
Thanks. SF15 in pyILPER & V41R9 deactivate the listing and numbering. Now the printing is more compact and not all line numbers are listed; see result below.
SF or CF16 has no identified effect in pyILPER & V41R9 so far.
I could not find a way to take the numbering out of a listing (pyIPLER with V41): according HP-IL manual, no indication this can be done.
Thats fine.

SF 15
PRP "SCPEREL"
Code: Select all
 4:19PM 09/21
 01 LBL "SCPEREL"
RAD ADV "ELLIPSE CALC"
PRA "ISOPERIME OF" PRA
PRX " IN          "
PRA STO 20 X<>Y
0.636619771 X<>Y PRX
" STEPS       " PRA
"------------" PRA /
* 4 / STO 22
0.636619771 RCL 20 *
4 / STO 23
 31 LBL 01
"X then Y" PRA PRX
RCL 20 XEQ "BPEREL"
PRX RCL 23 R-P
"RADIUS-ANGLE" PRA PRX
X<>Y PI 2 / X<>Y -
PRX "------------" PRA
RCL 22 ST- 23 RCL 23
X>0? GTO 01 DEG RTN
END

Re: Pyilper: how to avoid printing of the line number?

PostPosted: Tue Sep 21, 2021 6:37 pm
by pcscote
if you only want to remove the line numbers, load the listing in a text editor, do a block select, then do a delete.
Most text editor support block select/delete/insert nowadays.

Re: Pyilper: how to avoid printing of the line number?

PostPosted: Wed Sep 22, 2021 10:22 am
by floppy_stuttgart
Thanks. First time I have done this: with "gedit".
Setup in the attachment.
Works.

Re: Pyilper: how to avoid printing of the line number?

PostPosted: Wed Sep 22, 2021 1:24 pm
by pcscote
Well, gedit is to Linux what notepad is for Windows, so no block selection not available for this one.

This is what column selection look like with BBEdit on macOS

Image

Re: Pyilper: how to avoid printing of the line number?

PostPosted: Wed Sep 22, 2021 4:01 pm
by floppy_stuttgart
Thanks.
I expect the behaviour in Notepad++ in Win10 to be the same like GEDIT (linux). If not, I will feedback here.
Now, the all loop of printing HP41 programs is closed for me (no HP printer 82162A necessary; I know, I dont show emotions here; I have already a family printer and will use it):
a) programming in an HP41 (hardware or emulator) and printing into pyILER terminal or printing area (via pilbox if the HP41 hardware is used)
b) screen (content) copy of the terminal or printing area
c) paste of that screen content copy into a text editor (taking away the lines or not in the editor) before further editing for program adaptation in a PC editor or printing on a standard PC printer

Conclusion: avoiding printing the lines numbers in a program list is done by using the functionality of editors before printing to a PC printer.