Pyilper: how to avoid printing of the line number?

Programs for HP-41

Pyilper: how to avoid printing of the line number?

Postby floppy_stuttgart » Mon Sep 20, 2021 8:38 am

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
floppy_stuttgart
.........
.........
 
Posts: 88
Joined: Mon Mar 29, 2021 2:36 pm

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

Postby pcscote » Mon Sep 20, 2021 3:15 pm

Flags 15 and 16 changes manual/normal/trace modes and PRP listing format.
User avatar
pcscote
......
......
 
Posts: 22
Joined: Sat Oct 25, 2014 1:24 pm
Location: Quebec/Canada

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

Postby floppy_stuttgart » Tue Sep 21, 2021 2:39 pm

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
floppy_stuttgart
.........
.........
 
Posts: 88
Joined: Mon Mar 29, 2021 2:36 pm

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

Postby pcscote » Tue Sep 21, 2021 6:37 pm

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.
User avatar
pcscote
......
......
 
Posts: 22
Joined: Sat Oct 25, 2014 1:24 pm
Location: Quebec/Canada

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

Postby floppy_stuttgart » Wed Sep 22, 2021 10:22 am

Thanks. First time I have done this: with "gedit".
Setup in the attachment.
Works.
Attachments
Bildschirmfoto vom 2021-09-22 12-20-23.png
floppy_stuttgart
.........
.........
 
Posts: 88
Joined: Mon Mar 29, 2021 2:36 pm

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

Postby pcscote » Wed Sep 22, 2021 1:24 pm

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
User avatar
pcscote
......
......
 
Posts: 22
Joined: Sat Oct 25, 2014 1:24 pm
Location: Quebec/Canada

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

Postby floppy_stuttgart » Wed Sep 22, 2021 4:01 pm

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.
floppy_stuttgart
.........
.........
 
Posts: 88
Joined: Mon Mar 29, 2021 2:36 pm


Return to HP-41 Software

Who is online

Users browsing this forum: No registered users and 1 guest

cron