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

Play RetroMUD
Post new topic  Reply to topic     Home » Forums » CMUD General Discussion
Pauley
Beginner


Joined: 17 May 2024
Posts: 17

PostPosted: Sun Aug 18, 2024 2:39 pm   

adding linebreaks to #ECHO commands?
 
Hi.

Is there a way of adding linebreaks when using the #ECHO command? Here's what I'd like:

Code:
 #ECHO  *linebreak*  text text text blah blah 



The way I found that does this is to add an additional #ECHO " " before my #ECHO with the text I want displayed, and in this way force the insertion of a blank space (and consequently also a linebreak)

This approach is lengthy and inelegant. Is there some kind of escape character or somesuch mechanism that forces a linebreak inside the text output field of the #ECHO command?
Reply with quote
Tarn
GURU


Joined: 10 Oct 2000
Posts: 871
Location: USA

PostPosted: Sun Aug 18, 2024 9:36 pm   
 
Is something like
#echo foo %crlf bar
what you want?

To avoid a space before "bar" on the new line, you could use %concat
Reply with quote
Pauley
Beginner


Joined: 17 May 2024
Posts: 17

PostPosted: Wed Aug 21, 2024 2:50 pm   
 
Tarn wrote:
Is something like
#echo foo %crlf bar
what you want?

To avoid a space before "bar" on the new line, you could use %concat


That appears to be it, thank you :)
Reply with quote
Display posts from previous:   
Post new topic   Reply to topic     Home » Forums » CMUD 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