Viewing info in pages

Hello,

There is some command like ls, sin etc which displayed information do not
fit in one screen. Is there any ability to contorl viewing in pages like in
DOS with /p option?

Best regards,
Darius

On Thu, 12 Aug 2004 10:11:38 +0200, Darius <alpha_byte@safe-mail.net> wrote:

Is there any ability to contorl viewing in pages like in
DOS with /p option?
Did you try “ls | more”?

Tony.

Tony <mts.spb.suxx@mail.ru> wrote:

On Thu, 12 Aug 2004 10:11:38 +0200, Darius <> alpha_byte@safe-mail.net> > wrote:

Is there any ability to contorl viewing in pages like in
DOS with /p option?
Did you try “ls | more”?

Or “ls | less” – I prefer less, because if you get to the end of
the data in more, it just drops you out – but with less, you can
still back page through the data as well, and have to explicitly quick.

-David

Please follow-up to newsgroup, rather than personal email.
David Gibbs
QNX Training Services
dagibbs@qnx.com

On 12 Aug 2004 15:17:57 GMT, David Gibbs <dagibbs@qnx.com> wrote:

Or “ls | less” – I prefer less, because if you get to the end of
the data in more, it just drops you out – but with less, you can
still back page through the data as well, and have to explicitly quick.

:slight_smile:
Actually - /bin/more is a symlink to /bin/less
Both scroll the screen back and forth… I appreciate QSSL’s hack of the original less v321.
I’ve “ported” less v382 and make it behave this way too.

Tony.

Tony <mts.spb.suxx@mail.ru> wrote:

On 12 Aug 2004 15:17:57 GMT, David Gibbs <> dagibbs@qnx.com> > wrote:
Or “ls | less” – I prefer less, because if you get to the end of
the data in more, it just drops you out – but with less, you can
still back page through the data as well, and have to explicitly quick.

:slight_smile:
Actually - /bin/more is a symlink to /bin/less

I’m well aware of that… one of my standard jokes is that,
“with QNX more is less”. :slight_smile:


Both scroll the screen back and forth… I appreciate QSSL’s hack of the original less v321.
I’ve “ported” less v382 and make it behave this way too.

Yes, both scroll back and forth… the difference (I was talking about)
is that at the last page, more exits automatically (and you can no
longer scroll back) while less prompts you to exit, and you can
scroll back.

So…with more… page, page, back page, page, page, oops, I’m done
and can’t back-page anymore.

-David

Please follow-up to newsgroup, rather than personal email.
David Gibbs
QNX Training Services
dagibbs@qnx.com

On 15 Aug 2004 00:20:15 GMT, David Gibbs <dagibbs@qnx.com> wrote:

So…with more… page, page, back page, page, page, oops, I’m done
and can’t back-page anymore.
Oh, that is true about my “port” of less v382 too.

If invoked as /bin/less it quits only after one types “q”, if invoked as “more” quits at EOF immediatelly…

:slight_smile:

Tony.

PS Whom could I ask of any other hack that QSSL made to the original “less v321” beyond theese mentioned here? I’d like to put them into v382 too.

Tony <mts.spb.suxx@mail.ru> wrote:

On 15 Aug 2004 00:20:15 GMT, David Gibbs <> dagibbs@qnx.com> > wrote:



Tony.

PS Whom could I ask of any other hack that QSSL made to the
original “less v321” beyond theese mentioned here? I’d like to
put them into v382 too.

I have no idea if that is a QNX hack, or was there when we got it.

I know the behaviour does go back to QNX4 days, though.

(tar, pax, and cpio were the same program, too – just checking
their argv[0] to see which way they should behave.)

-David


Please follow-up to newsgroup, rather than personal email.
David Gibbs
QNX Training Services
dagibbs@qnx.com

On 16 Aug 2004 23:51:43 GMT, David Gibbs <dagibbs@qnx.com> wrote:

I have no idea if that is a QNX hack, or was there when we got it.
The original less does not check argv[0].
I know the behaviour does go back to QNX4 days, though.
I’m talking about QNX4 as well.

I’m keeping it (QNX4) as up-to-date as possible. Things like sed, awk, less, nologin, grep are all replaced with the current versions.

Tony.