ASCII表
这是一个小图书馆,可使用ascii艺术效果绘制表格。 通过对前50行(可配置)进行采样以使表格适合所需的屏幕宽度,可以自动计算列宽。
多行模式
在多行模式下使用时,使用多行渲染超出列宽的单元格,例如:
AsciiTable ()
.width( 40 ) // screen width to fit table in
.multiline( true ) // render rows across multiple lines
.columnMinWidth( 7 ) // column width will be 7 characters or more
.rowMaxHeight( 3 ) // clip cells at 3 lines
.header( " N " , " column " , " column with long values