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
Valint
Wanderer


Joined: 12 Nov 2003
Posts: 70
Location: USA

PostPosted: Sun Jan 25, 2004 5:46 pm   

Lines without line feeds
 
In Gemstone, I'm having a problem with lines not always being preceded with line feeds, which means that I get text occasionally appearing on the same line as my prompt, e.g.,

>
Joe just arrived.
>
Joe smiles.
> Joe gestures.
Joe is surrounded by a white light.
>

The problem, of course, is that this means that I can't use ^ reliably in trigger patterns, since I won't know if the text will actually start at the beginning of the line.

Has anyone else run into this problem, and is there a way to fix it?
Reply with quote
Kjata
GURU


Joined: 10 Oct 2000
Posts: 4379
Location: USA

PostPosted: Mon Jan 26, 2004 1:12 pm   
 
Yes, this is something very common in all MUDs. When a MUD displays a prompt, it doesn't send a newline so whatever you type appears right next to the prompt. If however, the MUD receives more than one command at a time that produce a prompt, the first prompt appears correcty, but the second prompt gets displayed followed by the output of the second command.

The best thing you can do is to include a newline in your prompt sequence if the MUD allows it. Otherwise, you could probably use a trigger to catch the instance when the prompt is followed by some other characters and use #SUB to reformat it.
Reply with quote
phastari
Newbie


Joined: 08 Apr 2004
Posts: 4
Location: Sweden

PostPosted: Sun May 09, 2004 1:38 am   
 
What type of substitute would work?! I've been trying to get a trigger like this working now for awhile, but I just cant make it happen
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