🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Thread View: news.software.readers
2 messages
2 total messages Started by Russell Hoover Wed, 21 Oct 1998 00:00
[slrn] author-name in hdr-mode: 12 char max?
#43965
Author: Russell Hoover
Date: Wed, 21 Oct 1998 00:00
11 lines
994 bytes
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?

-- 
	        	   // rusty@panix.com //  
  City cops & state cops & national guard & bureau cops & tv cops & movie cops
   & uniform & plainclothes cops & riot cops & cops on top of cops on top of
        cops on top of cops: it's a world full of cops.     -- Paleface

Re: [slrn] author-name in hdr-mode: 12 char max?
#43986
Author: 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/

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