Thread View: news.software.readers
9 messages
9 total messages
Started by Bernd Eggink
Tue, 08 Jun 1999 00:00
slrn color question
Author: Bernd Eggink
Date: Tue, 08 Jun 1999 00:00
Date: Tue, 08 Jun 1999 00:00
12 lines
964 bytes
964 bytes
Hi, I just started using slrn and would like to set the background to my preferred color, bright white. I work under Linux with a nice SVGATextMode and option 16color, which gives bright background colors after issuing "setterm -blink". However, the background color "white" in slrn still results in a grey background. Any way to get what I want? Thanks, Bernd
Re: slrn color question
Author: John E. Davis
Date: Tue, 08 Jun 1999 00:00
Date: Tue, 08 Jun 1999 00:00
19 lines
1573 bytes
1573 bytes
On 8 Jun 1999 14:25:00 GMT, Bernd Eggink <eggink@uni-hamburg.de> wrote: >Hm, it works partially... Now the output from slrn is on bright white >background, but the surrounding empty space on the screen is still grey, Then this is a bug in the console. The linux console is supposed to support background color erase. >While we are at it, one more (beginner's) question: Articles that have >been read disappear after leaving the respective newsgroup. Can I change >this behaviour? I know I can get them back by typing ESC-u in the group >menu, but I'd prefer to keep them in the first place. I couldn't find an >option for that. ESC 1 RETURN --John
Re: slrn color question
Author: Bernd Eggink
Date: Tue, 08 Jun 1999 00:00
Date: Tue, 08 Jun 1999 00:00
31 lines
1784 bytes
1784 bytes
On 8 Jun 1999 13:34:48 GMT, John E. Davis <davis@space.mit.edu> wrote: >I was not aware of the capability of the linux console. How does this >work? Try adding: > > set use_blink 1 > >to your .slrnrc file. If that does not work, you may have to modify >your linux terminfo file to specify 16 colors. Hm, it works partially... Now the output from slrn is on bright white background, but the surrounding empty space on the screen is still grey, which looks considerably uglier than the all-grey background version. I guess it's just a matter of using the right attributes when clearing the screen. While we are at it, one more (beginner's) question: Articles that have been read disappear after leaving the respective newsgroup. Can I change this behaviour? I know I can get them back by typing ESC-u in the group menu, but I'd prefer to keep them in the first place. I couldn't find an option for that. Regards, Bernd -- Bernd Eggink Regionales Rechenzentrum der Uni Hamburg eggink@uni-hamburg.de http://www.rrz.uni-hamburg.de/eggink/BEggink.html
Re: slrn color question
Author: John E. Davis
Date: Tue, 08 Jun 1999 00:00
Date: Tue, 08 Jun 1999 00:00
25 lines
1669 bytes
1669 bytes
On 8 Jun 1999 14:25:00 GMT, Bernd Eggink <eggink@uni-hamburg.de>
wrote:
>Hm, it works partially... Now the output from slrn is on bright white
>background, but the surrounding empty space on the screen is still grey,
In another followup, I indicated that I think this is a console bug.
If you are brave, in linux/drivers/char/console.c, you will find (2.2
kernel):
static void update_attr(int currcons)
{
attr = build_attr(currcons, color, intensity, blink, underline, reverse ^ decscnm);
video_erase_char = (build_attr(currcons, color, 1, 0, 0, decscnm) << 8) | ' ';
}
Replace the `video_erase_char' line with:
video_erase_char = (build_attr(currcons, color, 1, blink, 0, decscnm) << 8) | ' ';
Does this solve the problem?
--John
Re: slrn color question
Author: John E. Davis
Date: Tue, 08 Jun 1999 00:00
Date: Tue, 08 Jun 1999 00:00
18 lines
1416 bytes
1416 bytes
On 8 Jun 1999 13:21:47 GMT, Bernd Eggink <eggink@uni-hamburg.de>
wrote:
>preferred color, bright white. I work under Linux with a nice
>SVGATextMode and option 16color, which gives bright background colors
>after issuing "setterm -blink". However, the background color "white" in
>slrn still results in a grey background. Any way to get what I want?
I was not aware of the capability of the linux console. How does this
work? Try adding:
set use_blink 1
to your .slrnrc file. If that does not work, you may have to modify
your linux terminfo file to specify 16 colors.
--John
Re: slrn color question
Author: Bernd Eggink
Date: Wed, 09 Jun 1999 00:00
Date: Wed, 09 Jun 1999 00:00
29 lines
1578 bytes
1578 bytes
On 8 Jun 1999 15:49:36 GMT, John E. Davis <davis@space.mit.edu> wrote:
>
>In another followup, I indicated that I think this is a console bug.
>If you are brave, in linux/drivers/char/console.c, you will find (2.2
>kernel):
>
>static void update_attr(int currcons)
>{
> attr = build_attr(currcons, color, intensity, blink, underline, reverse ^ decscnm);
> video_erase_char = (build_attr(currcons, color, 1, 0, 0, decscnm) << 8) | ' ';
>}
>
>Replace the `video_erase_char' line with:
>
> video_erase_char = (build_attr(currcons, color, 1, blink, 0, decscnm) << 8) | ' ';
>
>Does this solve the problem?
Unfortunately, no!
Bernd
--
Bernd Eggink
Regionales Rechenzentrum der Uni Hamburg
eggink@uni-hamburg.de
http://www.rrz.uni-hamburg.de/eggink/BEggink.html
Re: slrn color question
Author: HugolinoM
Date: Wed, 09 Jun 1999 00:00
Date: Wed, 09 Jun 1999 00:00
45 lines
2795 bytes
2795 bytes
Le 8 Jun 1999 14:25:00 GMT, eggink@uni-hamburg.de (Bernd Eggink) a �crit: >While we are at it, one more (beginner's) question: Articles that have >been read disappear after leaving the respective newsgroup. Can I change >this behaviour? I know I can get them back by typing ESC-u in the group >menu, but I'd prefer to keep them in the first place. I couldn't find an >option for that. Not sure I understood what you want (it's just because I'm French), but if you just want the article not being marked as read after you have read it then just add the following line to your .slrnrc file: set auto_mark_article_as_read 0 (works with 0.9.5.6 version) And while we are at it :), one more beginner question: Is there anybody who knows how I could distinguish between: * articles that I have already read * articles that I have not already read * articles which bodies have not been downloaded yet (I use leafnode with "delaybody = 1" to download headers and bodies separately) This would be very useful when you try to read threads that last for days and days and have more than a hundred articles May be this could be done with a macro that would be ran each time you enter a newsgroup. In the list of all the articles, the macro would set the foreground color of read articles as black and the foreground color of unread articles as blue while all articles without body will have their backgroud color set to yellow. If you have the answer, please try to be not to concise as I just don't know much about macros and regular expression... Last but not least: Is it possible to cancel a mistakenly request for download ? Thanks -- Hugolino le normand pas net (hugomartATinfonie.fr) � C'est l'histoire d'un gars qui veut la machine la plus puissante du monde sous Windows 95 en �mulation sous Wine qui tourne sur une station FreeBSD avec bibliotheque de compatibilit� Linux. � ST in Gdlp
Re: slrn color question
Author: Thorfinn
Date: Thu, 10 Jun 1999 00:00
Date: Thu, 10 Jun 1999 00:00
73 lines
4344 bytes
4344 bytes
In news.software.readers, on Wed, 09 Jun 1999 10:21:28 GMT
HugolinoM <hugomart@infonie.fr> wrote:
> And while we are at it :), one more beginner question:
> Is there anybody who knows how I could distinguish between:
> * articles that I have already read
> * articles that I have not already read
The distinguishing feature between these two is normally that the
first type has "D" for "deleted" before it, which normally happens
when you read the article...
If you set the mark articles as read variable back to 1, and instead
enter article mode from group mode with ESC-1-return then you will see
the entire group, including "deleted" articles.
> * articles which bodies have not been downloaded yet (I use
> leafnode with "delaybody = 1" to download headers and bodies
> separately)
Hrm. That's a bit of a more difficult problem... in that leafnode
hides the fact that the article has no body downloaded for it from the
reader software. The news server has no way to tell that the body
isn't there without trying to fetch the body...
> This would be very useful when you try to read threads that last for
> days and days and have more than a hundred articles
*nodnod* You might want to consider just switching to using
slrnpull... if you read more than some really small proportion of
articles in a group, it's usually worthwhile to just pre-fetch them
all blindly on a regular basis, rather than mess with the delays and
post-fetching.
Of course, if you're heavily byte or time charged, then it's
understandable that you want to minimise the online time...
> May be this could be done with a macro that would be ran each time you
> enter a newsgroup. In the list of all the articles, the macro would set
> the foreground color of read articles as black and the foreground color
> of unread articles as blue while all articles without body will have
> their backgroud color set to yellow.
To summarise what I said above... the distinction between "read" and
"unread" is normally provided by having slrn mark articles as
"deleted" when you read them... and there is no real way (apart from
writing some complex and hairy macros that poke through leafnode's
spool directories, or actually attempting to request every article,
which defeats the point) to find out if leafnode has the body or
not...
> If you have the answer, please try to be not to concise as I just don't
> know much about macros and regular expression...
Hrm. Well, hopefully I answered some of your questions. :)
> Last but not least: Is it possible to cancel a mistakenly request for
> download ?
ctrl-g should work to interrupt a transfer... however, if you are
using leafnode, that might not help much, since the request will go to
leafnode, which will queue the fetch request for later anyway...
Later,
Thorf
--
<a href = "http://www.netizen.com.au/"> thorfinn@netizen.com.au </a>
Men occasionally stumble over the truth, but most of them pick
themselves up and hurry off as if nothing had happened.
-- Winston Churchill
Re: slrn color question
Author: jwk
Date: Fri, 18 Jun 1999 00:00
Date: Fri, 18 Jun 1999 00:00
23 lines
1895 bytes
1895 bytes
On 10 Jun 1999 05:17:56 GMT, Thorfinn <thorfinn@netizen.com.au> wrote:
>In news.software.readers, on Wed, 09 Jun 1999 10:21:28 GMT
>HugolinoM <hugomart@infonie.fr> wrote:
>> * articles which bodies have not been downloaded yet (I use
>> leafnode with "delaybody = 1" to download headers and bodies
>> separately)
>
>Hrm. That's a bit of a more difficult problem... in that leafnode
>hides the fact that the article has no body downloaded for it from the
>reader software. The news server has no way to tell that the body
>isn't there without trying to fetch the body...
>
I happen to be working on patching slrnpull to do just that: download
headers and bodies separately. The patch seems to be working now, and
I'm testing it.
Jurriaan
--
Once I lay hands on you, the issue is closed. Prepare to learn the full extent
of the infinite hereafter.
Jack Vance - Lyonesse II - The Green Pearl
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