# HG changeset patch
# User Steve Losh
It has no other dependencies (aside from Lanterna itself, of course).
Add this to your project.clj
:
[clojure-lanterna "0.9.2"] +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 @@[clojure-lanterna "0.9.3"]
:unix
- Force a UNIX text-based console.:cygwin
- Force a Cygwin text-based console.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.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
.
The terminal layer is the lowest-level layer. Read the terminal documentation for an overview.
: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.
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.
(get-available-fonts) +
Return a set of strings of the names of available fonts on the current system.
The screen layer is an abstraction that provides buffering on top of the terminal layer. Read the screen documentation for an overview.