Article View: news.software.readers
Article #204289Re: [slrn] How do I view an X-Face with slrn in Linux term?
From: Troy Piggins
Date: Mon, 20 Aug 2007 21:05
Date: Mon, 20 Aug 2007 21:05
151 lines
6980 bytes
6980 bytes
* Ohmster is quoted & my replies are inline below :
> Troy Piggins <usenet-0708@piggo.com> wrote in
> news:20070820104152@usenet.piggo.com:
>
>> * Ohmster is quoted & my replies are inline below :
>>> Troy Piggins <usenet-0708@piggo.com> wrote in news:20070820065518
>>> @usenet.piggo.com:
>>>
[snip]
>>> I also edited view-x-face as such:
>>>
>>> else
>>> # VIEWER=image2ascii # Use image2ascii as ASCII image
>>> viewer VIEWER="image2ascii -geometry 64x64" #View X-Face
>>> as icon sized
>>> image
>>> fi
>>
>> Are you running X11? The above is only invoked if you aren't.
>> Also your comment "as icon sized image" is not quite right. The
>> 64x64 does not refer to pixels, it refers to characters. See how
>> big the X-Face is on the screenshot on my page?
>
> Yes well both. I run my box at runlevel 3 because I really do like the
> CLI. I have a nifty desktop with beryl 3D all setup on gnome and can run
> it with the startx commant. I also so much of my linux work from a putty
> vt100 terminal from my XP box over the lan via SSH, so no X11 there,
> that's for sure, but I do get the ANSII colors all pretty and stuff. It
> would be neat as hell to be able to use the X-Face viewer over the putty
> terminal. That is not something that I could do before.
>
>> If you /are/ running X11, keeping in mind that I do not use X11
>> so am not 100% sure, you need to make sure that
>>
>> #v+
>> if ...
>> then
>> VIEWER="xli stdin"
>> #v-
>> ^^^
>> xli must be installed and in your $PATH.
>
> I do not have xli installed on my machine and yum is not finding it. I
> will have to hunt down this xli viewer then.
[snip]
>> Or if you want to use it as I do, just comment out the
>> if/then/else stuff and manually set the VIEWER variable.
Can I suggest you try this to narrow down where the problem might
be? Take xli etc out of the equation.
>>> And then fired up slrn in a term window. I did not see any X-Faces
>>> in any
>>> articles where I know there is an X-Face like mine or Blinky's. I did
>>> hit the "x" key and all that did was make a lot of posts "go away"
>>> that I really did not want to have gone just yet. I had to edit
>>> .jnewsrc and find the newsgroup "news.software.readers", then remove
>>> all the numbers after the colon to get them back again.
>>
>> That's not right. Something else must be bound to "x" key?
>
> From the internal help within slrn:
> x Remove all non-tagged read articles from the list.
>
> The x key is being used by slrn.
So pick another key to do the X-Face macro.
>>> Still, no X-Face. What is the secret here and what do you mean by
>>> "If you want to automatically view X-Faces upon opening articles,
>>> simply register it as a read_article_hook."
>>
>> Registering it as a read_article_hook means that whenever you
>> open an article, if there is an X-Face, it will automatically be
>> displayed. I tried it for a while but got the shits with it
>> pretty quickly because so many regulars, particularly in this
>> group, use X-Faces and I don't need to see them (I know what they
>> look like), and I had to hit a key again to make the X-Face
>> disappear. Too many keystrokes.
>>
>> If you /do/ want to register it as a hook, add this to your
>> .slrnrc:
>>
>> #v+
>> () = register_hook ("read_article_hook", "show_xface");
>> #v-
>
> [ohmster@ohmster ~]$ slrn
> slrn 0.9.8.1pl1 [2005-02-17]
>
> Reading startup file /etc/slrn.rc.
> Reading startup file /home/ohmster/.slrnrc.
> loading /home/ohmster/slrnface.sl
> #v+: invalid command
> slrn fatal error:
> /home/ohmster/.slrnrc: Error encountered processing line 158
> #v+
Don't put the #v+ and #v- lines in your .slrnrc. I should've
clarified.
> For the record, .slrnrc uses a % as a comment mark. Were you meaning to
> comment those v lines with the # mark? This is how comments are made in
> .slrnrc:
:-) I know. the #v+ and #v- are verbatim marks. You are meant
to use the code in between them, not include them.
> % Directory where postponed articles are placed. Please make sure it
> exists.
> set postpone_directory "News/postponed"
>
> That News directory is actually relevent to my home directory as in:
> /home/ohmster/News/postponed
>
> > What that does is executes the macro "show_xface" every time you
> > read an article.
> >
> >> How does one do that? What am I doing wrong here? Did I put something
> >> in the wrong spot? The x key in slrn is already assigned a funtion of
> >> making articles go away so how does hitting the "x" key show an
> >> X-Face?
> >
> > You don't want to have the same key bound to more than one
> > macro/function. To change the key from "x" to something else,
> > change the "definekey" line right at the end of slrnface.sl.
> > Please.
>
> I could try.
Good.
> > Be sure to restart slrn after the above changes.
>
> Always do.
Cool.
> >> Awwwww, and I was all excited about this too! Ahhh, pooh! :(
> >
> > Stay excited. We must be close to getting you working.
>
> Okay, we will go at it a little while more. Late for work now, gotta go.
Good luck.
--
Troy Piggins | http://piggo.com/~troy
___ | __ __ ,-O (o- O
slrn macros and howto: |___ | |/ |/ | O ) //\ O
http://piggo.com/~troy/slrn ___| | | | | `-O V_/_ OOO
Technical Details
Message-ID:
<20070821065624@usenet.piggo.com>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!number1.nntp.dca.giganews.com!border1.nntp.dca.giganews.com!border2.nntp.dca.giganews.com!nntp.giganews.com!nntp1.phx1.gblx.net!nntp.gblx.net!nntp.gblx.net!nntp4.phx1!newsfeed.iinet.net.au!newsfeed.iinet.net.au!per-qv1-newsstorage1.iinet.net.au!per-qv1-newsstorage1.iinet.net.au!per-qv1-newsreader-01.iinet.net.au!not-for-mailReferences:
<slrnfcgp9v.ofb.ohmster@ohmster.com> <20070820065518@usenet.piggo.com> <Xns9991CD36AA49MyBigKitty@194.177.96.26> <20070820104152@usenet.piggo.com> <Xns99925A1AFE8A4MyBigKitty@194.177.96.26>Show Full Headers
Complete Article Headers
Message-ID: <20070821065624@usenet.piggo.com> Subject: Re: [slrn] How do I view an X-Face with slrn in Linux term? Date: Tue, 21 Aug 2007 07:05:18 +1000 From: Troy Piggins <usenet-0708@piggo.com> References: <slrnfcgp9v.ofb.ohmster@ohmster.com> <20070820065518@usenet.piggo.com> <Xns9991CD36AA49MyBigKitty@194.177.96.26> <20070820104152@usenet.piggo.com> <Xns99925A1AFE8A4MyBigKitty@194.177.96.26> 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!number1.nntp.dca.giganews.com!border1.nntp.dca.giganews.com!border2.nntp.dca.giganews.com!nntp.giganews.com!nntp1.phx1.gblx.net!nntp.gblx.net!nntp.gblx.net!nntp4.phx1!newsfeed.iinet.net.au!newsfeed.iinet.net.au!per-qv1-newsstorage1.iinet.net.au!per-qv1-newsstorage1.iinet.net.au!per-qv1-newsreader-01.iinet.net.au!not-for-mail Newsgroups: news.software.readers Reply-To: usenet-0708@piggo.com X-NNTP-Proxy: Leafnode-2 (http://www-dt.e-technik.uni-dortmund.de/~ma/leafnode/beta/) User-Agent: slrn/0.9.8.1pl2.1/rt (Linux) Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Lines: 151 NNTP-Posting-Host: 124.171.132.246 X-Trace: 1187644503 per-qv1-newsreader-01.iinet.net.au 27793 124.171.132.246 X-Original-Bytes: 6742