stripping out the prompt
Posted: Sun Apr 26, 2009 1:43 am
I'd really like to strip out my prompt and display it at the bottom, perhaps in a larger font than usual.
Zugg is apparently working on adding that as a feature to CMUD (which got me to thinking about it as a possibility), but I remember the early screenshots of Mudlet. That is probably already possible, right?
Lets say this is my prompt trig (in actuality, to capture the whole thing is going to take more effort, but I can work that out later.
^H:(\d+)\|(\d+) (\d+) \d+% Exp:\d+ <(\w+) ([eb-]{2})> \d+\|\d+
selectString( matches[1], 1 )
replace( "" )
^ That leaves a blank line behind, which I also want to remove. I also do not know how to display the prompt in a permanent location at the bottom of the main window.
Edit: I just discovered deleteline(), which might solve that part of the problem.
I'm not asking for someone to do the script for me, I mostly just want to know: is it possible? It will be a while before I'm ready to work on this script as I have a lot more crucial scripting to do, this is just a luxury. By the time I am ready, I'll hopefully be competent enough at Lua to tackle the more complex things liken this.
Zugg is apparently working on adding that as a feature to CMUD (which got me to thinking about it as a possibility), but I remember the early screenshots of Mudlet. That is probably already possible, right?
Lets say this is my prompt trig (in actuality, to capture the whole thing is going to take more effort, but I can work that out later.
^H:(\d+)\|(\d+) (\d+) \d+% Exp:\d+ <(\w+) ([eb-]{2})> \d+\|\d+
selectString( matches[1], 1 )
replace( "" )
^ That leaves a blank line behind, which I also want to remove. I also do not know how to display the prompt in a permanent location at the bottom of the main window.
Edit: I just discovered deleteline(), which might solve that part of the problem.
I'm not asking for someone to do the script for me, I mostly just want to know: is it possible? It will be a while before I'm ready to work on this script as I have a lot more crucial scripting to do, this is just a luxury. By the time I am ready, I'll hopefully be competent enough at Lua to tackle the more complex things liken this.