Created
August 4, 2012 19:12
-
-
Save sjl/3259412 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
([^Screen screen x y ^String s {:as opts | |
:keys [fg bg styles] | |
:or {fg :default | |
bg :default | |
styles #{}}}] | |
(let [styles ^clojure.lang.PersistentHashSet (set (map c/styles styles)) | |
x (int x) | |
y (int y) | |
fg ^com.googlecode.lanterna.terminal.Terminal$Color (c/colors fg) | |
bg ^com.googlecode.lanterna.terminal.Terminal$Color (c/colors bg)] | |
(.putString screen x y s fg bg styles)))) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
public void putString(int x, int y, String string, Terminal.Color foregroundColor, | |
Terminal.Color backgroundColor, ScreenCharacterStyle... styles) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment