🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: news.software.readers
Article #250923

Re: [slrn] Pressing 'w'

#250923
From: Christian Ebert
Date: Sun, 22 Jul 2012 12:23
47 lines
2620 bytes
* Lewis on Friday, July 20, 2012:
> Pressing the w in slrn wraps long lines to the width of the terminal. Is
> there anyway to make it wrap lines to a width less than that? I have a
> wide terminal window (132 characters) which is very nice for the message
> list, but not nice at all for reading posts.
> 
> So, I'd like to be able to tell slrn to wrap posts to something more
> like 80 characters for readability without having to change the terminal
> width and lose some room in the message list.

You could try my python/slang bundle for slrn:
http://www.blacktrash.org/hg/slrnmime/

$ cat default-keys.slrnrc
#iffalse
DO NOT EDIT THIS FILE

edit keys.slrnrc and use this as reference
#endif

% set fallback charset interactively
setkey article SlrnMime->query_fallback_charset "^A"

% word wrap article
setkey article SlrnMime->show_wrapped(0)        "^W"

% word wrap article respecting line breaks
setkey article SlrnMime->show_wrapped(1)        "^R"

% word wrap article, each indent change starting new paragraph
setkey article SlrnMime->show_wrapped(2)        "\eW"

% display raw article
setkey article RawArt->show_raw_art             "m"

% EOF vim:ft=slrnrc


Disclaimer: underdocumented, and currently I don't have time to
really maintain it. Should be written entirely in slang, but I'm
more familiar with python and python's email module is handy.

-- 
theatre - books - texts - movies
Black Trash Productions at home: http://www.blacktrash.org
Black Trash Productions on Facebook:
http://www.facebook.com/blacktrashproductions
Technical Details
Message-ID: <mu7td9xg2g1.ln2@krille.blacktrash.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.20140922.mbox.gz!border1.nntp.dca3.giganews.com!border3.nntp.dca.giganews.com!border1.nntp.dca.giganews.com!nntp.giganews.com!novia!fu-berlin.de!uni-berlin.de!individual.net!not-for-mail
References: <juaqdl$scc$7@dont-email.me>

Show Full Headers
Complete Article Headers
Message-ID: <mu7td9xg2g1.ln2@krille.blacktrash.org>
Subject: Re: [slrn] Pressing 'w'
Date: Sun, 22 Jul 2012 13:23:18 +0100
From: Christian Ebert <blacktrash@gmx.net>
References: <juaqdl$scc$7@dont-email.me>
Path: mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!illumos!news.pugleaf.net!.TX!archive.pugleaf.net!archive.newsdeef.eu!mbox2nntp-news.software.readers.20140922.mbox.gz!border1.nntp.dca3.giganews.com!border3.nntp.dca.giganews.com!border1.nntp.dca.giganews.com!nntp.giganews.com!novia!fu-berlin.de!uni-berlin.de!individual.net!not-for-mail
Newsgroups: news.software.readers
Lines: 47
X-Trace: individual.net
 2LZFlH2G+c7YgPvwp+SwqA1AGZ5m49K78TrguBpDWdTngszOvxtnMSWi3XcVkwLQpi
X-Orig-Path: krille.blacktrash.org!not-for-mail
Cancel-Lock: sha1:MYjFLJrGzwJBDTtZhXljC554xOk=
Mail-Copies-To: nobody
X-Face: )&#alA:[x"-#%%./(nuC&8n; #gqM; =mfY&ivRz@Gnv|AD_0l1Uz{fnJ^BW~OX[d;
 /)z!y V
User-Agent: slrn/pre1.0.0-40 (Darwin)
X-Original-Bytes: 2302