Can UE display ansi colored logs?

Can UE display ansi colored logs?

2
NewbieNewbie
2

    17:48 - 2 days ago#1

    Hi,

    I use a lot of log files that have embedded ANSI escape codes for colors:

    Code: Select all

    # Color codes
    REDBOLDBLINK="\e[1;31;5m"
    ORANGE="\e[0;33m"
    PURPLE="\e[0;35m"
    REVERSE_CYAN="\e[0;36;7m"
    REVERSE_RED="\e[0;31;7m"
    ColorOFF="\e[0m"

    On Windows 11 I can `type` the log file and see the colored text but there does not seem to be an obvious way to view it in a colored format in UE. Is this possible?


    Thanks.
    UltraEdit ANSI color log file example.jpg (106.5KiB)

    6,682583
    Grand MasterGrand Master
    6,682583

      17:46 - 1 day ago#2

      I think, this is not possible as far as I know. UltraEdit is a text editor and not a terminal program. It does not interpret bytes in a text file like a terminal program on output of the text to a console window.

      It would be possible using an UltraEdit macro/script to convert a log file with virtual terminal sequences into a format which can be syntax highlighted using a custom syntax highlighting or into an HTML file with appropriate CSS attributes which can be viewed either inside UltraEdit or outside with a web browser. But a conversion to an HTML file is only useful if the log files are usually small. Converting a log file with hundreds of MB to an HTML file is possible with UltraEdit, but I doubt that any web browser would display it in a manner being useful for the reader.
      Best regards from an UC/UE/UES for Windows user from Austria

      2
      NewbieNewbie
      2

        16:27 - 1 day ago#3

        Ok, I guess that was just wishful thinking...

        Thank you.