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

ANSI handling

 
Post new topic   Reply to topic    The TinTin++ message board Forum Index -> Feature Requests
View previous topic :: View next topic  
Author Message
mivok



Joined: 24 Oct 2005
Posts: 6

PostPosted: Mon Oct 31, 2005 3:46 pm    Post subject: ANSI handling Reply with quote

The mud that I play often starts ANSI colour sequences which will span multiple lines... for example:

\e[1;31m Coloured text
More coloured text without an ansi code on this line
Yet more coloured text
etc.. often for many lines
\e[0;37m Normal text

If, the first line is not displayed on screen, but the later lines are (due to scrollback), then the lines currently being displayed will not have any colour shown, only when you scroll back to the first line with the colour code will the lines then displayed on screen be in the correct colour.

Would it be possible to include a feature that will (re)display the last colour code (or the current colour of the text) at the top of left of the viewable area so the text would display in the correct colour please?

Alternatively, is there an expression to match the last ANSI colour code of a line for use in an action which would then print out the colour code at the start of the next line (i.e. do the same thing in a script)?

Thanks.

Edit: Oh, I forgot to add - I'm using #split - I suspect the problem won't occur if split isn't on
Back to top
View user's profile Send private message
Scandum
Site Admin


Joined: 03 Dec 2004
Posts: 3281

PostPosted: Mon Oct 31, 2005 4:12 pm    Post subject: Reply with quote

It's indeed an issue caused by split.

I've added it to the todo list.
Back to top
View user's profile Send private message Send e-mail
mivok



Joined: 24 Oct 2005
Posts: 6

PostPosted: Mon Oct 31, 2005 4:24 pm    Post subject: Reply with quote

Thanks
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 -> Feature Requests 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