New
0.14.0
New:
- Support synchronized terminal update for rendering. This should eliminate tearing when rendering updates for terminals that support this feature.
- The terminal cursor is now automatically hidden during rendering and restored afterward.
- Added
Modifier.onKeyEventorModifier.onPreKeyEventto listen to keyboard events. - Send real frame times into Compose which can be used for things like animations.
Changed:
- The entrypoints (
runMosaicandrunMosaicBlocking) have been changed to directly accept a composable lambda. Asynchronous work should now be performed inside Compose's effect system (e.g.,LaunchedEffect), and rendering will complete when all effects have completed. Check out our samples for more information about how to do this. - Сhange
DrawScope#drawRectAPI with the ability to draw with text characters and specifyDrawStyle(FillorStroke). - Drop support for JS target. If you were using this, please file an issue so we can discuss support.