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.
Currently,
moaronly 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.