🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Thread View: news.software.nn
1 messages
1 total messages Started by Andrej Barth Thu, 16 Jun 1994 07:49
nn: control key syntax in macro-definition - easy kill - SOLUTION
#5983
Author: Andrej Barth
Date: Thu, 16 Jun 1994 07:49
34 lines
1900 bytes
My question was:

> I am using nn.
> And I would like to create a macro in the init file.
> Can anybody, please, tell me what the correct syntax would be for the 
> Enter-key (Return-key). I have tried ^M, '^M', and neither did work.


With the help of Nancy McGough (nancym@u.washington.edu) and some 
try and error I found out how it works. This is now part of my .nn/init:


# kill subject 30 days
map menu ^ (
	kill-select '
	)

# kill subject permanent
map menu _ (
 	kill-select 'k' 's' "%" input 'g' "p" yes
	)

One tricky problem (at least for me) was, that I found out to enter the 
CR as 'Ctrl-v enter' and not as '^ M' literally. Well, in the end 
I still found it.

By the way, these two macros (key-bindings) allow to REALLY KILL received 
articles (not only mark them read as junk-kill does) with a minimum of 
input. This way they don't bother me anymore.

Have a nice day, you folks in netland                   Andrej

-- 
Andrej Barth (The Fox)                       barth@bln.sel.alcatel.de    
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