JakeWharton / mosaic

Build terminal UI in Kotlin using Jetpack Compose
Apache License 2.0
1.95k stars 57 forks source link

Support entering/exiting alternate screen #455

Open JakeWharton opened 2 months ago

JakeWharton commented 3 days ago

To start with I think an entry-point boolean is enough. Things like the snake game can make use of it.

Still can't really think of a good design for dynamically switching in and out of the mode, though. It has all kinds of other implications on things like static logging, what happens to nodes that are "outside" the alternate screen, how to handle multiple and/or nesting, etc.