Start a new topic
Implemented

Coloring of syntax in SSH sessions

Dear,


it would be very helpfull if you could make it so that certain words in SSH session get a color.

It would also be nice if you could choose those words and colors freely or use a template such as 'Cisco network devices' or 'Linux distributions'.


Your competitors such as MobaXterm and Devolutions already have this possibility.


Thanks and keep up the good work!


4 people like this idea

Hi Adam,


you are right, this is only available for Rebex based connections. The reason we cannot support that for PuTTY based connection is simply because PuTTY does not support that feature. The way PuTTY is integrated is very simple and we actually just start PuTTY.exe. If PuTTY implements this feature and we can control is by writing the configuration to the registry as we do with all the other PuTTY settings, we can also enable this for PuTTY.


Switching your existing connections from PuTTY to Rebex in bulk is quite simple. Check out this short videos on how to use the dashboard and the bulk-edit feature:

https://www.royalapplications.com/go/kb-ts-win-folderdashboard
https://www.royalapplications.com/go/kb-ts-win-bulkedit


For new objects, use the Aplication -> Default Sertings folder to setup all the default values.

Let me know if this helps.


Regards,
Stefan


1 person likes this

Hi Adam,


you first need to go to the "Plugin" page in the properties and change the active plugin to "Rebex". After that you need to re-open the bulk-edit dialog. Let me know if this helps.


Regards,
Stefan


1 person likes this

To make it clear: it's the highlighting of keywords that I'm talking about.


1 person likes this

I'm sorry for the delay. We expect a first public beta within the next month or two. Stay tuned...



1 person likes this

I should clarify; when you pipe a word that's an or.


So strictly speaking in the last three I put up there the pattern before the pipe matches anything with starting with the word that has something else after it, and after the pipe it matches the word itself.


I'm sure there's a more elegant way to do it but I'm not an expert in regex...


1 person likes this

We have a rough prototype ready but it's not yet production quality. As mentioned above it will be part of the next major release but this will take a while. We will probably have a beta with the feature included in a couple of months...


I'm sorry I can't be more specific.


1 person likes this

I think you can take out all but the first (?i) if you use that as a single string.


Something like:


(?i)err(\w+)|err|disable(\w+)|disable|fail(\w+)|fail


Definitely not more elegant, but a bit shorter and should be functional? I would need to test it out.

Actually, I think this might be better:


(?i)disable(\w*)|fail(\w*)

This should cover all iterations with the words in them. I'm struggling with 'err' though.


(?im)^err(\w*)

This should cover everything that begins with "err" case insensitive. However, it isn't working in RTS for me.


You could use:

(?i)err(\w*)


or have a single line:

(?i)disable(\w*)|fail(\w*)|err(\w*)


But this will catch anything with err in the string.

It will catch "err", "error" but will also catch "overruns" because it has "err" in it. So it will catch anything with "err" anywhere in the word.


Not sure how Royal implemented regex, but I haven't been able to figure out how to do start string matches yet.


Alright, I got a new one...it's more complected but also includes more options.  I grabbed the major sytax from another vendor, but it seems to work with RTS:


(¨( *)?no | down |[^A-Za-z0-9](disabl(\w*)|fault|shutdown|disconnected|err(\w*)|ERR(\w*)|fail(\w*)|denied|not permitted|disallowed|not allowed|refused|problem|not permitted|notconnect)[^A-Za-z0-9])


You can take out or add anything between the first set of parentheses after the "[^A-Za-z0-9]".


The first "| down |" only matches the string "down" with a space before and after. You can exclude that entirely if you want.

that's great Adam!

Thank you very much, it's been a long time since I learned and used RegEx.

 

This isn't working in my RTS:

(¨( *)?no | down |[^A-Za-z0-9](disabl(\w*)|fault|shutdown|disconnected|err(\w*)|ERR(\w*)|fail(\w*)|denied|not permitted|disallowed|not allowed|refused|problem|not permitted|notconnect)[^A-Za-z0-9])

 I'm not using the latest version though, could that be an issue?

 I had the v5 beta for a time and didn't see any keyword highlighting available. Did it not make it into this beta?

Can I have an update on this, please?

I'm sorry for the confusion. The text highlighting configuration is in the current beta. Go to the Colors page and select the tab Text Highlighting.


Totally forgot, that I moved the configuration to the Colors page ;) Sorry about that...


Regards,
Stefan

It looks like these are only available for Rebex connections? Is there nothing for Putty based connections? We have well over 100 putty based connections, if Rebex is the only way, is there a way to bulk change our existing connections?

Login or Signup to post a comment