snaketail-net icon indicating copy to clipboard operation
snaketail-net copied to clipboard

Console Virtual Terminal Sequences

Open spudwa opened this issue 4 years ago • 2 comments

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

spudwa avatar Jun 20 '20 08:06 spudwa

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.

snakefoot avatar Jun 20 '20 08:06 snakefoot

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

spudwa avatar Jun 20 '20 09:06 spudwa