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

How to trigger mud output's "tab character" in sub

 
Post new topic   Reply to topic    The TinTin++ message board Forum Index -> Script Help
View previous topic :: View next topic  
Author Message
Silver Surfer



Joined: 13 Jan 2012
Posts: 20

PostPosted: Fri Jan 13, 2012 3:25 am    Post subject: How to trigger mud output's "tab character" in sub Reply with quote

Hello

I have such a problem.

My mud outputs me a string, beginning with the "tab character", and continuing with consequent characters "Str" (and further nonspecial characters): so this mud's output string is like:

" Str..."

I enabled "con {convert meta} {on}". It shows me that string as

"\C-iStr..."

(where "\C-i", as I guess, is "tab character").

I need to write substitute triggering this string (which replaces it to something new). Please help me how to write substitute that will trigger that string (by now, no luck... Nope)
Back to top
View user's profile Send private message
Scandum
Site Admin


Joined: 03 Dec 2004
Posts: 3274

PostPosted: Fri Jan 13, 2012 9:21 pm    Post subject: Reply with quote

Looks like you're running an old tt++ version.

In the current version it should show \t for tabs, and you can use \t in your subs and actions to trigger tabs.
Back to top
View user's profile Send private message Send e-mail
Silver Surfer



Joined: 13 Jan 2012
Posts: 20

PostPosted: Sat Jan 14, 2012 6:35 am    Post subject: Reply with quote

Then, in new version, I do this like following?:

#sub {^\tStr...} {newtext}

?

--------------------------------------

One new question.

What is the correct format for checking by regexp if the string is empty.

Please, give an example.
Back to top
View user's profile Send private message
Scandum
Site Admin


Joined: 03 Dec 2004
Posts: 3274

PostPosted: Sat Jan 14, 2012 10:45 am    Post subject: Reply with quote

Yes.

To check for an emptry string use something like #gag {^$}
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 -> Script Help 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