Add jline3 and expose raw keyboard input somehow
Probably modifiers, just like Android/Desktop Compose.
You mean, having Modifier.onKeyEvent(), right?
If so, I guess KeyEvent would be different from the Android/Desktop one which is in the ui package.
It's probably not that different in shape, but yes we are not reusing anything from Compose UI / Foundation.
I think we can use mordant to handle the user input that was added in this pull request. It remains only to wait for the official new version to try
Yeah just saw that earlier. Cool!
This version upgrade just landed.
Did most of this today in the keys branch. Will try to finish it tonight.
Probably need to restore MosaicScope to add an exitApplication function similar to what Compose UI for Desktop does. I'm also unsure what to do about Ctrl+C handling. It might be worth having automatic handling of that with some kind of opt-out.
Also I'm about to unconditionally put the terminal in raw mode. Is there any reason to not do that? I see a few other frameworks unconditionally do it as well.
For ctrl+c, if no one handles it in a modifier, we'll exit. Otherwise, you're on your own.