Hacker Newsnew | past | comments | ask | show | jobs | submitlogin
Lanterna – Easy console text GUI library for Java (code.google.com)
63 points by javinpaul on July 16, 2014 | hide | past | favorite | 15 comments


I've used this library before and really liked it. I made a really simple roguelike with it:

https://github.com/melloc/roguelike

I remember running into some minor issues, but for the most part it's an awesome, mature library.


There's nothing more satisfying than a hardcore greenscreen admin interface to your web app.


I have actually used this library in the past. I've never managed to get it working with Spring for DI because the library itself instantiates it's objects at really strange times... It's nice all the same though.


Not having used laterna why would it matter when it instantiates anything? Spring lets you define init/destroy methods which would allow laterna to do its own thing... Or were you trying to use laterna features programmatically like an api?


I can't remember entirely what I was trying to do, because it was over a year ago since I've touched it, but I remember stepping through Lanterna and seeing code that instantiates objects just before they appear on screen which meant it was over writing existing objects managed by Spring... (I think)

I know that Lanterna is still being actively worked on though, so maybe I'll give it another shot.

I see the spelling error on the: "Panel.Orientation.HORISONTAL" enum still exists though.


Has anyone gotten this working with Groovy? I wonder if you would run into similar issues.


On a related note, there is also Charva which is somewhat similar.

http://www.pitman.co.za/projects/charva/index.html


I am just starting to work on a Roguelike in Java now. How did you know?


Are there similar solutions for other languages (other than curses)? In particular I would love something for python scripting.


There's a Clojure wrapper (https://github.com/sjl/clojure-lanterna) which features in a pretty great series of blog posts on making a Roguelike with it: http://stevelosh.com/blog/2012/07/caves-of-clojure-01/


terminfo and curses fulfil the first two layers described on the web-page, and have decent bindings in the Python standard library. For the third layer, the widget toolkit, you probably want something like Urwid.


Oohh, memories of Turbo Vision resurface...


That looks awesome.


I've not tried it yet, but.. Hori_s_ontal? Why?

https://code.google.com/p/lanterna/source/browse/src/main/ja...


Martin Berglund might be Scandinavian.

https://translate.google.com/#en/no/horizontal




Consider applying for YC's Winter 2026 batch! Applications are open till Nov 10

Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: