Rocksolid Light

Welcome to novaBBS (click a section below)

mail  files  register  newsreader  groups  login

Message-ID:  

He keeps differentiating, flying off on a tangent.


devel / comp.os.cpm / Paginating TYPE output

SubjectAuthor
* Paginating TYPE outputPaolo Amoroso
`* Re: Paginating TYPE outputfridtjof.ma...@gmail.com
 +* Re: Paginating TYPE outputUdo Munk
 |+* Re: Paginating TYPE outputPaolo Amoroso
 ||`- Re: Paginating TYPE outputDouglas Miller
 |+* Re: Paginating TYPE outputPaolo Amoroso
 ||`- Re: Paginating TYPE outputMartin
 |`* Re: Paginating TYPE outputdott.Piergiorgio
 | `- Re: Paginating TYPE outputUdo Munk
 `* Re: Paginating TYPE outputMartin
  `* Re: Paginating TYPE outputfridtjof.ma...@gmail.com
   `* Re: Paginating TYPE outputMartin
    `- Re: Paginating TYPE outputStephen Mitchell

1
Paginating TYPE output

<15bf6213-e7a0-45f2-8c3f-9524c91ee104n@googlegroups.com>

  copy mid

https://www.novabbs.com/devel/article-flat.php?id=2746&group=comp.os.cpm#2746

  copy link   Newsgroups: comp.os.cpm
X-Received: by 2002:a05:6214:148b:: with SMTP id bn11mr5660695qvb.67.1631805030314;
Thu, 16 Sep 2021 08:10:30 -0700 (PDT)
X-Received: by 2002:a9d:655a:: with SMTP id q26mr5014788otl.130.1631805029888;
Thu, 16 Sep 2021 08:10:29 -0700 (PDT)
Path: i2pn2.org!i2pn.org!weretis.net!feeder6.news.weretis.net!news.misty.com!border2.nntp.dca1.giganews.com!nntp.giganews.com!news-out.google.com!nntp.google.com!postnews.google.com!google-groups.googlegroups.com!not-for-mail
Newsgroups: comp.os.cpm
Date: Thu, 16 Sep 2021 08:10:29 -0700 (PDT)
Injection-Info: google-groups.googlegroups.com; posting-host=2.35.23.231; posting-account=uOUOHg4AAADo8AO9B3SI43ekV3AA6lU0
NNTP-Posting-Host: 2.35.23.231
User-Agent: G2/1.0
MIME-Version: 1.0
Message-ID: <15bf6213-e7a0-45f2-8c3f-9524c91ee104n@googlegroups.com>
Subject: Paginating TYPE output
From: paolo.am...@gmail.com (Paolo Amoroso)
Injection-Date: Thu, 16 Sep 2021 15:10:30 +0000
Content-Type: text/plain; charset="UTF-8"
Lines: 2
 by: Paolo Amoroso - Thu, 16 Sep 2021 15:10 UTC

On CP/M 2.2 does the TYPE command have any options for paginating the output and reading it without the text scrolling continuously? I mean something like Unix more(1).

I checked the documentation and other sources but can't find any such pagination options and z80pack ignores [Pnn]. Although flow-control commands such as ^S/^Q can suspend and resume the output, they're an inaccurate workaround even on a slow system.

Re: Paginating TYPE output

<3fd11fe2-f9f7-499f-b52d-56368e0a6dfan@googlegroups.com>

  copy mid

https://www.novabbs.com/devel/article-flat.php?id=2747&group=comp.os.cpm#2747

  copy link   Newsgroups: comp.os.cpm
X-Received: by 2002:a05:6214:1593:: with SMTP id m19mr6088697qvw.36.1631807638604;
Thu, 16 Sep 2021 08:53:58 -0700 (PDT)
X-Received: by 2002:aca:b6d5:: with SMTP id g204mr9634628oif.29.1631807638406;
Thu, 16 Sep 2021 08:53:58 -0700 (PDT)
Path: i2pn2.org!i2pn.org!weretis.net!feeder6.news.weretis.net!news.misty.com!border2.nntp.dca1.giganews.com!nntp.giganews.com!news-out.google.com!nntp.google.com!postnews.google.com!google-groups.googlegroups.com!not-for-mail
Newsgroups: comp.os.cpm
Date: Thu, 16 Sep 2021 08:53:58 -0700 (PDT)
In-Reply-To: <15bf6213-e7a0-45f2-8c3f-9524c91ee104n@googlegroups.com>
Injection-Info: google-groups.googlegroups.com; posting-host=2607:f2c0:955f:2c00:e944:939f:55ad:a135;
posting-account=KOfC_woAAAC0YBGf-3r2aV5g2Aifd9jO
NNTP-Posting-Host: 2607:f2c0:955f:2c00:e944:939f:55ad:a135
References: <15bf6213-e7a0-45f2-8c3f-9524c91ee104n@googlegroups.com>
User-Agent: G2/1.0
MIME-Version: 1.0
Message-ID: <3fd11fe2-f9f7-499f-b52d-56368e0a6dfan@googlegroups.com>
Subject: Re: Paginating TYPE output
From: fridtjof...@gmail.com (fridtjof.ma...@gmail.com)
Injection-Date: Thu, 16 Sep 2021 15:53:58 +0000
Content-Type: text/plain; charset="UTF-8"
Lines: 43
 by: fridtjof.ma...@gmail - Thu, 16 Sep 2021 15:53 UTC

On Thursday, September 16, 2021 at 11:10:30 AM UTC-4, paolo....@gmail.com wrote:
> On CP/M 2.2 does the TYPE command have any options for paginating the output and reading it without the text scrolling continuously? I mean something like Unix more(1).
>
> I checked the documentation and other sources but can't find any such pagination options and z80pack ignores [Pnn]. Although flow-control commands such as ^S/^Q can suspend and resume the output, they're an inaccurate workaround even on a slow system.

No, CP/M TYPE does not paginate
PIP does NOT ignore [Pnn], it just isn't doing what you think. It inserts a form feed every nn lines.

Since CP/M was expected to be used on a teletype, just look "up higher in the roll". Your terminal emulator probably has a "scroll back" function.

Add-on programs provide "more" type function (I use one called VIEW.COM, sorry, don't know where its from). VIEW.COM is 384 bytes long. Here it is as a HEX file (LOAD it)

:10010000C30C017E1223130DC20301C9215C00112F
:100110001A010E0CCD0301C34101CD0616C3FB0C21
:10012000CDA00DCDBB0D00B50DC3FB0CCDA00DC3F7
:10013000FB0CCD960DFE38CA7B0CE63602004079EA
:10014000E6C3B1012A3D01EB2A3F017D937C9ADA97
:100150009A01210000223F01EB2A3D017B957A9C08
:10016000D28C012A3B0119EB0E1ACD0500111A01A0
:100170000E14CD0500B7C286011180002A3F011977
:10018000223F01C358012A3F01223D011180000E88
:100190001ACD0500210000223F01EB2A3B0119EB9B
:1001A0002A3D017DB43E1AC81A2A3F0123223F018D
:1001B000C9AF322601323A01210040223D01223FDF
:1001C000010E0F111A01CD05003CC2EA010E091102
:1001D000D801CD0500C300000D0A4E4F20444953FD
:1001E0004B24494E2046494C45243E17323502CD1A
:1001F0004401FE1ACA0000FE0ACA0702F50E025F99
:10020000CD0500F1C3EF013A35023D323502CA1E79
:10021000023E0AF50E025FCD0500F1C3EF013E0A72
:10022000F50E025FCD0500F10E01CD0500FE03CAFB
:100230000000C3EA01000000000000000000000010
:1002400000000000000000000000000000000000AE
:10025000000000000000000000000000000000009E
:10026000000000000000000000000000000000008E
:10027000000000000000000000000000000000007E
:00000001FF

VIEW file - any key to go to next page ^C to exit Location 1EB is the
number of lines per page (default 17h, make it whatever you want)

FredW

Re: Paginating TYPE output

<ff178173-77ce-4093-99ee-1de4281f5c53n@googlegroups.com>

  copy mid

https://www.novabbs.com/devel/article-flat.php?id=2748&group=comp.os.cpm#2748

  copy link   Newsgroups: comp.os.cpm
X-Received: by 2002:a05:620a:430c:: with SMTP id u12mr2415377qko.439.1631808417734;
Thu, 16 Sep 2021 09:06:57 -0700 (PDT)
X-Received: by 2002:a9d:4e06:: with SMTP id p6mr5266268otf.261.1631808417439;
Thu, 16 Sep 2021 09:06:57 -0700 (PDT)
Path: i2pn2.org!i2pn.org!weretis.net!feeder6.news.weretis.net!news.misty.com!border2.nntp.dca1.giganews.com!nntp.giganews.com!news-out.google.com!nntp.google.com!postnews.google.com!google-groups.googlegroups.com!not-for-mail
Newsgroups: comp.os.cpm
Date: Thu, 16 Sep 2021 09:06:57 -0700 (PDT)
In-Reply-To: <3fd11fe2-f9f7-499f-b52d-56368e0a6dfan@googlegroups.com>
Injection-Info: google-groups.googlegroups.com; posting-host=197.163.17.127; posting-account=RHtB3AoAAABZlu_FJY7ySUmJrtfW41bO
NNTP-Posting-Host: 197.163.17.127
References: <15bf6213-e7a0-45f2-8c3f-9524c91ee104n@googlegroups.com> <3fd11fe2-f9f7-499f-b52d-56368e0a6dfan@googlegroups.com>
User-Agent: G2/1.0
MIME-Version: 1.0
Message-ID: <ff178173-77ce-4093-99ee-1de4281f5c53n@googlegroups.com>
Subject: Re: Paginating TYPE output
From: udo.m...@freenet.de (Udo Munk)
Injection-Date: Thu, 16 Sep 2021 16:06:57 +0000
Content-Type: text/plain; charset="UTF-8"
Lines: 3
 by: Udo Munk - Thu, 16 Sep 2021 16:06 UTC

the view program is on Many z80pack disks, source
Is in z80pack repo.

Re: Paginating TYPE output

<9030da91-4990-460e-90a7-3328facac92bn@googlegroups.com>

  copy mid

https://www.novabbs.com/devel/article-flat.php?id=2750&group=comp.os.cpm#2750

  copy link   Newsgroups: comp.os.cpm
X-Received: by 2002:a05:622a:15d0:: with SMTP id d16mr5954895qty.185.1631812561586;
Thu, 16 Sep 2021 10:16:01 -0700 (PDT)
X-Received: by 2002:a05:6808:b08:: with SMTP id s8mr690693oij.97.1631812561224;
Thu, 16 Sep 2021 10:16:01 -0700 (PDT)
Path: i2pn2.org!i2pn.org!weretis.net!feeder6.news.weretis.net!news.misty.com!border2.nntp.dca1.giganews.com!nntp.giganews.com!news-out.google.com!nntp.google.com!postnews.google.com!google-groups.googlegroups.com!not-for-mail
Newsgroups: comp.os.cpm
Date: Thu, 16 Sep 2021 10:16:00 -0700 (PDT)
In-Reply-To: <ff178173-77ce-4093-99ee-1de4281f5c53n@googlegroups.com>
Injection-Info: google-groups.googlegroups.com; posting-host=2.35.23.231; posting-account=uOUOHg4AAADo8AO9B3SI43ekV3AA6lU0
NNTP-Posting-Host: 2.35.23.231
References: <15bf6213-e7a0-45f2-8c3f-9524c91ee104n@googlegroups.com>
<3fd11fe2-f9f7-499f-b52d-56368e0a6dfan@googlegroups.com> <ff178173-77ce-4093-99ee-1de4281f5c53n@googlegroups.com>
User-Agent: G2/1.0
MIME-Version: 1.0
Message-ID: <9030da91-4990-460e-90a7-3328facac92bn@googlegroups.com>
Subject: Re: Paginating TYPE output
From: paolo.am...@gmail.com (Paolo Amoroso)
Injection-Date: Thu, 16 Sep 2021 17:16:01 +0000
Content-Type: text/plain; charset="UTF-8"
Lines: 0
 by: Paolo Amoroso - Thu, 16 Sep 2021 17:16 UTC

Thanks Fred and Udo, that's an interesting historical insight.

Re: Paginating TYPE output

<df377cac-eee5-4f06-a93c-6c0386f4bfd1n@googlegroups.com>

  copy mid

https://www.novabbs.com/devel/article-flat.php?id=2752&group=comp.os.cpm#2752

  copy link   Newsgroups: comp.os.cpm
X-Received: by 2002:a05:620a:13cc:: with SMTP id g12mr7064639qkl.277.1631826003267;
Thu, 16 Sep 2021 14:00:03 -0700 (PDT)
X-Received: by 2002:a05:6830:448c:: with SMTP id r12mr3415595otv.166.1631826003046;
Thu, 16 Sep 2021 14:00:03 -0700 (PDT)
Path: i2pn2.org!i2pn.org!weretis.net!feeder6.news.weretis.net!news.misty.com!border2.nntp.dca1.giganews.com!nntp.giganews.com!news-out.google.com!nntp.google.com!postnews.google.com!google-groups.googlegroups.com!not-for-mail
Newsgroups: comp.os.cpm
Date: Thu, 16 Sep 2021 14:00:02 -0700 (PDT)
In-Reply-To: <9030da91-4990-460e-90a7-3328facac92bn@googlegroups.com>
Injection-Info: google-groups.googlegroups.com; posting-host=96.42.194.246; posting-account=5XW4vgoAAADMD8xScYja8bdzAXoYQrTS
NNTP-Posting-Host: 96.42.194.246
References: <15bf6213-e7a0-45f2-8c3f-9524c91ee104n@googlegroups.com>
<3fd11fe2-f9f7-499f-b52d-56368e0a6dfan@googlegroups.com> <ff178173-77ce-4093-99ee-1de4281f5c53n@googlegroups.com>
<9030da91-4990-460e-90a7-3328facac92bn@googlegroups.com>
User-Agent: G2/1.0
MIME-Version: 1.0
Message-ID: <df377cac-eee5-4f06-a93c-6c0386f4bfd1n@googlegroups.com>
Subject: Re: Paginating TYPE output
From: durgadas...@gmail.com (Douglas Miller)
Injection-Date: Thu, 16 Sep 2021 21:00:03 +0000
Content-Type: text/plain; charset="UTF-8"
Lines: 0
 by: Douglas Miller - Thu, 16 Sep 2021 21:00 UTC

CP/M 2.2 TYPE did not page, but CP/M 3 TYPE did. Back in the day, CP/M 2.2 users got pretty good at using ^S/^Q to control the spewing of text from TYPE.

Re: Paginating TYPE output

<808b862c-34f7-430f-b653-cbbb94ebe7een@googlegroups.com>

  copy mid

https://www.novabbs.com/devel/article-flat.php?id=2753&group=comp.os.cpm#2753

  copy link   Newsgroups: comp.os.cpm
X-Received: by 2002:a05:620a:1658:: with SMTP id c24mr9268286qko.354.1631867589868;
Fri, 17 Sep 2021 01:33:09 -0700 (PDT)
X-Received: by 2002:a4a:6b13:: with SMTP id g19mr5024219ooc.95.1631867589516;
Fri, 17 Sep 2021 01:33:09 -0700 (PDT)
Path: i2pn2.org!i2pn.org!weretis.net!feeder6.news.weretis.net!news.misty.com!border2.nntp.dca1.giganews.com!nntp.giganews.com!news-out.google.com!nntp.google.com!postnews.google.com!google-groups.googlegroups.com!not-for-mail
Newsgroups: comp.os.cpm
Date: Fri, 17 Sep 2021 01:33:09 -0700 (PDT)
In-Reply-To: <ff178173-77ce-4093-99ee-1de4281f5c53n@googlegroups.com>
Injection-Info: google-groups.googlegroups.com; posting-host=2.35.23.231; posting-account=uOUOHg4AAADo8AO9B3SI43ekV3AA6lU0
NNTP-Posting-Host: 2.35.23.231
References: <15bf6213-e7a0-45f2-8c3f-9524c91ee104n@googlegroups.com>
<3fd11fe2-f9f7-499f-b52d-56368e0a6dfan@googlegroups.com> <ff178173-77ce-4093-99ee-1de4281f5c53n@googlegroups.com>
User-Agent: G2/1.0
MIME-Version: 1.0
Message-ID: <808b862c-34f7-430f-b653-cbbb94ebe7een@googlegroups.com>
Subject: Re: Paginating TYPE output
From: paolo.am...@gmail.com (Paolo Amoroso)
Injection-Date: Fri, 17 Sep 2021 08:33:09 +0000
Content-Type: text/plain; charset="UTF-8"
Lines: 7
 by: Paolo Amoroso - Fri, 17 Sep 2021 08:33 UTC

On Thursday, September 16, 2021 at 6:06:58 PM UTC+2, Udo Munk wrote:
> the view program is on Many z80pack disks, source
> Is in z80pack repo.

Which of the distribution archives[1] includes the VIEW.COM program? I can't find it in the z80pack source tree.

[1] https://www.autometer.de/unix4fun/z80pack/#download

Re: Paginating TYPE output

<si21te$ol4$1@gioia.aioe.org>

  copy mid

https://www.novabbs.com/devel/article-flat.php?id=2754&group=comp.os.cpm#2754

  copy link   Newsgroups: comp.os.cpm
Path: i2pn2.org!i2pn.org!aioe.org!NyZXviZtw7LfkJSneeJOJQ.user.46.165.242.75.POSTED!not-for-mail
From: this.is....@so.its.invalid (Martin)
Newsgroups: comp.os.cpm
Subject: Re: Paginating TYPE output
Date: Fri, 17 Sep 2021 14:31:38 +0200
Organization: Aioe.org NNTP Server
Message-ID: <si21te$ol4$1@gioia.aioe.org>
References: <15bf6213-e7a0-45f2-8c3f-9524c91ee104n@googlegroups.com> <3fd11fe2-f9f7-499f-b52d-56368e0a6dfan@googlegroups.com> <ff178173-77ce-4093-99ee-1de4281f5c53n@googlegroups.com> <808b862c-34f7-430f-b653-cbbb94ebe7een@googlegroups.com>
Mime-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 7bit
Injection-Info: gioia.aioe.org; logging-data="25252"; posting-host="NyZXviZtw7LfkJSneeJOJQ.user.gioia.aioe.org"; mail-complaints-to="abuse@aioe.org";
User-Agent: Mozilla/5.0 (X11; Linux i686; rv:20.0) Gecko/20100101 SeaMonkey/2.17.1
X-Notice: Filtered by postfilter v. 0.9.2
 by: Martin - Fri, 17 Sep 2021 12:31 UTC

Am 09/17/2021 10:33 AM, Paolo Amoroso schrieb:
> On Thursday, September 16, 2021 at 6:06:58 PM UTC+2, Udo Munk wrote:
>> the view program is on Many z80pack disks, source
>> Is in z80pack repo.
>
> Which of the distribution archives[1] includes the VIEW.COM program? I can't find it in the z80pack source tree.
>
>
> [1] https://www.autometer.de/unix4fun/z80pack/#download
>

This "view.com" is not from z80pack, you find it here:
<http://www.sunrise-ev.com/z80.htm>

In <http://www.sunrise-ev.com/photos/z80/SD-CARD.zip>

The images are 8' SS/SD images, but with no sector skew (1).

Using "cpmtools", with this custom diskdefs

$ cat ./diskdefs
diskdef z80mc
seclen 128
tracks 77
sectrk 26
blocksize 1024
maxdir 64
skew 1
boottrk 2
os 2.2
end

$ cpmls -l -f z80mc DISK-A.BIN
0:
-rwxrwxrwx 8192 Jan 01 1970 asm.com
-rw-rw-rw- 12288 Jan 01 1970 bios.asm
-rwxrwxrwx 4864 Jan 01 1970 ddt.com
-rw-rw-rw- 10240 Jan 01 1970 deblock.asm
-rw-rw-rw- 6400 Jan 01 1970 diskdef.lib
-rw-rw-rw- 4352 Jan 01 1970 dump.asm
-rwxrwxrwx 512 Jan 01 1970 dump.com
-rwxrwxrwx 512 Jan 01 1970 dumpcpd.com
-rwxrwxrwx 7680 Jan 01 1970 ed.com
-rwxrwxrwx 1792 Jan 01 1970 genmod.com
-rwxrwxrwx 1792 Jan 01 1970 load.com
-rwxrwxrwx 3072 Jan 01 1970 ls.com
-rwxrwxrwx 24320 Jan 01 1970 mbasic.com
-rwxrwxrwx 3328 Jan 01 1970 mon-32k.com
-rwxrwxrwx 10240 Jan 01 1970 movcpm.com
-rwxrwxrwx 11776 Jan 01 1970 nswp.com
-rw-rw-rw- 29824 Jan 01 1970 nswp.txt
-rwxrwxrwx 7424 Jan 01 1970 pip.com
-rwxrwxrwx 2560 Jan 01 1970 rlocbios.com
-rwxrwxrwx 5376 Jan 01 1970 stat.com
-rw-rw-rw- 16128 Jan 01 1970 stdbios.asm
-rwxrwxrwx 1280 Jan 01 1970 submit.com
-rwxrwxrwx 1152 Jan 01 1970 survey.com
-rwxrwxrwx 1024 Jan 01 1970 sysgen.com

-rwxrwxrwx 384 Jan 01 1970 view.com

-rwxrwxrwx 10624 Jan 01 1970 wm.com
-rw-rw-rw- 2816 Jan 01 1970 wm.hlp
-rw-rw-rw- 512 Jan 01 1970 xmodem.cfg
-rwxrwxrwx 7680 Jan 01 1970 xmodem.com
-rwxrwxrwx 768 Jan 01 1970 xsub.com

Have fun!
Martin

Re: Paginating TYPE output

<si6ph3$16q7$1@gioia.aioe.org>

  copy mid

https://www.novabbs.com/devel/article-flat.php?id=2759&group=comp.os.cpm#2759

  copy link   Newsgroups: comp.os.cpm
Path: i2pn2.org!i2pn.org!aioe.org!t5j6epPF7W16uTQh2YZzGQ.user.46.165.242.75.POSTED!not-for-mail
From: this.is....@so.its.invalid (Martin)
Newsgroups: comp.os.cpm
Subject: Re: Paginating TYPE output
Date: Sun, 19 Sep 2021 09:39:06 +0200
Organization: Aioe.org NNTP Server
Message-ID: <si6ph3$16q7$1@gioia.aioe.org>
References: <15bf6213-e7a0-45f2-8c3f-9524c91ee104n@googlegroups.com> <3fd11fe2-f9f7-499f-b52d-56368e0a6dfan@googlegroups.com>
Mime-Version: 1.0
Content-Type: text/plain; charset=UTF-8; format=flowed
Content-Transfer-Encoding: 7bit
Injection-Info: gioia.aioe.org; logging-data="39751"; posting-host="t5j6epPF7W16uTQh2YZzGQ.user.gioia.aioe.org"; mail-complaints-to="abuse@aioe.org";
User-Agent: Mozilla/5.0 (X11; Linux i686; rv:20.0) Gecko/20100101 SeaMonkey/2.17.1
X-Notice: Filtered by postfilter v. 0.9.2
 by: Martin - Sun, 19 Sep 2021 07:39 UTC

Am 09/16/2021 05:53 PM, fridtjof.ma...@gmail.com schrieb:
> On Thursday, September 16, 2021 at 11:10:30 AM UTC-4, paolo....@gmail.com wrote:
>> On CP/M 2.2 does the TYPE command have any options for paginating the output and reading it without the text scrolling continuously? I mean something like Unix more(1).
>>
>> I checked the documentation and other sources but can't find any such pagination options and z80pack ignores [Pnn]. Although flow-control commands such as ^S/^Q can suspend and resume the output, they're an inaccurate workaround even on a slow system.
>
> No, CP/M TYPE does not paginate
> PIP does NOT ignore [Pnn], it just isn't doing what you think. It inserts a form feed every nn lines.
>
> Since CP/M was expected to be used on a teletype, just look "up higher in the roll". Your terminal emulator probably has a "scroll back" function.
>
> Add-on programs provide "more" type function (I use one called VIEW.COM, sorry, don't know where its from). VIEW.COM is 384 bytes long. Here it is as a HEX file (LOAD it)
>
> :10010000C30C017E1223130DC20301C9215C00112F
> :100110001A010E0CCD0301C34101CD0616C3FB0C21
> :10012000CDA00DCDBB0D00B50DC3FB0CCDA00DC3F7
> :10013000FB0CCD960DFE38CA7B0CE63602004079EA
> :10014000E6C3B1012A3D01EB2A3F017D937C9ADA97
> :100150009A01210000223F01EB2A3D017B957A9C08
> :10016000D28C012A3B0119EB0E1ACD0500111A01A0
> :100170000E14CD0500B7C286011180002A3F011977
> :10018000223F01C358012A3F01223D011180000E88
> :100190001ACD0500210000223F01EB2A3B0119EB9B
> :1001A0002A3D017DB43E1AC81A2A3F0123223F018D
> :1001B000C9AF322601323A01210040223D01223FDF
> :1001C000010E0F111A01CD05003CC2EA010E091102
> :1001D000D801CD0500C300000D0A4E4F20444953FD
> :1001E0004B24494E2046494C45243E17323502CD1A
> :1001F0004401FE1ACA0000FE0ACA0702F50E025F99
> :10020000CD0500F1C3EF013A35023D323502CA1E79
> :10021000023E0AF50E025FCD0500F1C3EF013E0A72
> :10022000F50E025FCD0500F10E01CD0500FE03CAFB
> :100230000000C3EA01000000000000000000000010
> :1002400000000000000000000000000000000000AE
> :10025000000000000000000000000000000000009E
> :10026000000000000000000000000000000000008E
> :10027000000000000000000000000000000000007E
> :00000001FF
>
> VIEW file - any key to go to next page ^C to exit Location 1EB is the
> number of lines per page (default 17h, make it whatever you want)
>
> FredW
>
>

Nice litte thing, so I disassembled it ... :-)

It uses SEQIO.LIB, needs MAC.COM to assemble.
Here it is...

==== 8< ====
; ; FILE VIEW PROGRAM
; CTLC EQU 'C'-64
CTLZ EQU 'Z'-64
; ORG 0100H
; MACLIB SEQIO ;SEQUENTIAL I/O LIB
; FILE INFILE,DISK$IN,,1,,4000H
; PLOOP: MVI A,23
STA LCOUNT
LLOOP:
GET DISK$IN
CPI CTLZ
JZ 0
CPI LF
JZ LDONE
PUT CON
JMP LLOOP
; LDONE: LDA LCOUNT
DCR A
STA LCOUNT
JZ PFULL
MVI A,LF
PUT CON
JMP LLOOP
; PFULL: MVI A,LF
PUT CON
GET KEY
CPI CTLC
JZ 0
JMP PLOOP
; LCOUNT: DS 1
BUFFERS:
; END
==== 8< ====

Have fun!
Martin

P.S.:
It it binary identical to the posted HEXDUMP.
I even let the evil "DISK$IN" unmodfied,
which corrupts the error message.

Re: Paginating TYPE output

<fdd16aac-7c09-488e-a041-9cf600f859e1n@googlegroups.com>

  copy mid

https://www.novabbs.com/devel/article-flat.php?id=2761&group=comp.os.cpm#2761

  copy link   Newsgroups: comp.os.cpm
X-Received: by 2002:a05:622a:1704:: with SMTP id h4mr18267382qtk.9.1632054821215;
Sun, 19 Sep 2021 05:33:41 -0700 (PDT)
X-Received: by 2002:a9d:1408:: with SMTP id h8mr17458382oth.151.1632054820967;
Sun, 19 Sep 2021 05:33:40 -0700 (PDT)
Path: i2pn2.org!i2pn.org!weretis.net!feeder6.news.weretis.net!news.misty.com!border2.nntp.dca1.giganews.com!nntp.giganews.com!news-out.google.com!nntp.google.com!postnews.google.com!google-groups.googlegroups.com!not-for-mail
Newsgroups: comp.os.cpm
Date: Sun, 19 Sep 2021 05:33:40 -0700 (PDT)
In-Reply-To: <si6ph3$16q7$1@gioia.aioe.org>
Injection-Info: google-groups.googlegroups.com; posting-host=2607:f2c0:955f:2c00:e944:939f:55ad:a135;
posting-account=KOfC_woAAAC0YBGf-3r2aV5g2Aifd9jO
NNTP-Posting-Host: 2607:f2c0:955f:2c00:e944:939f:55ad:a135
References: <15bf6213-e7a0-45f2-8c3f-9524c91ee104n@googlegroups.com>
<3fd11fe2-f9f7-499f-b52d-56368e0a6dfan@googlegroups.com> <si6ph3$16q7$1@gioia.aioe.org>
User-Agent: G2/1.0
MIME-Version: 1.0
Message-ID: <fdd16aac-7c09-488e-a041-9cf600f859e1n@googlegroups.com>
Subject: Re: Paginating TYPE output
From: fridtjof...@gmail.com (fridtjof.ma...@gmail.com)
Injection-Date: Sun, 19 Sep 2021 12:33:41 +0000
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
Lines: 120
 by: fridtjof.ma...@gmail - Sun, 19 Sep 2021 12:33 UTC

On Sunday, September 19, 2021 at 3:40:21 AM UTC-4, Martin wrote:
> Am 09/16/2021 05:53 PM, fridtjof.ma...@gmail.com schrieb:
> > On Thursday, September 16, 2021 at 11:10:30 AM UTC-4, paolo....@gmail.com wrote:
> >> On CP/M 2.2 does the TYPE command have any options for paginating the output and reading it without the text scrolling continuously? I mean something like Unix more(1).
> >>
> >> I checked the documentation and other sources but can't find any such pagination options and z80pack ignores [Pnn]. Although flow-control commands such as ^S/^Q can suspend and resume the output, they're an inaccurate workaround even on a slow system.
> >
> > No, CP/M TYPE does not paginate
> > PIP does NOT ignore [Pnn], it just isn't doing what you think. It inserts a form feed every nn lines.
> >
> > Since CP/M was expected to be used on a teletype, just look "up higher in the roll". Your terminal emulator probably has a "scroll back" function.
> >
> > Add-on programs provide "more" type function (I use one called VIEW.COM, sorry, don't know where its from). VIEW.COM is 384 bytes long. Here it is as a HEX file (LOAD it)
> >
> > :10010000C30C017E1223130DC20301C9215C00112F
> > :100110001A010E0CCD0301C34101CD0616C3FB0C21
> > :10012000CDA00DCDBB0D00B50DC3FB0CCDA00DC3F7
> > :10013000FB0CCD960DFE38CA7B0CE63602004079EA
> > :10014000E6C3B1012A3D01EB2A3F017D937C9ADA97
> > :100150009A01210000223F01EB2A3D017B957A9C08
> > :10016000D28C012A3B0119EB0E1ACD0500111A01A0
> > :100170000E14CD0500B7C286011180002A3F011977
> > :10018000223F01C358012A3F01223D011180000E88
> > :100190001ACD0500210000223F01EB2A3B0119EB9B
> > :1001A0002A3D017DB43E1AC81A2A3F0123223F018D
> > :1001B000C9AF322601323A01210040223D01223FDF
> > :1001C000010E0F111A01CD05003CC2EA010E091102
> > :1001D000D801CD0500C300000D0A4E4F20444953FD
> > :1001E0004B24494E2046494C45243E17323502CD1A
> > :1001F0004401FE1ACA0000FE0ACA0702F50E025F99
> > :10020000CD0500F1C3EF013A35023D323502CA1E79
> > :10021000023E0AF50E025FCD0500F1C3EF013E0A72
> > :10022000F50E025FCD0500F10E01CD0500FE03CAFB
> > :100230000000C3EA01000000000000000000000010
> > :1002400000000000000000000000000000000000AE
> > :10025000000000000000000000000000000000009E
> > :10026000000000000000000000000000000000008E
> > :10027000000000000000000000000000000000007E
> > :00000001FF
> >
> > VIEW file - any key to go to next page ^C to exit Location 1EB is the
> > number of lines per page (default 17h, make it whatever you want)
> >
> > FredW
> >
> >
> Nice litte thing, so I disassembled it ... :-)
>
> It uses SEQIO.LIB, needs MAC.COM to assemble.
> Here it is...
>
> ==== 8< ====
> ;
> ; FILE VIEW PROGRAM
> ;
> CTLC EQU 'C'-64
> CTLZ EQU 'Z'-64
> ;
> ORG 0100H
> ;
> MACLIB SEQIO ;SEQUENTIAL I/O LIB
> ;
> FILE INFILE,DISK$IN,,1,,4000H
> ;
> PLOOP: MVI A,23
> STA LCOUNT
> LLOOP:
> GET DISK$IN
> CPI CTLZ
> JZ 0
> CPI LF
> JZ LDONE
> PUT CON
> JMP LLOOP
> ;
> LDONE: LDA LCOUNT
> DCR A
> STA LCOUNT
> JZ PFULL
> MVI A,LF
> PUT CON
> JMP LLOOP
> ;
> PFULL: MVI A,LF
> PUT CON
> GET KEY
> CPI CTLC
> JZ 0
> JMP PLOOP
> ;
> LCOUNT: DS 1
> BUFFERS:
> ;
> END
> ==== 8< ====
>
> Have fun!
> Martin
>
> P.S.:
> It it binary identical to the posted HEXDUMP.
> I even let the evil "DISK$IN" unmodfied,
> which corrupts the error message.
Martin

Thanks! I have wondered where VIEW.COM came from -- I don't think I ever had source for it.

Fred

Re: Paginating TYPE output

<si7ddc$1aqc$1@gioia.aioe.org>

  copy mid

https://www.novabbs.com/devel/article-flat.php?id=2762&group=comp.os.cpm#2762

  copy link   Newsgroups: comp.os.cpm
Path: i2pn2.org!i2pn.org!aioe.org!t5j6epPF7W16uTQh2YZzGQ.user.46.165.242.75.POSTED!not-for-mail
From: this.is....@so.its.invalid (Martin)
Newsgroups: comp.os.cpm
Subject: Re: Paginating TYPE output
Date: Sun, 19 Sep 2021 15:19:40 +0200
Organization: Aioe.org NNTP Server
Message-ID: <si7ddc$1aqc$1@gioia.aioe.org>
References: <15bf6213-e7a0-45f2-8c3f-9524c91ee104n@googlegroups.com> <3fd11fe2-f9f7-499f-b52d-56368e0a6dfan@googlegroups.com> <si6ph3$16q7$1@gioia.aioe.org> <fdd16aac-7c09-488e-a041-9cf600f859e1n@googlegroups.com>
Mime-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 7bit
Injection-Info: gioia.aioe.org; logging-data="43852"; posting-host="t5j6epPF7W16uTQh2YZzGQ.user.gioia.aioe.org"; mail-complaints-to="abuse@aioe.org";
User-Agent: Mozilla/5.0 (X11; Linux i686; rv:20.0) Gecko/20100101 SeaMonkey/2.17.1
X-Notice: Filtered by postfilter v. 0.9.2
 by: Martin - Sun, 19 Sep 2021 13:19 UTC

Am 09/19/2021 02:33 PM, fridtjof.ma...@gmail.com schrieb:
> Martin
>
> Thanks! I have wondered where VIEW.COM came from -- I don't think I ever had source for it.
>
> Fred
>

Weekend, and a little spare time, it was a lot of fun!

It is very nice to your disk drives, as it uses a buffer of 4000h bytes.
And it's by far the smallest pager around.

It has got a new home on my boot disks :-)

Martin

Re: Paginating TYPE output

<3183a5f0-f9ca-443e-9aeb-f9823bffd0fdn@googlegroups.com>

  copy mid

https://www.novabbs.com/devel/article-flat.php?id=2763&group=comp.os.cpm#2763

  copy link   Newsgroups: comp.os.cpm
X-Received: by 2002:a05:620a:d8e:: with SMTP id q14mr20568059qkl.409.1632070755528;
Sun, 19 Sep 2021 09:59:15 -0700 (PDT)
X-Received: by 2002:a9d:1408:: with SMTP id h8mr18220270oth.151.1632070755144;
Sun, 19 Sep 2021 09:59:15 -0700 (PDT)
Path: i2pn2.org!i2pn.org!weretis.net!feeder6.news.weretis.net!news.misty.com!border2.nntp.dca1.giganews.com!nntp.giganews.com!news-out.google.com!nntp.google.com!postnews.google.com!google-groups.googlegroups.com!not-for-mail
Newsgroups: comp.os.cpm
Date: Sun, 19 Sep 2021 09:59:14 -0700 (PDT)
In-Reply-To: <si7ddc$1aqc$1@gioia.aioe.org>
Injection-Info: google-groups.googlegroups.com; posting-host=173.73.176.47; posting-account=kVRapAkAAACnngcFYKY2y1PG7udEv3Wa
NNTP-Posting-Host: 173.73.176.47
References: <15bf6213-e7a0-45f2-8c3f-9524c91ee104n@googlegroups.com>
<3fd11fe2-f9f7-499f-b52d-56368e0a6dfan@googlegroups.com> <si6ph3$16q7$1@gioia.aioe.org>
<fdd16aac-7c09-488e-a041-9cf600f859e1n@googlegroups.com> <si7ddc$1aqc$1@gioia.aioe.org>
User-Agent: G2/1.0
MIME-Version: 1.0
Message-ID: <3183a5f0-f9ca-443e-9aeb-f9823bffd0fdn@googlegroups.com>
Subject: Re: Paginating TYPE output
From: ssmi...@gmail.com (Stephen Mitchell)
Injection-Date: Sun, 19 Sep 2021 16:59:15 +0000
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
Lines: 26
 by: Stephen Mitchell - Sun, 19 Sep 2021 16:59 UTC

On Sunday, September 19, 2021 at 9:19:42 AM UTC-4, Martin wrote:
> Am 09/19/2021 02:33 PM, fridtjof.ma...@gmail.com schrieb:
> > Martin
> >
> > Thanks! I have wondered where VIEW.COM came from -- I don't think I ever had source for it.
> >
> > Fred
> >
> Weekend, and a little spare time, it was a lot of fun!
>
> It is very nice to your disk drives, as it uses a buffer of 4000h bytes.
> And it's by far the smallest pager around.
>
> It has got a new home on my boot disks :-)
>
> Martin
Nice work, indeed. Another solution is to use one of the many CCP replacements that implement a paged TYPE command. For over 20 years, I have used Don Kirkpatrick's excellent ZCPR-D&J (a refinement of ZCPR 1.0). It occupies the same 800H byte (2K) space as the original CCP while adding a number of useful commands as well as full DU: support. The TYPE command is paged by default, but an optional P argument after the filename will provide continuous scrolling if you want it.

Steve Mitchell

Re: Paginating TYPE output

<sik3mh$sui$1@dont-email.me>

  copy mid

https://www.novabbs.com/devel/article-flat.php?id=2787&group=comp.os.cpm#2787

  copy link   Newsgroups: comp.os.cpm
Path: i2pn2.org!i2pn.org!eternal-september.org!reader02.eternal-september.org!.POSTED!not-for-mail
From: chiedete...@ask.me (dott.Piergiorgio)
Newsgroups: comp.os.cpm
Subject: Re: Paginating TYPE output
Date: Fri, 24 Sep 2021 10:53:36 +0200
Organization: A noiseless patient Spider
Lines: 12
Message-ID: <sik3mh$sui$1@dont-email.me>
References: <15bf6213-e7a0-45f2-8c3f-9524c91ee104n@googlegroups.com>
<3fd11fe2-f9f7-499f-b52d-56368e0a6dfan@googlegroups.com>
<ff178173-77ce-4093-99ee-1de4281f5c53n@googlegroups.com>
Mime-Version: 1.0
Content-Type: text/plain; charset=utf-8; format=flowed
Content-Transfer-Encoding: 7bit
Injection-Date: Fri, 24 Sep 2021 08:53:37 -0000 (UTC)
Injection-Info: reader02.eternal-september.org; posting-host="948bf9d5beaeb6617e17e7d63f8e7fd6";
logging-data="29650"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX1+nS8mh7tMRAQ86nQIgexh0f2UsFoS7dRAGOxJ8Eb5AfA=="
User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:78.0) Gecko/20100101
Thunderbird/78.13.0
Cancel-Lock: sha1:5e3RcMmLfpdDj1ssYglKGLhq3fI=
In-Reply-To: <ff178173-77ce-4093-99ee-1de4281f5c53n@googlegroups.com>
Content-Language: en-GB
 by: dott.Piergiorgio - Fri, 24 Sep 2021 08:53 UTC

On 16/09/21 18:06, Udo Munk wrote:
> the view program is on Many z80pack disks, source
> Is in z80pack repo.

I think that could be feasible adding a simple less(1) functionality,
decreasing the current line pointer by the content of 1EB...

Best regards from Italy,
dott. Piergiorgio.

Re: Paginating TYPE output

<722737da-ec99-4189-b759-7182e5a5082cn@googlegroups.com>

  copy mid

https://www.novabbs.com/devel/article-flat.php?id=2825&group=comp.os.cpm#2825

  copy link   Newsgroups: comp.os.cpm
X-Received: by 2002:a37:e17:: with SMTP id 23mr9424746qko.301.1633345287755;
Mon, 04 Oct 2021 04:01:27 -0700 (PDT)
X-Received: by 2002:a4a:558b:: with SMTP id e133mr8413161oob.62.1633345287434;
Mon, 04 Oct 2021 04:01:27 -0700 (PDT)
Path: rocksolid2!i2pn.org!weretis.net!feeder6.news.weretis.net!news.misty.com!border2.nntp.dca1.giganews.com!nntp.giganews.com!news-out.google.com!nntp.google.com!postnews.google.com!google-groups.googlegroups.com!not-for-mail
Newsgroups: comp.os.cpm
Date: Mon, 4 Oct 2021 04:01:27 -0700 (PDT)
In-Reply-To: <sik3mh$sui$1@dont-email.me>
Injection-Info: google-groups.googlegroups.com; posting-host=89.245.72.7; posting-account=RHtB3AoAAABZlu_FJY7ySUmJrtfW41bO
NNTP-Posting-Host: 89.245.72.7
References: <15bf6213-e7a0-45f2-8c3f-9524c91ee104n@googlegroups.com>
<3fd11fe2-f9f7-499f-b52d-56368e0a6dfan@googlegroups.com> <ff178173-77ce-4093-99ee-1de4281f5c53n@googlegroups.com>
<sik3mh$sui$1@dont-email.me>
User-Agent: G2/1.0
MIME-Version: 1.0
Message-ID: <722737da-ec99-4189-b759-7182e5a5082cn@googlegroups.com>
Subject: Re: Paginating TYPE output
From: udo.m...@freenet.de (Udo Munk)
Injection-Date: Mon, 04 Oct 2021 11:01:27 +0000
Content-Type: text/plain; charset="UTF-8"
Lines: 11
 by: Udo Munk - Mon, 4 Oct 2021 11:01 UTC

dott.Piergiorgio schrieb am Freitag, 24. September 2021 um 10:53:38 UTC+2:
> On 16/09/21 18:06, Udo Munk wrote:
> > the view program is on Many z80pack disks, source
> > Is in z80pack repo.
> I think that could be feasible adding a simple less(1) functionality,
> decreasing the current line pointer by the content of 1EB...

Won't work, the program uses a buffer for one record, not the whole file.
See source for reference:
https://www.autometer.de/unix4fun/z80pack/ftp/source-examples/plm80/view.plm

A less like utility needs to be able to seek to any position in a file of undetermined length.

1
server_pubkey.txt

rocksolid light 0.9.8
clearnet tor