# HG changeset patch # User Steve Losh # Date 1347041159 14400 # Node ID 9c983cbfec17e7387b287ea6d3b4fbe2226f9af4 # Parent 2c7fbfbe71c53c86aad52a13d48bd1de9d78a23e clojure-lanterna: Update site. diff -r 2c7fbfbe71c5 -r 9c983cbfec17 clojure-lanterna/index.html --- a/clojure-lanterna/index.html Sun Jul 15 00:49:18 2012 -0400 +++ b/clojure-lanterna/index.html Fri Sep 07 14:05:59 2012 -0400 @@ -59,13 +59,13 @@ (def scr (s/get-screen)) -(s/stop screen) +(s/stop scr) (s/put-string scr 10 10 "Hello, world!") (s/put-string scr 10 11 "Press any key to exit!") -(s/get-key-blocking) +(s/get-key-blocking scr) -(s/stop screen) +(s/stop scr) diff -r 2c7fbfbe71c5 -r 9c983cbfec17 clojure-lanterna/installation/index.html --- a/clojure-lanterna/installation/index.html Sun Jul 15 00:49:18 2012 -0400 +++ b/clojure-lanterna/installation/index.html Fri Sep 07 14:05:59 2012 -0400 @@ -6,7 +6,7 @@ versions, but I make no guarantees.

It has no other dependencies (aside from Lanterna itself, of course).

Add this to your project.clj:

-
[clojure-lanterna "0.9.2"]
+
[clojure-lanterna "0.9.3"]
 
diff -r 2c7fbfbe71c5 -r 9c983cbfec17 clojure-lanterna/reference/index.html --- a/clojure-lanterna/reference/index.html Sun Jul 15 00:49:18 2012 -0400 +++ b/clojure-lanterna/reference/index.html Fri Sep 07 14:05:59 2012 -0400 @@ -12,6 +12,8 @@
  • Key Codes
  • Charsets
  • Consoles
  • +
  • Palettes
  • +
  • Font Names
  • Terminals
  • Screens

    Terminals

    +

    Palettes

    +

    When creating a Swing Terminal or Screen, you can choose the color palette to +use. Text-based Terminals and Screens will use the user's color scheme, of +course.

    +

    The following palettes are supported:

    +
    • :gnome - Gnome Terminal's colors.
    • +
    • :windows-xp - The colors of the Windows XP command prompt.
    • +
    • :xterm - Xterm's colors.
    • +
    • :putty - Putty's colors.
    • +
    • :mac-os-x - The colors of Mac OS X's Terminal.app.
    • +

    Font Names

    +

    When giving a font name, it should be a string naming a font family on your +system. For example: "Consolas", "Courier New", or "Monaco".

    +

    To see a the fonts available on your system you can call +get-available-fonts.

    +

    Terminals

    The terminal layer is the lowest-level layer. Read the terminal documentation for an overview.

    lanterna.terminal/get-terminal

    @@ -131,12 +149,14 @@ constant (default :utf-8).
  • :resize-listener - A function to call when the terminal is resized. This function should take two parameters: the new number of columns, and the new - number of rows.
  • -

    The :rows, :cols, and :charset options are really just a suggestion!

    -

    The text-based terminals will ignore rows and columns and will be the size of -the user's window.

    -

    The Swing terminal will start out at this size but can be resized later by the -user, and will ignore the charset entirely.

    + number of rows. +* +

    The :rows, :cols, :font, :font-size, :palette and :charset options +are really just a suggestion!

    +

    The text-based terminals will ignore rows, columns, fonts and palettes. They +will be determined by the user's terminal window.

    +

    The Swing terminal will start out at the given size but can be resized later by +the user, and will ignore the charset entirely.

    God only know what Cygwin will do.

    Your application needs to be flexible and handle sizes on the fly.

    lanterna.terminal/start

    @@ -279,6 +299,12 @@

    You probably don't need this because you can specify a resize listener function when you call get-terminal. It's here if you do need it though.

    +

    lanterna.terminal/get-available-fonts

    +
    (get-available-fonts)
    +
    + + +

    Return a set of strings of the names of available fonts on the current system.

    Screens

    The screen layer is an abstraction that provides buffering on top of the terminal layer. Read the screen documentation for an overview.