# HG changeset patch # User Steve Losh # Date 1341688978 14400 # Node ID 2907f02877602e17e81319602bb1df7078553ae6 # Parent 860b1e173ecb98003742aa93e9b7a65d3eb927de clojure-lanterna: Update site. diff -r 860b1e173ecb -r 2907f0287760 clojure-lanterna/index.html --- a/clojure-lanterna/index.html Sat Jul 07 12:49:56 2012 -0400 +++ b/clojure-lanterna/index.html Sat Jul 07 15:22:58 2012 -0400 @@ -14,6 +14,13 @@

clojure-lanterna is a thin wrapper around the Lanterna Java library to make it more Clojure-friendly.

+

It's still pre-1.0, so expect brokenness and backwards incompatibility. Once +it hits 1.0 you can be confident I'll stop breaking your shit all the time.

+

License: GNU Lesser GPL (yes, you can link with code under another license!)
+Documentation: http://sjl.bitbucket.org/clojure-lanterna/
+Issues: http://github.com/sjl/clojure-lanterna/issues/
+Git: http://github.com/sjl/clojure-lanterna/
+Mercurial: http://bitbucket.org/sjl/clojure-lanterna/

What is It?

Lanterna is a Java library for interacting with terminals. It's kind of like curses, except it's pure Java so it'll run anywhere. It lets you move the @@ -45,7 +52,25 @@

Have fun! Consult the Reference document if you need more detailed information about something. Most functions also have docstrings.

-

Table of Contents

  1. Installation
  2. Terminals
  3. Screens
  4. Reference
+ +

I Want a Hello, World!

+

Okay, fine:

+
(require '[lanterna.screen :as s])
+
+(def scr (s/get-screen))
+
+(s/stop screen)
+
+(s/put-string scr 10 10 "Hello, world!")
+(s/put-string scr 10 11 "Press any key to exit!")
+(get-key-blocking)
+
+(s/stop screen)
+
+ + +

But really, please read the docs if you actually want to use this. They're not +that long.

Table of Contents

  1. Installation
  2. Terminals
  3. Screens
  4. Reference