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
glow -p displays formatted Markdown with colors in my pager (less)
Actual behavior
It shows a lot of color codes without interpreting them: ESC[38;5;228;48;5;63;1mESC[0mESC[38;5;228;48;5;63;1mESC[0m ESC[38;5;228;48;5;63;1m ESC[0mESC[38;5;228;48;5;63;1mHelloESC[0mESC[38;5;228;48;5;63;1m ESC[0mESC[38;5;252mESC[38;5;252m
Steps to reproduce the behavior
Create a simple Markdown file: echo "# Hello" > hello.md
Display it with glow with a pager: glow -p hello.md
I'm not completely sure if this is a glow bug since I've tried a bunch of different things:
The previous version of glow
Older versions of less (my favourite pager)
I can confirm the same happens with most my second favourite pager
I've tried to use a different terminal (xterm instead of xst)
I tested using a different TERM environment variable just in case
Anything else I could try?
The text was updated successfully, but these errors were encountered:
less by default does not interpret escape sequences. Try setting the LESS='-R' environment variable: LESS='-R' glow -p index.md
It works fine too if you don't pass -p.
System
Void 5.15.9_1 x86_64 GenuineIntel uptodate rFFFFF
glow-1.4.1_1
Expected behavior
glow -p
displays formatted Markdown with colors in my pager (less)Actual behavior
It shows a lot of color codes without interpreting them:
ESC[38;5;228;48;5;63;1mESC[0mESC[38;5;228;48;5;63;1mESC[0m ESC[38;5;228;48;5;63;1m ESC[0mESC[38;5;228;48;5;63;1mHelloESC[0mESC[38;5;228;48;5;63;1m ESC[0mESC[38;5;252mESC[38;5;252m
Steps to reproduce the behavior
echo "# Hello" > hello.md
glow -p hello.md
I'm not completely sure if this is a glow bug since I've tried a bunch of different things:
TERM
environment variable just in caseAnything else I could try?
The text was updated successfully, but these errors were encountered: