[Home] [Downloads] [Search] [Help/forum]

Gammon Forum

See www.mushclient.com/spam for dealing with forum spam. Please read the MUSHclient FAQ!

[Folder]  Entire forum
-> [Folder]  MUSHclient
. -> [Folder]  General
. . -> [Subject]  Change carriage returns to %r
Home  |  Users  |  Search  |  FAQ
Register forum user name
Forgotten password?

Change carriage returns to %r

It is now over 60 days since the last post. This thread is closed.     [Refresh] Refresh page

Posted by Ebondream   (2 posts)  [Biography] bio
Date Sun 27 Mar 2016 03:29 PM (UTC)
Sorry if I this has been answered elsewhere--

Is there a way to automatically edit the text in the input window so that all carriage returns are changed into %r? So that I can for instance copy-paste a multi-paragraph description from a text file and not have MUSHclient read it as me trying to imput several different commands?
[Go to top] top

Posted by Fiendish   USA  (1,744 posts)  [Biography] bio   Global Moderator
Date Reply #1 on Sun 27 Mar 2016 07:57 PM (UTC)
Yes, but before we get into that...

What are commands? MUSHclient doesn't send commands. MUSHclient sends lines of data.
Commands are only commands if the server interprets them as directives instead of information.
So then the question becomes, what is special about %r? Is your server going to interpret %r as new line but can't interpret new line as new line?

Anyway, the documentation at http://www.mushclient.com/scripts/doc.php?general=plugin_callbacks has your exact request covered in the example for OnPluginCommandEntered.

[Go to top] top

The dates and times for posts above are shown in Universal Co-ordinated Time (UTC).

To show them in your local time you can join the forum, and then set the 'time correction' field in your profile to the number of hours difference between your location and UTC time.


It is now over 60 days since the last post. This thread is closed.     [Refresh] Refresh page

Go to topic:           Search the forum

[Go to top] top

Quick links: MUSHclient. MUSHclient help. Forum shortcuts. Posting templates. Lua modules. Lua documentation.

Information and images on this site are licensed under the Creative Commons Attribution 3.0 Australia License unless stated otherwise.


Written by Nick Gammon - 5K   profile for Nick Gammon on Stack Exchange, a network of free, community-driven Q&A sites   Marriage equality

Comments to: Gammon Software support
[RH click to get RSS URL] Forum RSS feed ( https://gammon.com.au/rss/forum.xml )

[Best viewed with any browser - 2K]    [Hosted at FutureQuest]