snakefoot / snaketail-net

Tail utility for monitoring text log files and Windows EventLog
http://snakenest.com/snaketail/
GNU General Public License v3.0
395 stars 79 forks source link

Console Virtual Terminal Sequences #147

Open spudwa opened 4 years ago

spudwa commented 4 years ago

I currently log to a terminal console and highlight/color text using the newly available VT sequences. Could snaketail support this?

https://docs.microsoft.com/en-us/windows/console/console-virtual-terminal-sequences

snakefoot commented 4 years ago

So you redirect the console output to a file, and when SnakeTail is used to view this file, then SnakeTail should automatically perform coloring based on the VT-instructions?

Right now SnakeTail doesn't recognize VT-sequences.

spudwa commented 4 years ago

Yes I would use the C freopen function to redirect all my printf's to a file which will be tailed by snaketail. These VT sequences are the new way of doing terminal stuff as they will work for Windows and Linux/Mac OSes. I've downloaded the snaketail source code so if you could point me to the approximate place I'll have a go myself