🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: news.software.readers
Article #204244

Re: [slrn] How do I view an X-Face with slrn in Linux term?

#204244
From: Ohmster
Date: Mon, 20 Aug 2007 12:51
182 lines
8049 bytes
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:
>>
>>> 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?

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.

[ohmster@ohmster ~]$ locate xli |grep bin
/usr/bin/indexlib-config
/usr/bin/texlinks
[ohmster@ohmster ~]$

See? No xli. Let me see if I can google for it...
...there does not seem to be an xli rpm for fedora. Maybe I can download 
the Mandriva src one and build it for this system. Probably not, 
dependancies and all but here goes...

Nope, not going to work:

[ohmster@ohmster rpms]$ sudo rpmbuild --rebuild xli-1.17.0-8mdk.src.rpm
Installing xli-1.17.0-8mdk.src.rpm
warning: InstallSourcePackage: Header V3 DSA signature: NOKEY, key ID 
70771ff3
warning: user peroyvind does not exist - using root
warning: group peroyvind does not exist - using root
warning: user peroyvind does not exist - using root
warning: group peroyvind does not exist - using root
warning: user peroyvind does not exist - using root
warning: group peroyvind does not exist - using root
warning: user peroyvind does not exist - using root
warning: group peroyvind does not exist - using root
warning: user peroyvind does not exist - using root
warning: group peroyvind does not exist - using root
warning: user peroyvind does not exist - using root
warning: group peroyvind does not exist - using root
error: Failed build dependencies:
        XFree86-devel is needed by xli-1.17.0-8mdk.i386
        X11 is needed by xli-1.17.0-8mdk.i386
[ohmster@ohmster rpms]$

Yep, using xorg instead of XFree86. Not going to work. Dammit.

I did install xv. shareware, unregistered and all that, still no X-Face.


> 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?

>From the internal help within slrn:
x                  Remove all non-tagged read articles from the list.

The x key is being used by slrn.

> 
>> 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+

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:

% 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.

> Be sure to restart slrn after the above changes.

Always do.

>> 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.

-- 
~Ohmster * ohmster /a/t/ ohmster dot com
Put "messageforohmster" in message body
(That is Message Body, not Subject!)
to pass my spam filter.
Technical Details
Message-ID: <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!nntp.giganews.com!newsfeed00.sul.t-online.de!t-online.de!news.karotte.org!news2.arglkargh.de!news.mixmin.net!aioe.org!not-for-mail
References: <slrnfcgp9v.ofb.ohmster@ohmster.com> <20070820065518@usenet.piggo.com> <Xns9991CD36AA49MyBigKitty@194.177.96.26> <20070820104152@usenet.piggo.com>

Show Full Headers
Complete Article Headers
Message-ID: <Xns99925A1AFE8A4MyBigKitty@194.177.96.26>
Subject: Re: [slrn] How do I view an X-Face with slrn in Linux term?
Date: Mon, 20 Aug 2007 12:51:49 +0000
From: Ohmster <nowayin@hell.com>
References: <slrnfcgp9v.ofb.ohmster@ohmster.com> <20070820065518@usenet.piggo.com> <Xns9991CD36AA49MyBigKitty@194.177.96.26> <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!newsfeed00.sul.t-online.de!t-online.de!news.karotte.org!news2.arglkargh.de!news.mixmin.net!aioe.org!not-for-mail
Newsgroups: news.software.readers
Organization: Ohm's Fish Market
Lines: 182
NNTP-Posting-Host: O/RjhamsI9EKzsYUTMrueA.user.aioe.org
X-Complaints-To: abuse@aioe.org
User-Agent: Xnews/2006.08.24
X-Face: .XlXp$frDJgk"+lb;
 #RRo7mu{1=_.HV?RtB}%$JLN.!>>|\CPyQIi3/aBRW#(.dd8zlF9N]k8{xh03zVf=zG1G6{.bb%H8Vs%|7l'1YWAw+A)x'S"-}(Y`#ZN`#04OktRpU*!NdugZh(o%w5K,?/WqZ(qWs}K)Req:&D'|lkj%*a[N0bMk^Tr<PY{Sz6YcFm'[*2fkS/RV>}L.;
 =6evum0C,LE}%s@g; ]-DhWu4J"DbcJ*+fIo,l8cH@ZxF|dm~; Vg;
 XxV@K!Wp|SV+3HPyIOS,Z'j]jz]i=/5*!J&hVOQ[