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

Play RetroMUD
Post new topic  Reply to topic     Home » Forums » zMUD General Discussion
dthibi
Newbie


Joined: 28 May 2002
Posts: 2

PostPosted: Sat Jun 01, 2002 9:13 am   

Captureing multiple lines of text
 
The MUD I'm playing inserts splits up messages to multiple lines and inserts a tab at the beginning of the second and subsequent lines. For example:

Fred says Hello this is a really long line to give an example of
........how a message would be displayed as output of the mud

(note: the "........" is actually white space. it didn't seem to format in the post correctly)

So, how would I capture these lines so that I can correctly send it to another window?

Also, I think I'd like to "re-attach" the second line and make it all one big line.

Dan T.
Reply with quote
Vijilante
SubAdmin


Joined: 18 Nov 2001
Posts: 5182

PostPosted: Sat Jun 01, 2002 2:02 pm   
 
Fikrst thing is read you muds help and see if you can set your screen size. You would want to set the width up to 200 if possible. That would allow zMud to do the wordwrapping for you instead of the mud.
Reply with quote
sp000n
Novice


Joined: 04 Jul 2001
Posts: 32

PostPosted: Sun Jun 02, 2002 3:44 am   
 
It's his mud doing the formatting, not his screen.
Reply with quote
LightBulb
MASTER


Joined: 28 Nov 2000
Posts: 4817
Location: USA

PostPosted: Sun Jun 02, 2002 5:40 am   
 
That's why Vijilante recommended increasing the screen width, if the MUD will allow it. With a 200 character screen width, there will be far fewer lines being formatted by the MUD.

You might try using #C+ and #C-. If you have a prompt which will show up at the end of the "say", it would be ideal for the #C- command. Most of the time, it should just be an ignored command since you wouldn't be capturing. If not, perhaps this will work.
#TR {%w says %x} {#C+ says}
#TR {^%x} {#C-}


I don't think "re-attaching" lines will be worth the effort it would take to come up with a successful method of doing so. It would be better if they weren't broken up in the first place (see Vijilante's suggestion).

LightBulb
Vague questions get vague answers
Reply with quote
Display posts from previous:   
Post new topic   Reply to topic     Home » Forums » zMUD 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