You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Is your feature request related to a problem? Please describe.
Following #1219, I'm trying to use GNU Source-highlight. But I have discovered that lnav seems to be stripping out all the ANSI color codes. Can this be disabled?
lnav converts many escape sequences, but doesn't handle this one at the moment. For example, this will work:
:sh echo -e "\e[32mHello world\e[0m"
Internally, lnav uses ncurses to handle the display and ncurses doesn't not directly accept ANSI escape sequences. So, the conversion needs to be done manually. I'll look into adding support for this sequence.
Oh indeed. Looks like escape sequence I posted and the one that software uses are 256 colors, which is something lnav doesn't support. But it does support traditional 16 colors!
ostrolucky
changed the title
Option to disable stripping of ANSI escape sequences
Add support for 256 color ANSI escape sequences
Jan 4, 2024
Is your feature request related to a problem? Please describe.
Following #1219, I'm trying to use GNU Source-highlight. But I have discovered that lnav seems to be stripping out all the ANSI color codes. Can this be disabled?
Reproducer:
:sh echo -e "\e[38;2;255;0;0mHello world\e[0m"
The text was updated successfully, but these errors were encountered: