diff --git a/src/main/java/com/github/jlangch/venice/impl/modules/Modules.java b/src/main/java/com/github/jlangch/venice/impl/modules/Modules.java index 9ea2ebcd2..0a24f1778 100644 --- a/src/main/java/com/github/jlangch/venice/impl/modules/Modules.java +++ b/src/main/java/com/github/jlangch/venice/impl/modules/Modules.java @@ -46,6 +46,7 @@ public static boolean isValidModule(final VncKeyword module) { Arrays.asList( "ansi", "app", + "ascii-table", "benchmark", "cargo", "cargo-arangodb", diff --git a/src/main/resources/com/github/jlangch/venice/ascii-table.venice b/src/main/resources/com/github/jlangch/venice/ascii-table.venice index 7b07083f4..c2b4a9b44 100644 --- a/src/main/resources/com/github/jlangch/venice/ascii-table.venice +++ b/src/main/resources/com/github/jlangch/venice/ascii-table.venice @@ -24,4 +24,37 @@ (ns ascii-table) +;; standard double bold alpha +;; +;; +---+---+---+ ╔═══╤═══╤═══╗ ┏━━━┯━━━┯━━━┓ ABBBCBBBCBBBD +;; head | | | | ║ │ │ ║ ┃ │ │ ┃ E M M E +;; +---+---+---+ ╠═══╪═══╪═══╣ ┣━━━┿━━━┿━━━┫ KGGGJGGGJGGGL +;; body | | | | ║ │ │ ║ ┃ │ │ ┃ E M M E +;; +---+---+---+ ╟───┼───┼───╢ ┠───┼───┼───┫ KGGGJGGGJGGGL +;; body | | | | ║ │ │ ║ ┃ │ │ ┃ E M M E +;; +---+---+---+ ╠═══╪═══╪═══╣ ┣━━━┿━━━┿━━━┫ KGGGJGGGJGGGL +;; foot | | | | ║ │ │ ║ ┃ │ │ ┃ E M M E +;; +---+---+---+ ╚═══╧═══╧═══╝ ┗━━━┷━━━┷━━━┛ NBBBOBBBOBBBP + +;; https://www.charset.org/utf-8/10 + + +(def border-chars { :standard "+-++|+-+++++|++++" + :double "╔═╤╗║╟─┬╢╪╠╣│╚╧╝┼" + :bold "┏━┯┓┃┠─┬┨┿┣┫│┗┷┛┼" + :alpha "ABCDEFGHIJKLMNOPQ" } ) + +(def alignments #{:left :center :right}) +(def overflow #{:newline :clip-left :clip-right :ellipsis-left :ellipsis-right}) +(def modes #{:standard :double :bold :alpha}) + +(def min-col-width 1) +(def min-col-width 80) + + + + +(defn render [cols header body & options] + (let [opts (apply hash-map options)] + ))