🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: news.software.readers
Article #40309

Re: slrn: header_display_format problem...

#40309
From: John E. Davis
Date: Wed, 22 Apr 1998 00:00
57 lines
2555 bytes
On 22 Apr 1998 07:38:38 GMT, Bill Nottingham <wen2@po.cwru.edu>
wrote:
>header_display_format 0 "%F%-5S%-5l:%t%35s %f"
>
>This produces the following:
>
>slrn 0.9.5.1 ** Press '?' for help, 'q' to quit. ** Server: /var/sp...
> 1  D   23:    SLRN: (repost) slrnpull scoring fee Lloyd Zusman <lj...
> 2  D   14:    slrn: random signatures?            dha@panix.com (D...
> 3  D   20:    mq>                                   c928400@studen...
>->  D   23:      tq>                                   dha@panix.co...
> 5  D   30:      x mq>                                   c928400@st...
>News Group: news.software.readers                           -- 7/20  (40%) 

As previously promised, the following patch should solve this problem.
>From my changes.txt file for the next release:

3. now 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.

The patch is to slrn/src/art.c:

--- art.c.ORIG	Mon Apr 20 16:22:09 1998
+++ art.c	Wed Apr 22 12:45:49 1998
@@ -7575,6 +7575,13 @@
 	     s = buf;
 	     sprintf (s, "%d", h->number);
 	     break;
+
+           case 'g':
+             SLsmg_erase_eol ();
+             if (right_justify)
+               field_len = SLtt_Screen_Cols - field_len;
+             SLsmg_gotorc (row, field_len);
+             break;
 	  }
 
 	slrn_set_color (color);

--John



Technical Details
Message-ID: <slrn6js8m6.2fm.davis@aluche.mit.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: <slrn6jr7fc.8as.wen2@xenomorph.dyn.ml.org>

Show Full Headers
Complete Article Headers
Message-ID: <slrn6js8m6.2fm.davis@aluche.mit.edu>
Subject: Re: slrn: header_display_format problem...
Date: Wed, 22 Apr 1998 00:00:00 +0000
From: davis@space.mit.edu (John E. Davis)
References: <slrn6jr7fc.8as.wen2@xenomorph.dyn.ml.org>
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: 346788450
Organization: Center for Space Research
Reply-To: davis@space.mit.edu
Newsgroups: news.software.readers