omit matched words from output line

Posted by Unia on Sat 21 Jun 2003 08:41 PM — 6 posts, 22,552 views.

#0
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.
Australia Forum Administrator #1
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.
Australia Forum Administrator #2
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.
#3
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.
Australia Forum Administrator #4
Configuration -> Input -> Commands -> "Keep Commands On Prompt Line".
Russia #5
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.