OK, this is going to sound like a crazy idea - but I'm interested in emulating a 1980s style roguelike game text interface in pure Java, i.e. using Swing or similar.
Here's roughly what it needs to do:
- Provide a fixed size grid of fixed size characters as the "screen" (e.g. 100*75)
- Use an appropriate monospaced font, ideally with lots of interesting symbols
- Allow setting of foreground and background character colours for each character position individually
- Allow printing of strings or individual characters at any place in the screen (which should overwrite whatever is already in the screen buffer in those locations)
Anyone know of a good existing solution that would enable this? Or am I stuck with hacking one together from scratch?
p.s. the reason I want pure Java is so that it can run in a sandboxed applet. So JNI solutions like jcurses are sadly ruled out.....