🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: news.software.readers
Article #43986

Re: [slrn] author-name in hdr-mode: 12 char max?

#43986
From: Jan Hlavacek
Date: Thu, 22 Oct 1998 00:00
96 lines
4322 bytes
On 21 Oct 1998 23:17:37 GMT, Russell Hoover <rusty@panix7.panix.com>
wrote:
> In header-mode (or "summary" mode) in slrn, the article-author's name
> appears between brackets.  Is there a way to widen this field to fit more
> than 12 characters between the brackets?

 From changes.txt:

Changes since 0.9.5.1
...
3. new header format descriptor: %g.  This may be used to specify the
   column the next write to the screen should take place.
   Specifically, `%Xg' indicates that the cursor should be moved to
   column X (numbered from 0).  If X is negative, the cursor will be
   moved X columns from the right edge of the window.  To
   understand this, compare:

       header_display_format 0 "%F%-5S%-5l:%t%35s %f"
   to
       header_display_format 0 "%F%-5S%-5l:%t%35s%-24g%f"

   in the presence of an open thread tree.  The latter form indicates
   that the `From' header (%f) should be written out 24 columns from
   the right edge of the window.

Changes since 0.9.4.6
...
3. Header display format is now customizable.  Up to 10 header formats
   are available and ESC-a will switch among them.  By default there
   are 4 pre-defined formats:

        "%F%-5S%G%-5l:[%12r]%t%s"
	"%F%G%-5l:[%12r]%t%s"
	"%F%-5l:%t%s"
	"%F%-5S%-5l:%t%50s %r"
   
   The generic format specifier begins with the `%' character and must
   be of the form:

        %[-][w]x
	
   where the brackets indicate optional items.  Here, w is a width
   specifier consisting of one or more digits.  If the minus sign (-)
   is present, the item will be right justified, otherwise it will be
   left justified.  The item specifier (x) is required and, depending
   on it value, has the following meaning:
   
         s : subject
	 S : score
	 r : author real name
	 f : from header
	 G : Group lens score
	 l : Number of lines
	 n : server number
	 d : date
	 t : thread tree
	 F : flags (read/unread, `*' and `#' tags, header number)
	 % : percent character
	 
  
   Thus, "%F%-5l:%t%s" indicates that the header window will contain
   the, in order: the flags, the number of lines the article contains
   right justified in a 5 character field, a `:', the tree, and the
   subject.
   
   There are two methods of setting these formats.  The first way is
   via a line in  the .slrnrc file using the header_display_format
   command.  This command takes two arguments: an integer that
   indicates the format to set, and a string that specifies the
   format, e.g, 

        header_display_format 0 "%F%-5S%G%-5l:[%12r]%t%s"
  
   sets the 0th format.  There are 10 formats available and the ESC-a
   command will switch among them.

   The second method is via the S-Lang macro language, e.g.,
   
       set_header_display_format (0, "%F%-5S%G%-5l:[%12r]%t%s");
       
   Finally, ESC-a may be used with a prefix argument to select a
   particular format, e.g., ESC-0 ESC-a will select the 0th format.

So just put something like

header_display_format 0 "%F%-5S%G%-5l:[%15r]%t%s"
                                        ^^
to get 15 characters in authors real name field.

-- 
Jan Hlav\'{a}\v{c}ek <lahvak@math.mps.ohio-state.edu>  (BCC's will bounce)
home page: http://www.math.ohio-state.edu/~lahvak/
slrn page: http://www.math.ohio-state.edu/~lahvak/software/slrn.html
slrn documentation: http://www.math.ohio-state.edu/~lahvak/software/slrn/

Technical Details
Message-ID: <slrn72td2n.1rc.lahvak@math.mps.ohio-state.edu>
Path: mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!illumos!news.pugleaf.net!.TX!archive.pugleaf.net!archive.newsdeef.eu!mbox2nntp-news.software.readers.mbox.zip!not-for-mail
References: <slrn72sqsg.sob.rusty@panix7.panix.com>

Show Full Headers
Complete Article Headers
Message-ID: <slrn72td2n.1rc.lahvak@math.mps.ohio-state.edu>
Subject: Re: [slrn] author-name in hdr-mode: 12 char max?
Date: Thu, 22 Oct 1998 00:00:00 +0000
From: lahvak@math.mps.ohio-state.edu (Jan Hlavacek)
References: <slrn72sqsg.sob.rusty@panix7.panix.com>
Path: mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!illumos!news.pugleaf.net!.TX!archive.pugleaf.net!archive.newsdeef.eu!mbox2nntp-news.software.readers.mbox.zip!not-for-mail
X-Deja-AN: 403805592
X-Complaints-To: usenet@math.ohio-state.edu
X-Trace: mathserv.mps.ohio-state.edu 909030487 25285 128.146.111.30 (22 Oct 1998 04:28:07 GMT)
Organization: Department of Mathematics, The Ohio State University
User-Agent: slrn/0.9.5.3 (UNIX)
Reply-To: lahvak@math.mps.ohio-state.edu
NNTP-Posting-Date: 22 Oct 1998 04:28:07 GMT
Newsgroups: news.software.readers