Saving a pose in order to reply to a page

Posted by Ashtor on Tue 05 Aug 2008 10:37 PM — 7 posts, 23,860 views.

#0
I have started using Mushclient recently, and have been very happy with it. Finding it simple to program aliases, line highlighting and enjoying its speed when working with multiple Mushes.

It has been a pleasant change after having become frustrated with the complexity of CMUD, trying to understand the package system, and worst of all its bugs in logging on to multiple servers.

The one thing I miss is the ability to store a pose which I am working on in order to reply to a page. I have tried searching the website here and if there is a simple thread on this maybe someone could point me to it. In CMUD or ZMUD I would down arrow and my half-completed pose, typically six to ten lines would go into the history without being sent to the mush. Then I could reply back to whomever had paged me, recall the pose, finish it and send it to the mush.

I am sure with the flexibility that Mushclient has that there is a simple way of saving and recalling a half-completed pose. So I would appreciate anyones help who could point me to the code or tell me of a plugin I could use to facilitate this.

USA #1
Yup, easy enough.

Alt+Enter to bring up preferences. Go to Input \ Commands on the left, click the Keyboard Preferences button. Check on "Escape Clears Typing" and "Save Deleted Typing".

When you want to reply, escape, reply, up arrow gets you back.

Down arrow will clear the line without saving.
Australia Forum Administrator #2
The simplest way of doing that is to execute this script line:


/AcceleratorTo ("F5", "PushCommand ()", sendto.script)


For that to work you need Lua scripting, and in the Scripting configuration tab, make "/" the "script prefix".

Once you have done that, you can type half a command, hit F5, which pushes that into the command history list, and clears the command window.

Then type what you have to say, and then use Ctrl+H to review the command history, find your emote, hit <Enter> to put it back into the command window, and keep typing. If you get interrupted again, hit F5 again, and it goes back into the history list (at the bottom).

If you only have a single interruption, simply up-arrow to get the older item out of the command history, which will be your emote.

To save mucking around with scripting, you can copy and paste the alias below:


<aliases>
  <alias
   match="remember"
   enabled="y"
   send_to="12"
   sequence="100"
  >
  <send>
AcceleratorTo ("F5", "PushCommand ()", sendto.script)
Note ("F5 now saves your current command")
</send>
  </alias>
</aliases>


See http://mushclient.com/pasting for how to do that.

Now, at the start of your session, just type "remember" to trigger this alias, and make it set up F5 for you.

And to automate that even, go into the scripting configuration, and under "World Open" enter: !remember

The "!" makes it execute that alias, every time you open the world.



Australia Forum Administrator #3
And what WillFa said is simpler again. ;)
#4
Thank you so much for your help and your rapid response. Now when someone pages me to check if I have fallen asleep, I can assure them that I am still working on the pose :).
Netherlands #5
Well, you learn something every day. I've always been an avid Ctrl-A, Ctrl-X person, followed by a Ctrl-V after handling the interruption.

Let's see if I can get into the habit of using this method instead :)
USA #6
I forgot to include:

Check "Arrow Keys Traverse History" too. otherwise you'd need to ALT+Arrow to cycle through history.