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

Counting ANSI escapes in string length

 
Post new topic   Reply to topic    The TinTin++ message board Forum Index -> Bug Reports
View previous topic :: View next topic  
Author Message
compmstr



Joined: 05 Jul 2010
Posts: 17

PostPosted: Fri Jul 16, 2010 11:26 am    Post subject: Counting ANSI escapes in string length Reply with quote

When I'm using #echo to output some text to a specific line, it's showing up as prompt size longer than row size, even though the actual text is only up to 11 characters long, the rest of the line is all just ANSI escape sequences which aren't actually displayed on the screen (They're all just color/attribute sequences, the \e[<num>m ones.
Back to top
View user's profile Send private message
Scandum
Site Admin


Joined: 03 Dec 2004
Posts: 3796

PostPosted: Fri Jul 16, 2010 5:34 pm    Post subject: Reply with quote

Odd, I don't have that problem. For example:
Code:

#echo {{\e[1;32m<abc><abc><abc><abc><abc><abc><abc><abc><abc><abc><abc><abc><abc><abc><abc><abc>123456789-123456789-123456789-123456789-123456789-123456789-123456789-123456789-}{1}}


It's possible some weird code is used that isn't recognized by tintin.
Back to top
View user's profile Send private message Send e-mail
compmstr



Joined: 05 Jul 2010
Posts: 17

PostPosted: Sat Jul 17, 2010 1:44 am    Post subject: Reply with quote

I found what the issue was, the input was messed up, I hadn't gotten the newlines handled properly.
Back to top
View user's profile Send private message
Display posts from previous:   
Post new topic   Reply to topic    The TinTin++ message board Forum Index -> Bug Reports 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