🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Thread View: news.software.readers
7 messages
7 total messages Started by Lewis Mon, 23 Jun 2014 10:23
[slrn] resetting print command
#257910
Author: Lewis
Date: Mon, 23 Jun 2014 10:23
30 lines
2322 bytes
$ grep "article print" .slrnrc
setkey article print                "^Q"        % Print article

And yet, if I accidentally hit 'y' when reading an article, slrn asks if I
want to print the article.

I *never* want to print and article. *Ever*.

How do I convince slrn to 1) never ask and 2) never do it even if some
random sequence of characters would otherwise cause it to do so.

$ slrn --version
slrn 1.0.1
S-Lang Library Version: 2.2.4
Compiled on: Apr 11 2014 00:27:45
Operating System: Darwin

COMPILE TIME OPTIONS:
 Backends: +nntp -slrnpull -spool
 External programs / libs: -canlock -inews +ssl -uudeview +iconv
 Features: +decoding +emphasized_text +end_of_thread +fake_refs +gen_msgid
    -grouplens -msgid_cache +piping +rnlock +spoilers -strict_from
 Using 64 bit integers for article numbers.

DEFAULTS:
 Default server object:     nntp
 Default posting mechanism: nntp

-- 
And I'm nor insane, my mother had me tested.
Re: [slrn] resetting print command
#257911
Author: Adam Funk
Date: Mon, 23 Jun 2014 11:07
24 lines
1816 bytes
On 2014-06-23, Lewis wrote:

> $ grep "article print" .slrnrc
> setkey article print                "^Q"        % Print article
>
> And yet, if I accidentally hit 'y' when reading an article, slrn asks if I
> want to print the article.
>
> I *never* want to print and article. *Ever*.
>
> How do I convince slrn to 1) never ask and 2) never do it even if some
> random sequence of characters would otherwise cause it to do so.

You can set a custom printing command in ~/.slrnrc like this:

set printer_name "command --option args"

I think you could use "/bin/false" there to achieve what you want.
Let me know if it works.


-- 
The history of the world is the history of a privileged few.
                                            --- Henry Miller
Re: [slrn] resetting print command
#257912
Author: Steve Crook
Date: Mon, 23 Jun 2014 11:11
21 lines
1729 bytes
On Mon, 23 Jun 2014 10:23:01 +0000 (UTC), Lewis wrote in
Message-Id: <slrnlqg005.22gj.g.kreme@amelia.local>:

> $ grep "article print" .slrnrc
> setkey article print                "^Q"        % Print article
>
> And yet, if I accidentally hit 'y' when reading an article, slrn asks if I
> want to print the article.
>
> I *never* want to print and article. *Ever*.
>
> How do I convince slrn to 1) never ask and 2) never do it even if some
> random sequence of characters would otherwise cause it to do so.

How about:
unsetkey article	"y"

-- 
What shall we use 
To fill the empty spaces 
Where we used to talk?
Re: [slrn] resetting print command
#257913
Author: Adam Funk
Date: Mon, 23 Jun 2014 12:07
29 lines
2132 bytes
On 2014-06-23, Adam Funk wrote:

> On 2014-06-23, Lewis wrote:
>
>> $ grep "article print" .slrnrc
>> setkey article print                "^Q"        % Print article
>>
>> And yet, if I accidentally hit 'y' when reading an article, slrn asks if I
>> want to print the article.
>>
>> I *never* want to print and article. *Ever*.
>>
>> How do I convince slrn to 1) never ask and 2) never do it even if some
>> random sequence of characters would otherwise cause it to do so.
>
> You can set a custom printing command in ~/.slrnrc like this:
>
> set printer_name "command --option args"
>
> I think you could use "/bin/false" there to achieve what you want.
> Let me know if it works.

Oops, I just read your question again properly.  Ignore that & try
Steve's suggestion.


-- 
The generation of random numbers is too important to be left to
chance.                                     [Robert R. Coveyou]
Re: [slrn] resetting print command
#257914
Author: Lewis
Date: Mon, 23 Jun 2014 14:45
33 lines
2517 bytes
Okay, so one time?  In band camp?  Steve Crook <steve@mixmin.net> was all, like: 
 --> 	 Mon, 23 Jun 2014 11:11:01 +0000 (UTC) <slrnlqg2q5.a1l.steve@snorky.mixmin.net>
> On Mon, 23 Jun 2014 10:23:01 +0000 (UTC), Lewis wrote in
> Message-Id: <slrnlqg005.22gj.g.kreme@amelia.local>:

>> $ grep "article print" .slrnrc
>> setkey article print                "^Q"        % Print article
>>
>> And yet, if I accidentally hit 'y' when reading an article, slrn asks if I
>> want to print the article.
>>
>> I *never* want to print and article. *Ever*.
>>
>> How do I convince slrn to 1) never ask and 2) never do it even if some
>> random sequence of characters would otherwise cause it to do so.

> How about:
> unsetkey article	"y"

Do you mean

unsetkey article print "y"

?

What I did was set y to another command (same as 't')

setkey article toggle_headers          "y"
setkey article toggle_headers          "t"

-- 
NO. I CANNOT BE BIDDEN. I CANNOT BE FORCED. I WILL DO ONLY THAT WHICH I
KNOW TO BE RIGHT. --Mort
Re: [slrn] resetting print command
#257915
Author: Steve Crook
Date: Mon, 23 Jun 2014 14:56
23 lines
1835 bytes
On Mon, 23 Jun 2014 14:45:58 +0000 (UTC), Lewis wrote in
Message-Id: <slrnlqgfd6.2825.g.kreme@Amelia.local>:

>> How about:
>> unsetkey article	"y"
>
> Do you mean
>
> unsetkey article print "y"
I think the first one is correct.  You don't say what you want to unset
the key from doing, just that you want to unset it from doing anything.

> What I did was set y to another command (same as 't')
>
> setkey article toggle_headers          "y"
> setkey article toggle_headers          "t"
Yup, that would work too, providing you want the alternate function you
assign to it.  :)

-- 
What shall we use 
To fill the empty spaces 
Where we used to talk?
Re: [slrn] resetting print command
#257916
Author: Lewis
Date: Mon, 23 Jun 2014 19:41
23 lines
2418 bytes
Okay, so one time?  In band camp?  Steve Crook <steve@mixmin.net> was all, like: 
 --> 	 Mon, 23 Jun 2014 14:56:33 +0000 (UTC) <slrnlqgg11.a1l.steve@snorky.mixmin.net>
> On Mon, 23 Jun 2014 14:45:58 +0000 (UTC), Lewis wrote in
> Message-Id: <slrnlqgfd6.2825.g.kreme@Amelia.local>:

>>> How about:
>>> unsetkey article	"y"
>>
>> Do you mean
>>
>> unsetkey article print "y"
> I think the first one is correct.  You don't say what you want to unset
> the key from doing, just that you want to unset it from doing anything.

Ah. I think I misunderstood the syntax of the line. I read it as: "Set
the command 'article print' to the key 'y'" and I thin the syntax is:
"In the article view, set the print command to 'y'".

So, in that case, unsetkey article 'y' makes sense.


-- 
"He is simply a shiver looking for a spine to run up." - Paul Keating
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