glow icon indicating copy to clipboard operation
glow copied to clipboard

Glow does not work properly when run in a group or session

Open ferdinandyb opened this issue 10 months ago • 0 comments

Describe the bug I wanted to run glow with watchexec that re-runs programs on file changes for a live markdown preview. It did not work at all (no visible output). I took this up with watchexec, but they gave me this information:

That is, this is a glow problem in that it doesn't handle being run in a group or session.

Using the --wrap-process modes:

  • group (default): pager output doesn't show, glow no longer responds to SIGTERM (as sent by watchexec on Ctrl-C).
  • session mode: glow outright crashes.
  • none: it works.

My addition to the last: it works but actually you need to kill glow manually, so it's no upgrade on pressing r in glow itself.

https://github.com/watchexec/watchexec/issues/901#issuecomment-2596903913

Setup I'm running CachyOS and a very recent Contour Terminal.

❯ glow --version
glow version 2.0.0

To Reproduce

Do something like:

watchexec -w README.md  -- glow README.md

ferdinandyb avatar Jan 16 '25 22:01 ferdinandyb