Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
ferdinandyb opened this issue Jan 16, 2025 · 0 comments
Open

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

ferdinandyb opened this issue Jan 16, 2025 · 0 comments

Comments

@ferdinandyb
Copy link

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.

watchexec/watchexec#901 (comment)

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
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant