Article View: news.software.readers
Article #204097Re: [slrn] How do I view an X-Face with slrn in Linux term?
From: Troy Piggins
Date: Mon, 20 Aug 2007 01:19
Date: Mon, 20 Aug 2007 01:19
92 lines
4832 bytes
4832 bytes
* Ohmster is quoted & my replies are inline below :
> Troy Piggins <usenet-0708@piggo.com> wrote in news:20070820065518
> @usenet.piggo.com:
>
>> This worked for me:
>> http://piggo.com/~troy/slrn#xface
>
> I tried and it looked promising too. I installed compface with yum,
> downloaded view-x-face to /usr/local/bin, chmodded it for 755, downloaded
> slrnface.sl to my $HOME dir, added this to my .slrnrc file:
> % Take a look at slrnface.sl, edit if you want and then include it in
> % your .slrnrc, like this:
> interpret /home/ohmster/slrnface.sl
>
> 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?
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.
Or if you want to use it as I do, just comment out the
if/then/else stuff and manually set the VIEWER variable.
> 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?
> 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-
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.
Be sure to restart slrn after the above changes.
> Awwwww, and I was all excited about this too! Ahhh, pooh! :(
Stay excited. We must be close to getting you working.
--
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:
<20070820104152@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!nntp.giganews.com!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>Show Full Headers
Complete Article Headers
Message-ID: <20070820104152@usenet.piggo.com> Subject: Re: [slrn] How do I view an X-Face with slrn in Linux term? Date: Mon, 20 Aug 2007 11:19:24 +1000 From: Troy Piggins <usenet-0708@piggo.com> References: <slrnfcgp9v.ofb.ohmster@ohmster.com> <20070820065518@usenet.piggo.com> <Xns9991CD36AA49MyBigKitty@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!nntp.giganews.com!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: 92 NNTP-Posting-Host: 124.171.192.201 X-Trace: 1187573402 per-qv1-newsreader-01.iinet.net.au 27797 124.171.192.201