charmbracelet / glow

Render markdown on the CLI, with pizzazz! 💅🏻
MIT License
15.9k stars 344 forks source link

Poor scrolling performance #247

Open rumly111 opened 3 years ago

rumly111 commented 3 years ago

When I open a Markdown file with glow in "pager" mode (-p), the scrolling up/down is very sluggish. At first I thought my terminal is slow, but later I tested on a fast terminal emulator (xfce4-terminal), and it was still slow.

glow version 1.3.0 (0a83049)

meowgorithm commented 3 years ago

Unfortunately, this is likely because less (which I'm assuming you're using for your pager) is choking on the large amount of ANSI sequences glow is using to color markdown documents.

You may have better results with a terminal emulator that runs on the GPU like Kitty, Konsole or Alacritty, or potentially by changing pagers.