|
Fang Xianfu GURU
Joined: 26 Jan 2004 Posts: 5155 Location: United Kingdom
|
Posted: 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.
|
|
|
|
Arminas Wizard
Joined: 11 Jul 2002 Posts: 1265 Location: USA
|
Posted: 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 |
|
|
|
Taz GURU
Joined: 28 Sep 2000 Posts: 1395 Location: United Kingdom
|
Posted: Tue Oct 30, 2007 6:40 pm |
It's definitely by design that it doesn't append CRLF.
|
|
_________________ Taz :) |
|
|
|
Fang Xianfu GURU
Joined: 26 Jan 2004 Posts: 5155 Location: United Kingdom
|
Posted: 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? |
|
|
|
Zugg MASTER
Joined: 25 Sep 2000 Posts: 23379 Location: Colorado, USA
|
Posted: 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. |
|
|
|
|
|