Register forum user name Search FAQ

Gammon Forum

Notice: Any messages purporting to come from this site telling you that your password has expired, or that you need to verify your details, confirm your email, resolve issues, making threats, or asking for money, are spam. We do not email users with any such messages. If you have lost your password you can obtain a new one by using the password reset link.

Due to spam on this forum, all posts now need moderator approval.

 Entire forum ➜ MUSHclient ➜ Suggestions ➜ omit matched words from output line

omit matched words from output line

It is now over 60 days since the last post. This thread is closed.     Refresh page


Posted by Unia   (10 posts)  Bio
Date Sat 21 Jun 2003 08:41 PM (UTC)
Message
How can I omit only matched words from output lines?
like this:
mud says: I love this game.
but I want it to be:
mud says: I love game.
in fact, I only want to omit the prompt symbol ">" at the start of lines.
Top

Posted by Nick Gammon   Australia  (23,165 posts)  Bio   Forum Administrator
Date Reply #1 on Sat 21 Jun 2003 09:37 PM (UTC)
Message
At present MUSHclient triggers only allow text to be coloured, or whole lines omitted. You cannot change the line (by adding or removing things).

However you *could* omit the entire line, and then re-display it with things omitted, however the side-effect would be to throw away the colours it already has.

In your case a simple solution might be to make a trigger that matches on the first > in a line, and then colours it in a way it becomes invisible (eg. black on black).

The trigger might be:

^>

Make it a regular expression. This means a ">" as the very first character. Then set the colour to a colour which hides it. Of course, the lines will be indented by a single character but this might not be too bad.

- Nick Gammon

www.gammon.com.au, www.mushclient.com
Top

Posted by Nick Gammon   Australia  (23,165 posts)  Bio   Forum Administrator
Date Reply #2 on Sat 21 Jun 2003 09:39 PM (UTC)
Message
Another approach is that some MUDs let you customise the prompt, you might be able to customise it out of existence.

Alternatively, if you can customise it to be a whole line, then you can make a trigger to omit that whole line.

MUSHclient has an option to keep prompts on the same line (as what you type). If you turn that off, it might do that anyway, and then the prompt line can be omitted.

- Nick Gammon

www.gammon.com.au, www.mushclient.com
Top

Posted by Unia   (10 posts)  Bio
Date Reply #3 on Sun 22 Jun 2003 05:32 PM (UTC)
Message
Hi, Nick, you said "MUSHclient has an option to keep prompts on the same line (as what you type). If you turn that off, it might do that anyway..." would you please tell me where is it? I could not find this option.Thanks.
Top

Posted by Nick Gammon   Australia  (23,165 posts)  Bio   Forum Administrator
Date Reply #4 on Sun 22 Jun 2003 09:10 PM (UTC)
Message
Configuration -> Input -> Commands -> "Keep Commands On Prompt Line".

- Nick Gammon

www.gammon.com.au, www.mushclient.com
Top

Posted by finnish   Russia  (18 posts)  Bio
Date Reply #5 on Mon 23 Jun 2003 10:14 PM (UTC)
Message
hello.

ok, you've dealt with > prompt.

but, believe, mushclient does really need substitution or replacement ability in triggers. what do you think about it?

thanks for attention.

she never loved me why should anyone
Top

The dates and times for posts above are shown in Universal Co-ordinated Time (UTC).

To show them in your local time you can join the forum, and then set the 'time correction' field in your profile to the number of hours difference between your location and UTC time.


20,287 views.

It is now over 60 days since the last post. This thread is closed.     Refresh page

Go to topic:           Search the forum


[Go to top] top

Information and images on this site are licensed under the Creative Commons Attribution 3.0 Australia License unless stated otherwise.