Serial Terminal with custom colors

1

1

Looked around but I can't seem to find a serial terminal program that has ability to custom color lines according to certain symbols found in received lines. For example I would like to see 'ERROR: explanation' highlighted in red until the next line break is received. Has anyone came by across something like it?

Edit: Machines that are connected to serial interface run Windows and running a VM on them is not an options.

Nickolay Kondratyev

Posted 2013-12-14T00:03:09.850

Reputation: 143

Answers

0

Termite (https://www.compuphase.com/software_termite.htm) has a "Highlight" plug in that you can set to highlight specific text, case sensitive or not. The source code for it is posted so you can improve it at will. https://www.compuphase.com/software/termite_filter_highlight.zip v/r, Rob (no relation or connection to Termite other than a user)

Rob

Posted 2013-12-14T00:03:09.850

Reputation: 1

0

If your terminal emulator supports ANSI, it supports colors:

While those are linux examples, they are applicable to any ANSI terminal emulator. ANSI escape sequences are interpreted by the emulator, and the display is written accordingly.

Kris Bahnsen

Posted 2013-12-14T00:03:09.850

Reputation: 149

Problem is, the host system has to add those to its output. I suspect Nickolay may be looking for something that performs lexical coloring based on scanning the received data. – Kaz – 2013-12-14T02:03:09.087

Ohhh, I did not consider that. If that is so, it might be possible to create a little device in the middle to automatically handle that. But otherwise, I think a custom terminal emulator may be required in order to make that happen. – Kris Bahnsen – 2013-12-14T03:05:58.510

Or any of the open source terminal emulators available could be extended with the translation functionality as the OP wishes. That's one of the many positive aspects of open-source software. – Laszlo Valko – 2013-12-14T04:53:03.647

Yea I was planning on extending an open source project if there wasn't an out of box answer just didn't want to re-invent the wheel if some project already has that functionality – Nickolay Kondratyev – 2013-12-14T05:07:38.520

0

I don't know of a terminal emulator that can do this, but, oddly enough, Zsh is configurable enough to do it. Check out this blog post about adding syntax highlighting to Zsh. You might be able to implement what you want from that.

hololeap

Posted 2013-12-14T00:03:09.850

Reputation: 951

0

Recent versions of PuTTY support serial interfaces and it supports standard VT-style escape sequences for setting color/bold/flashing. PuTTY is pretty much defacto standard in UNIX/Linux industry.

jippie

Posted 2013-12-14T00:03:09.850

Reputation: 176