Did you know ... | Search Documentation: |
Packs (add-ons) for SWI-Prolog |
Title: | Pretty unicode tables for the CLI with Prolog |
---|---|
Rating: | Not rated. Create the first rating! |
Latest version: | 1.0.8 |
SHA1 sum: | 622d1fcb230000b2922219ff0b5ada9aadb72082 |
Author: | Falco Nogatz <fnogatz@gmail.com> |
Maintainer: | Falco Nogatz <fnogatz@gmail.com> |
Packager: | Falco Nogatz <fnogatz@gmail.com> |
Home page: | https://github.com/fnogatz/clitable |
Download URL: | https://github.com/fnogatz/clitable/releases/*.zip |
No reviews. Create the first review!.
Version | SHA1 | #Downloads | URL |
---|---|---|---|
1.0.8 | 05b580eb794d5f91cd2a2ca2d5e1768520054613 | 14 | https://github.com/fnogatz/clitable/archive/v1.0.8.zip |
622d1fcb230000b2922219ff0b5ada9aadb72082 | 25 | https://github.com/fnogatz/clitable/archive/v1.0.8.zip | |
1.0.7 | bc39a30a7a0263b854b7f65c64a1b10aa7c6bc3d | 1 | https://github.com/fnogatz/clitable/archive/v1.0.7.zip |
1.0.6 | 7194fb1c5716d377a8a792b46e96f8b75dcdbe45 | 1 | https://github.com/fnogatz/clitable/archive/v1.0.6.zip |
1.0.3 | 49abb45c539857bc06067ab3262a087d2c20f050 | 10 | https://github.com/fnogatz/clitable/archive/v1.0.3.zip |
1.0.2 | cb5c098155bb2a0da16cc1286d3e077875ba4b19 | 1 | https://github.com/fnogatz/clitable/archive/v1.0.2.zip |
1.0.1 | 5726e43b42eaf7396121f53247486ae7e38e611b | 1 | https://github.com/fnogatz/clitable/archive/v1.0.1.zip |
1.0.0 | d86aefb08de1f3a58f426ccf6798550973c000f8 | 1 | https://github.com/fnogatz/clitable/archive/v1.0.0.zip |
Pretty unicode tables for the CLI with Prolog.
This pack is available from the add-on registry of SWI-Prolog.
It can be installed with pack_install/1:
?- pack_install(clitable).
This module exports the two predicates clitable(+Data)
and clitable(+Data,+Options)
.
:- use_module(library(clitable)). ?- Data = [[a,bb,ccc], [111,22,3]], clitable(Data). âââââââ¤âââââ¤ââââââ â a â bb â ccc â â 111 â 22 â 3 â âââââââ§âââââ§ââââââ ?- Data = [[a,bb,ccc], [111,22,3]], Head = ['First', 'Second', 'Third'], clitable(Data, [head(Head)]). âââââââââ¤âââââââââ¤ââââââââ â First â Second â Third â âââââââââ¼âââââââââ¼âââââââ⢠â a â bb â ccc â â 111 â 22 â 3 â âââââââââ§âââââââââ§ââââââââ
The style can be changed by setting the appropriate chars in the Options list. The following defaults can be overridden by specifying the corresponding options:
top('â'), top_left('â'), top_mid('â¤'), top_right('â'), bottom('â'), bottom_left('â'), bottom_mid('â§'), bottom_right('â'), space(' '), left('â'), mid('â'), right('â'), mid_space('â'), mid_left('â'), mid_mid('â¼'), mid_right('â¢')
Pack contains 9 files holding a total of 8.7K bytes.