showPrompt()
showPrompt()
I'm wondering if anyone has any neat ideas on how to implement the mudbot-like showPrompt() in Mudlet. This is useful if you're displaying an echo and want to have it end with a fake prompt, instead of leaving it hanging on a blank line (until you get output from the mud).
Re: showPrompt()
Well, I guess the simplest version would be either to do a send("") to force the mud to send a prompt (I'm not sure whether that will work with all muds though), or to simply capture the prompt with a trigger into a variable and echo it (with colours, if necessary).
Re: showPrompt()
Oh yeah, I was meaning about the capture solution, so it's instant (and doesn't mess anything up, I think a blank send can interrupt some things ).
Capturing the prompt itself I suppose isn't much of a problem, but keeping it colored is. Hm.
Capturing the prompt itself I suppose isn't much of a problem, but keeping it colored is. Hm.
Re: showPrompt()
no problem: create a non-window buffer and copy + paste like usual (createBuffer() )