Actions Status MetaCPAN Release

NAME

ansiexpand, ansiunexpand - ANSI sequences aware tab expand/unexpand command

SYNOPSIS

ansiexpand [ option ] file ...

ansiunexpand [ option ] file ...

-u --unexpand               convert spaces to tabs
-x --minimum=[#]            minimum space count to be converted
-t --tabstop=#              tab stop width
   --tabhead=char           tab head character
   --tabspace=char          tab space character
   --tabstyle=style         tab style
   --ambiguous=wide|narrow  width of Unicode ambiguous character
-z --zap                    read whole contents at once

VERSION

Version 1.06

DESCRIPTION

ansiexpand is an expand(1) compatible command utilizing Text::ANSI::Tabs module, which enables to handle ANSI terminal sequences and Unicode wide characters. Not only expanding tabs to spaces, it can visualize them in various styles.

This is a command line interface for Text::ANSI::Tabs module, which uses Text::ANSI::Fold module as a backend. Consult them for implementation detail.

OPTIONS

INCOMPATIBILITY

ansiunexpand, with or without the -a option, always converts all possible spaces, not just leading ones. Because there is no point in using the ansiunexpand command to convert only leading spaces, so please use the normal unexpand(1) in that case.

FILES

INSTALL

CPANMINUS

$ cpanm App::ansiexpand

SEE ALSO

App::ansiexpand, https://github.com/tecolicom/App-ansiexpand

Text::ANSI::Tabs

Text::ANSI::Fold

AUTHOR

Kazumasa Utashiro

LICENSE

Copyright ©︎ 2021-2024 Kazumasa Utashiro

This library is free software; you can redistribute it and/or modify it under the same terms as Perl itself.