The Unix Heritage Society mailing list
 help / color / mirror / Atom feed
From: "Greg A. Woods" <woods@robohack.ca>
To: The Unix Heritage Society mailing list <tuhs@tuhs.org>
Subject: Re: [TUHS] Fwd: Origins and life of the pg pager
Date: Sun, 21 Jun 2020 17:35:28 -0700	[thread overview]
Message-ID: <m1jnAQn-0036tsC@more.local> (raw)
In-Reply-To: <e01f36c7-9f10-b0a5-6271-19feeaa453e3@malbolge.net>

[-- Attachment #1: Type: text/plain, Size: 2516 bytes --]

At Sun, 21 Jun 2020 20:49:31 +0200, Michael Siegel <msi@malbolge.net> wrote:
Subject: Re: [TUHS] Fwd: Origins and life of the pg pager
>
> In fact, my question about the origin and life of pg(1) arose while
> writing a yet unfinished addendum to a blog article that details my
> failed attempt to hack together a solution for auto-paged ls(1).[1]
>
> The conclusion there was: Those attempts (you can find them in quite a
> few places throughout the Web) are futile, just pipe to a pager when you
> need it.

Indeed!  Just pipe to a pager when you need to!

There's also the benefit use of a modern "terminal" gives, e.g. Xterm:

(a) on a modern screen it can display a whole lot more than an
    old-fashioned 24x80 terminal;

(b) it offers a scroll-back buffer so if you get somewhat more output
    than expected you can just scroll back a bit to scan through it all.

Such features further reduce the need for any pager.

In a related vein what annoys me are so-called modern programs like
"git", "hg", and others which default to always piping their output
through $PAGER, along with such things as colour decorations enabled,
but when you tack on "|$PAGER" to their command-line then they turn off
the decorations!  They cause me to have to undo decades of finger
memory.

> However, there's no need to write out "less" every time. You can just
> alias that to "pg" without causing any harm and save two letters, which
> is an improvement for a task that is performed manually rather often.

I've used an alias and/or shell function called "ds" (for display) since
approximately forever, typically to invoke whatever I've set $PAGER to,
at least in more recent times.

Others I've know have called it just "p", and indeed there's been a
pager called just "p" in Research Unix since the Eighth Edition (and in
8th Edition the manual page suggests is also known as "more" and by 10th
Edition the manual adds "pg" too, though it's not installed directly
with those aliases by the makefile).

I've stuck with "ds", partly for finger memory, and also partly because
it is for the most part unique (at least in all environments I've
typically used).  That gives me the option of using a pager called "pg"
directly should I want to, while getting my "default" favourite pager
(from those available on a given system) when I use "ds".

--
					Greg A. Woods <gwoods@acm.org>

Kelowna, BC     +1 250 762-7675           RoboHack <woods@robohack.ca>
Planix, Inc. <woods@planix.com>     Avoncote Farms <woods@avoncote.ca>

[-- Attachment #2: OpenPGP Digital Signature --]
[-- Type: application/pgp-signature, Size: 195 bytes --]

  reply	other threads:[~2020-06-22  0:36 UTC|newest]

Thread overview: 35+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2020-06-14 22:52 Warren Toomey
2020-06-14 23:37 ` Mary Ann Horton
2020-06-14 23:52   ` [TUHS] " David Barto
2020-06-15  0:06     ` George Michaelson
2020-06-15  0:31     ` Alan D. Salewski
2020-06-15  0:35       ` Alan D. Salewski
2020-06-15  1:38         ` Warner Losh
2020-06-15  1:47           ` Larry McVoy
2020-06-15  2:38             ` Alec Muffett
2020-06-15  2:46               ` Alec Muffett
2020-06-15  2:26           ` Charles H. Sauer
2020-06-15 14:03           ` Mary Ann Horton
2020-06-15 20:19             ` Greg A. Woods
2020-06-15 20:50               ` Mary Ann Horton
2020-06-15  0:32   ` [TUHS] Fwd: " Nemo Nusquam
2020-06-15  5:41   ` Lars Brinkhoff
2020-06-15 13:56     ` Clem Cole
2020-06-15 14:15       ` Mary Ann Horton
2020-06-15 14:56         ` Clem Cole
2020-06-15 15:04           ` Richard Salz
2020-06-15 16:14             ` Clem Cole
2020-06-15 15:45           ` Lars Brinkhoff
2020-06-15 19:08             ` Lars Brinkhoff
2020-06-21 18:49           ` Michael Siegel
2020-06-22  0:35             ` Greg A. Woods [this message]
2020-06-22 16:24               ` Derek Fawcus
2020-06-22 21:33                 ` Rob Pike
2020-06-22 21:58                   ` Kurt H Maier
2020-06-22 21:59                   ` [TUHS] " Bakul Shah
2020-06-22 22:43                     ` Steffen Nurpmeso
2020-06-25  1:50                       ` Theodore Y. Ts'o
2020-06-25 21:31                         ` Steffen Nurpmeso
2020-07-05  1:34                         ` Dave Horsfall
2020-06-18 12:49 ` [TUHS] Fwd: " Michael Siegel
2020-06-21 22:40 Noel Chiappa

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=m1jnAQn-0036tsC@more.local \
    --to=woods@robohack.ca \
    --cc=tuhs@tuhs.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).