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

Play RetroMUD
Post new topic  Reply to topic     Home » Forums » CMUD Beta Forum
Fang Xianfu
GURU


Joined: 26 Jan 2004
Posts: 5155
Location: United Kingdom

PostPosted: Tue Oct 30, 2007 3:38 pm   

[2.09] #SENDRAW doesn't append CRLF
 
As simple as the title says - #sendraw doesn't append CRLF to the command it sends. This might be deliberate, but as far as I'm aware, MUDs don't process commands unless they end in CRLF. Certainly none of the ones I tested it on did. This means that you have to do it manually every time by adding %cr%lf, which gets pretty annoying.
_________________
Rorso's syntax colouriser.

- Happy bunny is happy! (1/25)
Reply with quote
Arminas
Wizard


Joined: 11 Jul 2002
Posts: 1265
Location: USA

PostPosted: Tue Oct 30, 2007 6:25 pm   
 
I think the last time I tried it. A few weeks ago, %lf worked too. But don't forget that there is a %crlf predefined variable as well.
_________________
Arminas, The Invisible horseman
Windows 7 Pro 32 bit
AMD 64 X2 2.51 Dual Core, 2 GB of Ram
Reply with quote
Taz
GURU


Joined: 28 Sep 2000
Posts: 1395
Location: United Kingdom

PostPosted: Tue Oct 30, 2007 6:40 pm   
 
It's definitely by design that it doesn't append CRLF.
_________________
Taz :)
Reply with quote
Fang Xianfu
GURU


Joined: 26 Jan 2004
Posts: 5155
Location: United Kingdom

PostPosted: Tue Oct 30, 2007 7:14 pm   
 
I ask just because the old version of #send added CRLF, and because all the servers I tested on appended whatever you send without CRLF, making sendraw do some seemingly weird things. I can see it causing people problems.

Is there a specific application (perhaps SSH?) that this is good for?
_________________
Rorso's syntax colouriser.

- Happy bunny is happy! (1/25)
Reply with quote
Zugg
MASTER


Joined: 25 Sep 2000
Posts: 23379
Location: Colorado, USA

PostPosted: Tue Oct 30, 2007 9:02 pm   
 
Yeah, I think this is worth changing now before a lot of people start using it. Especially since there is already the existing #SENDPROMPT command which is the same as #SENDRAW. I think #SENDRAW should probably send the %crlf like #SEND does, and then people can use #SENDPROMPT when they need to send raw text without the newline.

The original purpose of #SENDPROMPT was for sending control characters, like sending a %char(3) CTRL-C to the server.
Reply with quote
Display posts from previous:   
Post new topic   Reply to topic     Home » Forums » CMUD Beta Forum 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