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 stdin.
Reads a single line from stdin.
(read-lines)Reads lines from stdin until EOF.
Reads lines from stdin 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 builds & hosts documentation for Clojure/Script libraries
| Ctrl+k | Jump to recent docs |
| ← | Move to previous article |
| → | Move to next article |
| Ctrl+/ | Jump to the search field |