Register to post in forums, or Log in to your existing account
 

Play RetroMUD
Post new topic  Reply to topic     Home » Forums » CMUD General Discussion
rsleite
Newbie


Joined: 27 Mar 2011
Posts: 1

PostPosted: Sun Mar 27, 2011 9:51 pm   

Excluding certain commands from the command history
 
Hi,

I searched around and did not find anything related. I want to exclude certain commands from the command history (if that is the right term), mostly related to comm channels, like
< gen Hello there>. So when I type <g> and the up arrow I dont see that but the previous command beginning with "g". Any suggestions?

Thanks
Reply with quote
MattLofton
GURU


Joined: 23 Dec 2000
Posts: 4834
Location: USA

PostPosted: Mon Mar 28, 2011 12:15 am   
 
To do that, you probably would have to turn off command history and build your own. Beyond that, I think there's a length of command option to be found in Preferences (I know there's a number of commands option for sure).
_________________
EDIT: I didn't like my old signature
Reply with quote
daemoan.vermillious
Apprentice


Joined: 28 Feb 2009
Posts: 135
Location: Chico, Ca

PostPosted: Mon Mar 28, 2011 4:43 am   
 
That would be an intresting option to add....
A Filter list, to filter out #ti #con look who north south east west etc..... fribulous commands that wouldnt wouldnt log....
Reply with quote
shalimar
GURU


Joined: 04 Aug 2002
Posts: 4672
Location: Pensacola, FL, USA

PostPosted: Tue Mar 29, 2011 6:45 pm   
 
maybe just a means to have it exclude any lines that start with # or %...

#ONINPUT {^(*)$} {
$firstChar=%replace(%replace(%left(%1, 1), "#"), "%")
#IF ($firstChar) {
$excludeCommands=north|south|etc
$firstWord=%word(%1, 1)
#IF (!%ismember($firstWord, $excludeCommands)) {//add to custom command list}
}
}

It might be better to use %match than %ismember though
_________________
Discord: Shalimarwildcat
Reply with quote
Display posts from previous:   
Post new topic   Reply to topic     Home » Forums » CMUD General Discussion All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum

© 2009 Zugg Software. Hosted by Wolfpaw.net