Using Xshell’s Highlight feature you can change the color or background color of text in the terminal output. This can be convenient to check for desired string outputs, monitoring error messages, etc. Desired highlights are organized within Highlight Sets.
If you have a large number of keywords to highlight within one session, it can consume a large portion of your system’s resources. This is especially true if the scrollback buffer is large. This is because the system needs to check whether or not keywords need to be highlighted every time you scroll.
Therefore, depending on how you set the option seen below, you may see some performance differences and will see changes on how highlight results are applied to your terminal. This option can be found by navigating to:
Tools -> Options -> Advanced: Disable on-the-fly highlght refreshing. By default, this option is unchecked meaning on-the-fly highlight refreshing is enabled.
If on-the-fly highlight refreshing is enabled (box is unchecked), the highlight keywords are checked against the terminal’s strings whenever there is a change in the terminal. Scrolling through the terminal output will continuously refresh the highlighting on the contents that are being displayed on the screen. Because of this continuous refreshing, performance may degrade.
If on-the-fly highlight refreshing is disabled (box is checked), the highlight keywords are checked against the terminal’s strings and then saved in the scroll buffer. Highlights that have already taken place will no longer change or be refreshed and will instead be stored in the scroll buffer in this state. Even if the highlight keywords are changed, already highlighted strings in the scroll buffer will remain highlighted.
Use the following table to determine which option is best for you:
Option | What Happens? | Pros | Cons |
---|---|---|---|
Checked |
|
|
|
Unchecked |
|
|
|