glow
glow copied to clipboard
Glow does not work properly when run in a group or session
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-processmodes:
- 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