Functions for terminal user interfaces.
Functions for terminal user interfaces.
(print & page)
Prints a page to stdout.
Arguments:
Examples:
Prints a page to stdout. Arguments: - page [me.pmatiello.tui.internal.specs/page, variadic] Examples: - (print "plain text") - (print "plain" "text") - (print {:style [:bold :fg-blue] :body "!styled!"} "text")
(println & page)
Prints a page to stdout. Add a new line at the end.
Arguments:
Examples:
Prints a page to stdout. Add a new line at the end. Arguments: - page [me.pmatiello.tui.internal.specs/page, variadic] Examples: - (println "plain text") - (println "plain" "text") - (println {:style [:bold :fg-blue] :body "!styled!"} "text")
(read-line)
Reads a single line from in.
Reads a single line from *in*.
(read-lines)
Reads lines from in until EOF.
Reads lines from *in* until EOF.
(render page)
(render page {:keys [separator]})
Renders a page (as a string).
Arguments:
Examples:
Renders a page (as a string). Arguments: - page [me.pmatiello.tui.internal.specs/page] - opts [:me.pmatiello.tui.internal.specs/render-opts, optional] Examples: - (render ["plain text"]) - (render ["plain", " ", "text"]) - (render [{:style [:bold :fg-blue] :body "!styled!"} "text"]) - (render ["plain", "text"] {:separator " "}) - (render ["plain", "text"] {:separator {:style [:bold] :body "-"}})
cljdoc is a website building & hosting documentation for Clojure/Script libraries
× close