nerevar / jmc

JMC - Jaba Mud Client
25 stars 15 forks source link

Feature Request: Add #userinput command to control user input setting #80

Closed hollowphoton closed 3 years ago

hollowphoton commented 3 years ago

Many thanks for continuing to update this - hugely appreciate it!!!

My feature request relates to the user input setting in the common options panel: image

I'm building some scripts for MUME and have a need to submit a single line without printing it. I'd love to be able to toggle input to 'Don't Display' for a single line and then turn it back on. It could look something like this: #userinput disable|prompt|new

Allowing me to input #userinput {disable}; and #userinput {prompt}; around the submitted line I want to hide.

Thanks!!!

konelav commented 3 years ago

It looks like command #daa do exactly what you need, i.e. sends its argument to server without echo and logging; if you want to avoid echo and still write the line to log-file, you can use combination of commands #daa and #logadd.

hollowphoton commented 3 years ago

Thanks konelav - #daa is nice and hashes the command, but what I'm looking for is turning off the input entirely. Avoiding this output: *#><***********************************************************>

konelav commented 3 years ago

@hollowphoton please, take a look at https://github.com/konelav/jmc/releases/tag/3.7.1.8pre . The syntax should be almost exactly as requested #userinput [disable|prompt|newline], displaying current settings. If this is what you need, I'll add option to suppress #userinput system messages through #message command.

hollowphoton commented 3 years ago

Feature works great! +1 to adding suppression for it through the #message command.

konelav commented 3 years ago

@hollowphoton https://github.com/konelav/jmc/releases/tag/3.7.1.8

#message userinput
#userinput disable