Register to post in forums, or Log in to your existing account
 

Play RetroMUD
Post new topic  Reply to topic     Home » Forums » CMUD General Discussion
Calico
Newbie


Joined: 09 Jan 2017
Posts: 5

PostPosted: Mon Jan 09, 2017 2:47 am   

Sticky prompt?
 
I've been getting enough triggers that my mud's prompt has been cluttering the screen and making it hard to see what's happening. I've done some aggressive googling and I've seen people talking about making a sticky prompt work in zmud, but it doesn't seem to work for me in cmud. Does anyone happen to know how I can get a sticky prompt to work in cmud?
Reply with quote
Vijilante
SubAdmin


Joined: 18 Nov 2001
Posts: 5182

PostPosted: Mon Jan 09, 2017 7:01 am   
 
The technique I used to employ is a little complicated. I used the VT102 scrolling region code. At the start of a session I would do #SAYP {%concat(%char(27),"[1;##r")} where ## is the one less than the bottom line of the screen. Then I would set up a trigger to match the prompt with the ANSI Trigger flag set and a full capture, you will generally need a regex for this. The code for that trigger is simple #SUB {%concat(%char(27),"7",%char(27),"[1;##H",%char(27),"[K",%1,%char(27),"8")} in this case the ## is the actual bottom line of the screen.

If you want to use a similar system you can a reference on the codes here.
_________________
The only good questions are the ones we have never answered before.
Search the Forums
Reply with quote
Display posts from previous:   
Post new topic   Reply to topic     Home » Forums » CMUD General Discussion All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum

© 2009 Zugg Software. Hosted by Wolfpaw.net