Perl-Sensitive Sunglasses | |
PerlMonks |
[OT] Filtering / Highlighting serial port input / PuTTY outputby afoken (Chancellor) |
on Aug 13, 2020 at 15:24 UTC ( [id://11120683]=perlquestion: print w/replies, xml ) | Need Help?? |
afoken has asked for the wisdom of the Perl Monks concerning the following question: Hi! I'm working with two systems, both without real(TM) operating systems. One is a microcontroller, running our software on bare metal, the other is my PC running Windows 7. The microcontroller writes debug output to one of its serial ports, which is connected to the PC. On the PC, putty simply displays whatever text is written to the debug port. A common setup at work, but I'm drowning in debug output. All of it is kind-of relevant, but usually only a little bit of the debug output is relevant for the current problem. (And no, I can't disable the irrelevant debug output on the microcontroller in reasonable time.) On a real operating system, I would run something like this:
But I'm stuck on Windows. I need some way to print input from a serial port to a fully resizeable window, optionally with a filter that either omits or highlights incoming lines. PuTTY does all I need, except for filtering. Trying to run anything perl in a command window already fails, because the console window has a maximum width of 80 characters, which is little more than a third of the screen width. And I don't have the time to hack a special version of PuTTY or a large perl application. A Google search for "putty filter" and similar combinations results in lots of ugly teapots, anti-glare filters, and some other wierd stuff, but nothing even close to filtering output from PuTTY. Any hints? E.g. how to get that !%&%$*! standard console window to allow free resizing? Or a tool that can do what I want? Alexander
-- Today I will gladly share my knowledge and experience, for there are no sweeter words than "I told you so". ;-)
Back to
Seekers of Perl Wisdom
|
|