🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Thread View: news.software.readers
3 messages
3 total messages Started by Valerie - Lambert Fri, 07 Oct 1994 00:08
termcap and pager for trn displayed on Psion 3a
#11757
Author: Valerie - Lambert
Date: Fri, 07 Oct 1994 00:08
28 lines
1773 bytes
Hello Psion and trn gurus,

I am trying to get trn to display something reasonable on my hand-held 
Psion 3a running a dumb terminal emulator that with a completely legible 
zoom factor allows a screen size of about 50x13.  The trn man page says 
I can set the TERMCAP env var to a custom termcap file, so I did that.  
The file contains:

ttypsion:\
        :a5:cols#50:lines#13:bel=^G:clear=^^:cr=\r:cub1=^Y:cud1=\n:cuf1=^X:\
        :cuu1=^Z:el=^_:home=^]:ind=\n:

I then set the TERM env var to ttypsion and started trn.  I know it is
reading my custom termcap, because it complained when it first contained
a syntax error.  Anyway, trn does not complain about anything any more;
neither does it seem to notice the 13 line specification.  So, I have 2
questions: 

1 How can I get trn to know there are only 13 lines?

2 Is it possible to specify to trn a custom pager or "more" program that 
  I can then format and twiddle to my satisfaction?
  
Thank you very much.

--
Valerie Lambert ~ valerie@biocad.com
Re: termcap and pager for trn displayed on Psion 3a
#11789
Author: Wayne Davison
Date: Sat, 08 Oct 1994 04:19
34 lines
1976 bytes
According to Valerie - Lambert <valerie@shell.portal.com>:
> 1 How can I get trn to know there are only 13 lines?

Your tty settings can override the termcap.  Try running:

     stty rows 13 columns 50

If that doesn't work, check what the value of the LINES environment
variable is.

> 2 Is it possible to specify to trn a custom pager or "more" program that 
>   I can then format and twiddle to my satisfaction?

Nope.  This is the classic tradeoff between easy access to commands while
reading an article (using an internal pager) or better paging and harder
access to commands (using an external pager).  The extra delay in starting
up a pager process each time you read an article is pretty annoying too.

Perhaps someone should design a pager server that would accept multiple
paging jobs via some interprocess communication, taking over the console
until the user hits 'q' or whatever, and then relinquishing control back
to trn until it is needed again.

Anyway, if you want to page an article that you're viewing, type "|less"
(or whatever pager you like).  Defining this as a macro would make it
easier to type (in .trnmac):

;	%(%m=p?|less^J:;)

This would page the current article if the user types ';'.
-- 
Wayne Davison
davison@borland.com
Re: termcap and pager for trn displayed on Psion 3a
#11909
Author: Valerie - Lambert
Date: Fri, 14 Oct 1994 01:41
33 lines
1945 bytes
In article <3723hu$3pc@news1.shell>, davison@borland.com (Wayne Davison) writes:
>According to Valerie - Lambert <valerie@shell.portal.com>:
>> 1 How can I get trn to know there are only 13 lines?
>
>Your tty settings can override the termcap.  Try running:
>
>   stty rows 13 columns 50

Thanks, Wayne!  That solves half of my problem.  Your stty command
works great on a Sun.  trn and more are quite obedient to the setting.
However, the SGI Irix version of stty does not recognize arguments of
rows or columns, and the man page sheds not light.  I guess it is a BSD
vs. System V thing.  I played with the LINES and COLUMNS env vars; some
programs pay attention, but not trn or more.  Well, at least I am
closer.

>Anyway, if you want to page an article that you're viewing, type "|less"
>(or whatever pager you like).  Defining this as a macro would make it
>easier to type (in .trnmac):
>
>;       %(%m=p?|less^J:;)
>
>This would page the current article if the user types ';'.

I will give it a try.

Thanks again,

--
Valerie Lambert ~ valerie@biocad.com ~ Molecular Simulations, Inc.
Any sufficiently complicated technology is indistinguishable from bad karma.

Thread Navigation

This is a paginated view of messages in the thread with full content displayed inline.

Messages are displayed in chronological order, with the original post highlighted in green.

Use pagination controls to navigate through all messages in large threads.

Back to All Threads