9c983cbfec17

clojure-lanterna: Update site.
[view raw] [browse files]
author Steve Losh <steve@stevelosh.com>
date Fri, 07 Sep 2012 14:05:59 -0400
parents 2c7fbfbe71c5
children 531f67eec776
branches/tags (none)
files clojure-lanterna/index.html clojure-lanterna/installation/index.html clojure-lanterna/reference/index.html

Changes

--- 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 @@
 
 <span class="p">(</span><span class="k">def </span><span class="nv">scr</span> <span class="p">(</span><span class="nf">s/get-screen</span><span class="p">))</span>
 
-<span class="p">(</span><span class="nf">s/stop</span> <span class="nv">screen</span><span class="p">)</span>
+<span class="p">(</span><span class="nf">s/stop</span> <span class="nv">scr</span><span class="p">)</span>
 
 <span class="p">(</span><span class="nf">s/put-string</span> <span class="nv">scr</span> <span class="mi">10</span> <span class="mi">10</span> <span class="s">&quot;Hello, world!&quot;</span><span class="p">)</span>
 <span class="p">(</span><span class="nf">s/put-string</span> <span class="nv">scr</span> <span class="mi">10</span> <span class="mi">11</span> <span class="s">&quot;Press any key to exit!&quot;</span><span class="p">)</span>
-<span class="p">(</span><span class="nf">s/get-key-blocking</span><span class="p">)</span>
+<span class="p">(</span><span class="nf">s/get-key-blocking</span> <span class="nv">scr</span><span class="p">)</span>
 
-<span class="p">(</span><span class="nf">s/stop</span> <span class="nv">screen</span><span class="p">)</span>
+<span class="p">(</span><span class="nf">s/stop</span> <span class="nv">scr</span><span class="p">)</span>
 </pre></div>
 
 
--- 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.</p>
 <p>It has no other dependencies (aside from Lanterna itself, of course).</p>
 <p>Add this to your <code>project.clj</code>:</p>
-<div class="codehilite"><pre><span class="p">[</span><span class="n">clojure</span><span class="o">-</span><span class="n">lanterna</span> "0<span class="p">.</span>9<span class="p">.</span>2"<span class="p">]</span>
+<div class="codehilite"><pre><span class="p">[</span><span class="n">clojure</span><span class="o">-</span><span class="n">lanterna</span> "0<span class="p">.</span>9<span class="p">.</span>3"<span class="p">]</span>
 </pre></div>
 
 
--- 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 @@
 <li><a href="#key-codes">Key Codes</a></li>
 <li><a href="#charsets">Charsets</a></li>
 <li><a href="#consoles">Consoles</a></li>
+<li><a href="#palettes">Palettes</a></li>
+<li><a href="#font-names">Font Names</a></li>
 </ul></li>
 <li><a href="#terminals">Terminals</a><ul><li><a href="#lanternaterminalget-terminal">lanterna.terminal/get-terminal</a></li>
 <li><a href="#lanternaterminalstart">lanterna.terminal/start</a></li>
@@ -30,6 +32,7 @@
 <li><a href="#lanternaterminalget-key">lanterna.terminal/get-key</a></li>
 <li><a href="#lanternaterminalget-key-blocking">lanterna.terminal/get-key-blocking</a></li>
 <li><a href="#lanternaterminaladd-resize-listener">lanterna.terminal/add-resize-listener</a></li>
+<li><a href="#lanternaterminalget-available-fonts">lanterna.terminal/get-available-fonts</a></li>
 </ul></li>
 <li><a href="#screens">Screens</a><ul><li><a href="#lanternascreenget-screen">lanterna.screen/get-screen</a></li>
 <li><a href="#lanternascreenstart">lanterna.screen/start</a></li>
@@ -111,7 +114,22 @@
   appropriate kind of console (UNIX or Cygwin) by the OS.</li>
 <li><code>:unix</code> - Force a UNIX text-based console.</li>
 <li><code>:cygwin</code> - Force a Cygwin text-based console.</li>
-</ul><h2 id="terminals">Terminals</h2>
+</ul><h3 id="palettes">Palettes</h3>
+<p>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.</p>
+<p>The following palettes are supported:</p>
+<ul><li><code>:gnome</code> - Gnome Terminal's colors.</li>
+<li><code>:windows-xp</code> - The colors of the Windows XP command prompt.</li>
+<li><code>:xterm</code> - Xterm's colors.</li>
+<li><code>:putty</code> - Putty's colors.</li>
+<li><code>:mac-os-x</code> - The colors of Mac OS X's Terminal.app.</li>
+</ul><h3 id="font-names">Font Names</h3>
+<p>When giving a font name, it should be a string naming a font family on your
+system.  For example: <code>"Consolas"</code>, <code>"Courier New"</code>, or <code>"Monaco"</code>.</p>
+<p>To see a the fonts available on your system you can call
+<a href="#lanternaterminalget-available-fonts"><code>get-available-fonts</code></a>.</p>
+<h2 id="terminals">Terminals</h2>
 <p>The terminal layer is the lowest-level layer.  Read the <a href="../terminals/">terminal
 documentation</a> for an overview.</p>
 <h3 id="lanternaterminalget-terminal">lanterna.terminal/get-terminal</h3>
@@ -131,12 +149,14 @@
   constant</a> (default <code>:utf-8</code>).</li>
 <li><code>:resize-listener</code> - 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.</li>
-</ul><p>The <code>:rows</code>, <code>:cols</code>, and <code>:charset</code> options are really just a suggestion!</p>
-<p>The text-based terminals will ignore rows and columns and will be the size of
-the user's window.</p>
-<p>The Swing terminal will start out at this size but can be resized later by the
-user, and will ignore the charset entirely.</p>
+  number of rows.
+*</li>
+</ul><p>The <code>:rows</code>, <code>:cols</code>, <code>:font</code>, <code>:font-size</code>, <code>:palette</code> and <code>:charset</code> options
+are really just a suggestion!</p>
+<p>The text-based terminals will ignore rows, columns, fonts and palettes.  They
+will be determined by the user's terminal window.</p>
+<p>The Swing terminal will start out at the given size but can be resized later by
+the user, and will ignore the charset entirely.</p>
 <p>God only know what Cygwin will do.</p>
 <p>Your application needs to be flexible and handle sizes on the fly.</p>
 <h3 id="lanternaterminalstart">lanterna.terminal/start</h3>
@@ -279,6 +299,12 @@
 <p>You probably don't need this because you can specify a resize listener function
 when you call <a href="#lanternaterminalget-terminal"><code>get-terminal</code></a>.  It's here if you
 <em>do</em> need it though.</p>
+<h3 id="lanternaterminalget-available-fonts">lanterna.terminal/get-available-fonts</h3>
+<div class="codehilite"><pre><span class="p">(</span><span class="nf">get-available-fonts</span><span class="p">)</span>
+</pre></div>
+
+
+<p>Return a set of strings of the names of available fonts on the current system.</p>
 <h2 id="screens">Screens</h2>
 <p>The screen layer is an abstraction that provides buffering on top of the
 terminal layer.  Read the <a href="../screens/">screen documentation</a> for an overview.</p>