TinTin++ Mud Client The TinTin++ message board

 
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 
TinTin++ Mud Client

Log entered commands?

 
Post new topic   Reply to topic    The TinTin++ message board Forum Index -> General Discussion
View previous topic :: View next topic  
Author Message
Zonbidesu



Joined: 14 Jan 2009
Posts: 28

PostPosted: Sat Mar 28, 2009 10:21 pm    Post subject: Log entered commands? Reply with quote

Can I log all commands that I entered, and only them?

I want to log all commands that I type for one session, then load each word up into #tab =D
Back to top
View user's profile Send private message Send e-mail
Scandum
Site Admin


Joined: 03 Dec 2004
Posts: 3274

PostPosted: Sun Mar 29, 2009 12:15 am    Post subject: Reply with quote

Several things you can do:

#history write <filename> will write your command history to file.

#history read <filename> will load a command history file, but those command are only accessible with ctrl-r, ! and arrow up/down.


To create a tab list the following should work, need to be logging in raw or plain mode though:

#event {RECEIVED INPUT} {#line log tab.tin {#tab {%0}}}
Back to top
View user's profile Send private message Send e-mail
Zonbidesu



Joined: 14 Jan 2009
Posts: 28

PostPosted: Sun Mar 29, 2009 10:48 am    Post subject: Reply with quote

Wouldn't that be slower then just logging it all at once at the end of my gameplaying and then saving it to the tab list? Methinks I don't want that being done every time I enter a command as I enter it.
Back to top
View user's profile Send private message Send e-mail
Scandum
Site Admin


Joined: 03 Dec 2004
Posts: 3274

PostPosted: Sun Mar 29, 2009 2:08 pm    Post subject: Reply with quote

It takes less than a millisecond, so you won't notice it.

There is however an issue with the tab list growing incredibly big. You'd probably want to use at startup:

#class tab read tab.tin
#class tab write tab.tin


All in all you'll probably be better off reading and writing a history list and using ! and ctrl-r:

#event {SESSION DISCONNECTED} {#history write history.tin}
#event {SESSION CONNECTED} {#history read history.tin}
Back to top
View user's profile Send private message Send e-mail
reality3k



Joined: 11 Feb 2009
Posts: 46

PostPosted: Wed May 06, 2009 6:49 pm    Post subject: Reply with quote

Is there an easy way to make autotab not case sensitive?

The most common use for tab completion for me is player names. They tend to be capitalized on my mud and I want to be able to do "finger des<tab>" and have it fill in "desadrin" or whatever.
Back to top
View user's profile Send private message
Scandum
Site Admin


Joined: 03 Dec 2004
Posts: 3274

PostPosted: Wed May 06, 2009 10:47 pm    Post subject: Reply with quote

I've tried that but it generated too many false positives.

Like typing finger Wes<tab> to finger Wesley and autotab would pick 'west' from the exit list.
Back to top
View user's profile Send private message Send e-mail
Display posts from previous:   
Post new topic   Reply to topic    The TinTin++ message board Forum Index -> General Discussion All times are GMT - 5 Hours
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
Get TinTin++ Mud Client at SourceForge.net. Fast, secure and Free Open Source software downloads Get TinTin++ Mud Client at SourceForge.net. Fast, secure and Free Open Source software downloads
TinTin++ Homepage

Powered by phpBB © 2001, 2002 phpBB Group