Article View: news.software.readers
Article #16707slrn and Linux (was:Re: Newsreader: slrn 0.7.3 available)
From: John E. Davis
Date: Tue, 20 Jun 1995 00:00
Date: Tue, 20 Jun 1995 00:00
49 lines
3141 bytes
3141 bytes
In article <3s4rti$dtb@senator-bedfellow.MIT.EDU>, I wrote:
: Slrn is an NNTP based threaded newsreader for Unix. It works best on a
: color terminal that is capable of drawing lines. On such a terminal, the
: article will appear in various (user-definable) colors (headers, quotes,
: main body, etc...) The line drawing characters are used to draw the thread
: tree. Of course it will work on a monochrome terminal as well. Good color
: terminals include the linux console and rxvt under XWindows. (Personal
: note: I have found color_xterm to be somewhat buggy so I prefer rxvt).
I have had several people report to me that the lines drawing characters
that make up the thread tree do not show up on the Linux console like they
are supposed to. I have looked into the situation and I have found the
problem: It is a defective `linux' terminfo entry provided by the latest
version of ncurses.
Specifically, if you have the ncurses source, look at the file:
`ncurses-1.9.2c/misc/terminfo.src'. In it, the terminfo for linux shows
(near line 420):
linux|linux console,
am, bce, eo, mir, msgr, xenl, xon,
colors#8, cols#80, it#8, lines#25, pairs#64,
acsc=`\004a\261f\370g\361h\260j\331k\277l\332m\300n\305o~p^]8q\304r\362s_t\303u\264v\301w\302x\263y\371z\372{\373|\374}\375~\376.\031-\030\054\021+^P0\333,
|||
The problem is here:----------------------------------------------^^^
This appears corrupt. I do not believe that the `8' should be there. This
string (acsc) tells what to do to draw various line drawing characters on
the terminal.
Now, you may be thinking that ncurses works fine. However, this is a fluke.
If the `8' in the above line were, say, a `q', ncurses would fail also.
In fact, I just finished looked at the source to `screen'. It appears that
`screen', like `slrn' will also not draw lines properly because of this
defect.
As a work around for this corrupt terminfo entry on (possibly many) linux
systems, I have placed a modified copy of slang/src/sldisply.c on
space.mit.edu in pub/davis/slang. Simply replace the file sldisply.c that
came with the slang distribution for slrn with this one. Re-make the slang
library and then re-link slrn.
Please note: I have also notified the ncurses terminfo maintainer about this
problem.
--John
Technical Details
Message-ID:
<3s7fs0$c0j@senator-bedfellow.MIT.EDU>Path:
mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!illumos!news.pugleaf.net!.TX!i2pn2.pugleaf.net!archive.newsdeef.eu!mbox2nntp-comp.os.linux.development.apps.mbox.zip!not-for-mailReferences:
<3s4rti$dtb@senator-bedfellow.MIT.EDU>Show Full Headers
Complete Article Headers
Message-ID: <3s7fs0$c0j@senator-bedfellow.MIT.EDU> Subject: slrn and Linux (was:Re: Newsreader: slrn 0.7.3 available) Date: Tue, 20 Jun 1995 00:00:00 +0000 From: davis@space.mit.edu (John E. Davis) References: <3s4rti$dtb@senator-bedfellow.MIT.EDU> Path: mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!illumos!news.pugleaf.net!.TX!i2pn2.pugleaf.net!archive.newsdeef.eu!mbox2nntp-comp.os.linux.development.apps.mbox.zip!not-for-mail X-Deja-AN: 104715675 Organization: Center for Space Research Reply-to: davis@space.mit.edu Newsgroups: comp.os.linux.development.apps,news.software.readers,alt.lang.s-lang