-
Notifications
You must be signed in to change notification settings - Fork 12
Description
Roadmap
Current state
What is here now is a quick and dirty port of tui-rs to scala. It also contains a pure Java/JNI wrapper for crossterm.
It's a significant improvement of the state of the art on the JVM (as far as I know) to easily create rich, pretty, cross-platform TUI interfaces easily. It also works with GraalVM native images, which really will enable us to make great and pretty TUI tools in Scala.
Immediate next steps
- refactor JNI layer to throw java exceptions, not panic #10
- setup CI / publish #11
Complete porting remaining widgets and demos (see issue list)- make all of tui immutable #9
- scalaify the API (snake case => camel case, and whatever else comes up)
Adressing limitations of the design
tui has a simple interface and core, but doesn't model important things like event handling. It's fine for smaller apps because you can just write custom code for it (see all the demos), but it would be better to solve it properly.
The tui repo itself points to cursive instead for an improved design, so it's an obvious place to look for inspiration.
So why not just port cursive instead?
When I decided to try to port tui it was because it seemed manageable to port quicly:
- The core is quite small
- It was decently covered by tests
- It has a manageable internal dependency graph to enable porting piece by piece
- It was familiar to me
Cursive didn't seem manageable to me by those standards, so it just wouldn't have happened.
I'm fully convinced we'll be able to refactor tui-scala to for instance handle events gracefully.