Skip to content

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

Open
@ferdinandyb

Description

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

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions