Repository navigation
ansi2pdf 0.1.2
First public release of ansi2pdf, which renders terminal output with ANSI sequences to PDF.
- Colors, bold, faint, italic, underlines of every style and color, reverse video, strikethrough and overline are kept. Box drawing characters and block elements are drawn as lines and rectangles, so that tables and borders are connected on paper.
- The input is interpreted by xterm.js, so cursor movement, background fill, wide characters and line wrapping come out as on a terminal.
- Logical pages are arranged on a sheet with
-C C[,R]. The lines (-l), the columns (-w) and the font size (-s) follow each other to fill the page. --geometrytells the size of a page to a program that formats text for it;nup --pdfof App-nup 1.11 uses it.
Install:
npm install -g github:tecolicom/App-ansi2pdf
# or
brew install tecolicom/tap/app-ansi2pdfThe version is before 1.0, and incompatible changes may be made.