pod-babashka-lanterna
October 21, 2020 · View on GitHub
A pod exposing clojure-lanterna.
To build, see dev. Pre-compiled binaries are available in the CircleCI builds.
API
The following namespaces + vars are exposed:
pod.babashka.lanterna.terminal:get-terminalstartstopput-stringflushget-keyget-key-blockingget-size
pod.babashka.lanterna.screen:put-stringredrawget-keyget-key-blockingstartstopget-size
More can be added, PRs welcome.
Examples
-
Run
bb lanterna.cljcfor a simple demo. -
$ export BABASHKA_CLASSPATH=$(clojure -Spath -Sdeps '{:deps {borkdude/console-tetris {:git/url "https://github.com/borkdude/console-tetris" :deps/manifest :deps :sha "f2b8388b160b0326d72a7f18785687175910504f"}}}') $ bb -m tetris.coreNote: this will be considerably slower than the GraalVM tetris from the same repo.
Dev
Build
Set GRAALVM_HOME to your GraalVM 20.2.0-java11 directory.
Run script/compile
Test
Run bb lanterna.cljc.
License
Copyright © 2020 Michiel Borkent
Distributed under the EPL License. See LICENSE.
Clojure-lanterna and Lanterna are distributed under the GNU Lesser General Public License.