Create terminal user interfaces in jank.
Add the following dependency to your Leiningen project file:
[io.github.kylc/minitui "0.1.0"]
See the examples.
(ns tiny
(:require [minitui.dom :as d]
[minitui.screen :as s]))
(let [screen (s/create (s/fixed 50) (s/fixed 5))]
(->>
(d/center
(d/border
(d/vbox (d/text "Hello world!")
(d/text (clojure-version)))))
(s/render screen))
(s/print screen))
Can you improve this documentation?Edit on GitHub
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 |