🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: news.software.readers
Article #32994

Re: slrn: patch for fancy urls

#32994
From: Olly Betts
Date: Tue, 22 Apr 1997 00:00
52 lines
2401 bytes
In article <slrn5lcisn.9hq.itz@kronstadt.rahul.net>, Ian T Zimmerman wrote:
>>  olly@muscat.co.uk (Olly Betts):
>> > I've written a patch to add coloured and clickable URLs to slrn
>> > 0.9.3.2 (when running in an xterm) and I'm interested in getting
>> > some feedback: http://www.muscat.co.uk/~olly/slrnfancyurls.html
>> > Let me know what you think.
>
>As far as I'm concerned, this is the sort of thing that leads to code
>bloat

That's a rather extreme reaction to such a small patch -- most of the code
was already in slrn in some form, since 'U' was already capable of parsing
the article for URLs and launching a web browser.

Just for the record:

slrn 0.9.3.2 with default config + spool support, on Linux with shared
libraries, gcc 2.7.2.

Size before: 264688
Size after:  265520

Increase in size: 832 bytes (that's 0.3%).

>(after all, you can simply select the URL and paste it to your browser!).

I can simply post news by telnet-ing to port 119 on my newsserver, but it's
easier to have the software do the tedious work for me.

Instead of a single click, cut and paste requires me to:

 * Start a new Netscape window or start Netscape
 * Select the URL carefully enough to avoid leading or trailing characters
(* If starting Netscape, wait for it to catch up)
 * Click to position the cursor in the URL box
 * Delete existing URL using ^U
 * Paste text into the URL box
 * Press Enter

(There are probably a dozen variations, but all the ones I'm aware of are
about as complicated).

Ironically, it was the tedium of this "simple" routine which drove me to
write the patch.

Cheers,
Olly
-- 
Usenet is not for answering questions but for questioning answers.

Technical Details
Message-ID: <slrn5lpble.8a4.olly@noxious.muscat.co.uk>
Path: mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!illumos!news.pugleaf.net!.TX!archive.pugleaf.net!archive.newsdeef.eu!mbox2nntp-news.software.readers.mbox.zip!not-for-mail
References: <slrn5l72bi.5o7.olly@noxious.muscat.co.uk> <slrn5l74p9.2s9.guckes@banach.math.fu-berlin.de> <slrn5lcisn.9hq.itz@kronstadt.rahul.net>

Show Full Headers
Complete Article Headers
Message-ID: <slrn5lpble.8a4.olly@noxious.muscat.co.uk>
Subject: Re: slrn: patch for fancy urls
Date: Tue, 22 Apr 1997 00:00:00 +0000
From: olly@muscat.co.uk (Olly Betts)
References: <slrn5l72bi.5o7.olly@noxious.muscat.co.uk> <slrn5l74p9.2s9.guckes@banach.math.fu-berlin.de> <slrn5lcisn.9hq.itz@kronstadt.rahul.net>
Path: mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!illumos!news.pugleaf.net!.TX!archive.pugleaf.net!archive.newsdeef.eu!mbox2nntp-news.software.readers.mbox.zip!not-for-mail
X-Deja-AN: 236578476
Organization: Muscat Ltd -- http://www.muscat.co.uk/
Newsgroups: news.software.readers