Article View: news.software.readers
Article #9592Re: newsgroup offset within tin 1.2 PL2
From: Kevin Rodgers
Date: Fri, 17 Jun 1994 15:13
Date: Fri, 17 Jun 1994 15:13
30 lines
1920 bytes
1920 bytes
Jianhong Feng (feng@iqe.ethz.ch) wrote:
>Carlos Robinson (carlos@marin.cc.ca.us) wrote:
>: How can you get the newsgroups discription closer to the left of the
>: screen?
>: .......
>
>You can change the parameter "groupname_max_length=..." in .tin/tinrc.
>The corresponding lines in my .tin/tinrc read.
>
># Maximum length of the names of newsgroups displayed
>groupname_max_length=23
Here's how I automatically maintain an accurate value for that variable:
In .tin/Makefile:
tinrc: $(HOME)/.newsrc
groupname_max_length=`grep -v ! $(HOME)/.newsrc | \
sed -e 's/:.*$$//' | \
awk 'BEGIN {max = 0} {if (length > max) max = length} END {print max}'`; \
sed -e "s/^\(groupname_max_length=\)[0-9]*/\1$$groupname_max_length/" $@ > $@.new
mv -f $@.new $@
And in .cshrc:
alias tin 'tin \!* && (cd .tin; make tinrc)'
--
Kevin Rodgers <kevinr@ihs.com> Project Engineer
Information Handling Services Electronic Systems Development
15 Inverness Way East, M/S A203
Englewood CO 80112 USA (303) 397-2807[voice]/-2620[fax]
Technical Details
Message-ID:
<2tseia$qa4@ihs.com>Path:
mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!illumos!news.pugleaf.net!.TX!archive.pugleaf.net!archive.newsdeef.eu!archive!mbox2nntp-news.software.readers.mbox.zip!nntp.gmd.de!Germany.EU.net!EU.net!howland.reston.ans.net!europa.eng.gtefsd.com!sundog.tiac.net!usenet.elf.com!rpi!psinntp!ihs.com!kevinrReferences:
<CquBCn.HBw@marin.cc.ca.us> <2ssn78$jf2@elna.ethz.ch>Show Full Headers
Complete Article Headers
Message-ID: <2tseia$qa4@ihs.com> Subject: Re: newsgroup offset within tin 1.2 PL2 Date: Fri, 17 Jun 1994 15:13:14 +0000 From: kevinr@sauron.ihs.com (Kevin Rodgers) References: <CquBCn.HBw@marin.cc.ca.us> <2ssn78$jf2@elna.ethz.ch> Path: mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!illumos!news.pugleaf.net!.TX!archive.pugleaf.net!archive.newsdeef.eu!archive!mbox2nntp-news.software.readers.mbox.zip!nntp.gmd.de!Germany.EU.net!EU.net!howland.reston.ans.net!europa.eng.gtefsd.com!sundog.tiac.net!usenet.elf.com!rpi!psinntp!ihs.com!kevinr Newsgroups: news.software.readers Organization: Information Handling Services, Electronic Systems Development Lines: 30 Distribution: world Reply-To: Kevin Rodgers <kevinr@ihs.com> NNTP-Posting-Host: sauron.ihs.com X-Newsreader: TIN [version 1.2 PL2]