PrePAN

Sign in to PrePAN

App::ansicolumn ANSI sequence aware column command

Good

Synopsis

# SYNOPSYS

    ansicolumn [-tx] [-c columns] [-s sep] [file ...]

Description

I made this command to demonstrate Text::ANSI::Printf module, but it is getting to be more interesting tool.

EXAMPLE

column(1) compatible usage

$ ls -1 --color=always /usr/bin | ansicolumn

$ (printf "PERM LINKS OWNER GROUP SIZE MONTH DAY HH:MM/YEAR NAME\n" ; ls --color=always -l | sed 1d) | ansicolumn -t

Show DOCX document in 3up format

$ cpanm App::optex::textconv
$ optex -Mtextconv ansicolumn -DPC3 foo.docx | less

Show highlighted source code in 2up format

$ source-highlight -f esc -i lib/App/ansicolumn.pm | ansicolumn -PC2 | less

INSTALL

$ cpanm https://github.com/kaz-utashiro/App-ansicolumn.git

Comments

Please sign up to post a review.