Skip to content

Possible Improvement: Support compressed streams from stdin #261

@jody-frankowski

Description

@jody-frankowski

Currently, moar only supports reading compressed files based on their extension.
In line with what other pager support, adding support for reading compressed streams from stdin would be nice.
It would enable scenarios such as ssh server 'cat log.zst' | moar.

Other pagers use magic bytes to detect the compression and its type. Here is zstd's implementation as a reference.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions