[phpBB Debug] PHP Warning: in file [ROOT]/viewtopic.php on line 2067: Undefined array key "author"
[phpBB Debug] PHP Warning: in file [ROOT]/viewtopic.php on line 2067: Undefined array key "author"
[phpBB Debug] PHP Warning: in file [ROOT]/viewtopic.php on line 2067: Undefined array key "author"
[phpBB Debug] PHP Warning: in file [ROOT]/viewtopic.php on line 2067: Undefined array key "author"
http://www.shatteredisles.com • New Line Character after Prompt
Page 1 of 1

New Line Character after Prompt

Posted: Thu Apr 21, 2016 11:48 am
by
I've figured out how to add a new line character myself. However, could this be added by the mud if it's not present in the configured prompt?

The benefit I see is that it prevents triggers for health bars from being one prompt behind. Also, it prevents problems where the text appears at the end of the prompt. Those problems alone make the mud seem unpolished.

Insuring that there's a new line at the end of a prompt would be a small change and help out.

For example, my simple prompt did not originally have the "%B" at the end:
prompt ^w<^RHP:%h/%H ^cMv:%m/%M ^w%I>%B

Re: New Line Character after Prompt

Posted: Thu Apr 21, 2016 12:35 pm
by
We'll take a look and see. Thanks for the feedback.

Re: New Line Character after Prompt

Posted: Thu Apr 21, 2016 4:13 pm
by
Triggers on CMUD can be set to use the prompt status, or new line status.
I bet your client can as well, though don't ask me how.

It would be nice if MXP or some other means of sending that information to the client without having to print it to the screen at all was implemented.

Re: New Line Character after Prompt

Posted: Fri Apr 22, 2016 8:42 am
by
Vexing wrote:Triggers on CMUD can be set to use the prompt status, or new line status.
I bet your client can as well, though don't ask me how.
You're right, in fact. I use Mushclient and it can trigger on all sorts of things (TCP/IP packet recieved, partial lines, etc.). I almost went down this road. However, I decided to look into adding a linebreak to my prompt and, lo and behold, there it was. The fabulous %B. It was a much easier solution than trying to match on partial lines.

Also, the newline fixes several other bugs with triggers where, for example, the triggered message shows up at the end of the prompt line. For example, I don't have to code around this:

Code: Select all

<HP:1560/1560 Mv: 940/940 Standing>You are done mining.