P5-text-ansitable

Jul 20, 2023

Create nice formatted tables using extended ASCII and ANSI colors

TextANSITable is yet another text table formatter module like TextASCIITable or TextSimpleTable, with the following differences

  • Colors and color themes ANSI color codes will be used by default even 256 and 24bit colors, but will degrade to lower color depth and black/white according to terminal support.
  • Box-drawing characters Box-drawing characters will be used by default, but will degrade to using normal ASCII characters if terminal does not support them.
  • Unicode and wide character support Border styles using Unicode characters double lines, bold/heavy lines, brick style, etc. Columns containing wide characters stay aligned. Note support for wide characters requires TextANSIWideUtil which is currently set as an optional prereq, so you’ll need to install it explicitly or set your CPAN client to install ‘recommends’ prereq.

Compared to TextASCIITable, it uses lower_case method/attr names instead of CamelCase, and it uses arrayref for columns and add_row. When specifying border styles, the order of characters are slightly different. More fine-grained options to customize appearance.



Checkout these related ports:
  • Zxing-cpp - ZXing C++ Library for QR code recognition
  • Zu-hunspell - Zulu hunspell dictionaries
  • Zu-aspell - Aspell Zulu dictionary
  • Zq - Easier and faster alternative to jq
  • Zorba - General purpose C++ XQuery processor
  • Zenxml - Simple C++ XML Processing
  • Zed - Command-line tool to manage and query Zed data lakes
  • Yq - Command-line YAML and XML processor, jq wrapper for YAML/XML documents
  • Yould - Pronounceable word generator
  • Yodl - Easy to use but powerful document formatting/preparation language
  • Yi-hunspell - Yiddish hunspell dictionaries
  • Yi-aspell - Aspell Yiddish dictionary
  • Yelp-xsl - DocBook XSLT stylesheets for yelp
  • Yelp-tools - Utilities to help manage documentation for Yelp and the web
  • Ydiff - Diff readability enhancer for color terminals