🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: news.software.readers
Article #72285

Re: SLRN: How to toggle_header_formats quickly

#72285
From: Matthias Friedrich
Date: Mon, 19 Feb 2001 14:26
31 lines
1915 bytes
Michael Lang wrote:
> I'd like to switch quickly between Header view zero and one. If I
> press Esc a, I have to go through all of the header views.

One possibility is to delete the following lines in startup.c,
recompile and set just two header_display_formats in your
configuration file.

    (void) slrn_set_header_format (2, "%F%-5l:%t%s");
    (void) slrn_set_header_format (3, "%F%-5S%-5l:%t%50s %r");
    (void) slrn_set_header_format (4, "%F%-5S [%10r]:%t%49s %-19g[%17d]");

> I tried to disable that, by preceding all other header modes with a
> percent sign in slrn.rc, but this didn't work. Is there a way to
> switch back and forth between header format zero and one?

Another quick and dirty solution would be to set 6 (4 would be enough
in versions <0.9.6.3) header_display_formats:

    header_display_format 0 "view a"
    header_display_format 1 "view b"
    header_display_format 2 "view a"
    header_display_format 3 "view b"
    header_display_format 4 "view a"
    header_display_format 5 "view b"

This is no real solution, of course.

HTH,
    Matthias
Technical Details
Message-ID: <slrn992b8k.pj.mafr@endeavour.mafr.de>
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!supernews.google.com!sn-xit-02!supernews.com!news.tele.dk!130.133.1.3!fu-berlin.de!uni-berlin.de!212.144.121.169!not-for-mail
References: <96q4si$dn1$0@dosa.alt.net>

Show Full Headers
Complete Article Headers
Message-ID: <slrn992b8k.pj.mafr@endeavour.mafr.de>
Subject: Re: SLRN: How to toggle_header_formats quickly
Date: Mon, 19 Feb 2001 14:26:28 +0000
From: mafr@topmail.de (Matthias Friedrich)
References: <96q4si$dn1$0@dosa.alt.net>
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!supernews.google.com!sn-xit-02!supernews.com!news.tele.dk!130.133.1.3!fu-berlin.de!uni-berlin.de!212.144.121.169!not-for-mail
Newsgroups: news.software.readers
Organization: Projekt Chaos
Lines: 30
NNTP-Posting-Host: 212.144.121.169
X-Trace: fu-berlin.de 982594903 22818595 212.144.121.169 (16 [47474])
User-Agent: slrn/0.9.6.4pl3 (Linux)