A fun little TUI framework for OCaml
CHANGES:
Upgrade to Riot 0.0.8 โ this release brings stability fixes, performance fixes, and includes new microsecond resolution timers.
Add better trace logs
Make sure we restore and show the cursor on exit
Fix bug where alt-screen rendering cleaned extra lines - thanks @jmcavanillas ๐
Small doc fixes โ thanks @sam-huckaby โจ
Expose color type as Tty.Color.t for more flexibility and supporting fallback colors
Implement rendering of padding โ thanks @wonbyte ๐
Add new Virtualized Table component with support for columns and moving a cursor around โ thanks @sabine ๐งก
Progress bar now defaults color to gray if the terminal profile isn't supported
Progress bar now can toggle the percentage number โ thanks @wesleimp ๐
Add support for custom events โ any Riot message sent to a Mint Tea app will
become an Event.Custom msg
event, which enables sending data into TUIs from
other processes.
Add key
type for key down events โ this means we now get better
discoverability of what key down events we can match on, and its easier to
keep examples working
Capture more key events: arrows (left,down,up,right), backspace, space, enter, escape.
Move initial_state
to the application start invocation โ you can now run
your app with multiple initial states, which makes it ideal for starting apps
in the middle of other flows, or to test specific scenarios.
Fix bug where TTY was not restored from RAW mode during normal shutdown.
Now the Event.Frame time
event includes the frame time, and all examples
are updated to work with it.
Add new Hide_cursor
and Show_cursor
commands, and always restore the
cursor to visible on exit
New Leaves.Fps
to specify a frame rate and cap updates at that rate (Thanks
to @sabine)
New Leaves.Sprite
module to create frame-based animations that are ticked
at a specific frame-rate (Thanks to @sabine)
New Leaves.Spinner
contains several spinners ready to be used in
applications (Thanks to @sabine)
New Leaves.Text_input
field ready to be used in applications (Thanks to
@lessp_)
New Leaves.Cursor
that can be used to highlight where the cursor is in a
given text (Thanks to @nguermond)
Reworked Leaves.Progress
to support plain and gradient progress bars with
customizable empty/full/trail characters, and to fit right into the
make/update/view pattern.
New Spinners example showcasing several spinners (Thanks to @sabine)
New Emojis game example showcasing a tilemap and moving a player around
New Basic example for the README tutorial
New Progress bars examples showcasing plain, gradient, and emoji progress bars
New Text input field example (Thanks to @lessp_)
Updated other examples to use the new progress bars
Initial release for the 3 packages.
views
example showcasing an application with multiples sectionsaltscreen-toggle
example to showcase the AltScreenfullscreen
example with a timerstopwatch
examplefps
counter examplecolor
and style
CHANGES:
Add support for custom events โ any Riot message sent to a Mint Tea app will
become an Event.Custom msg
event, which enables sending data into TUIs from
other processes.
Add key
type for key down events โ this means we now get better
discoverability of what key down events we can match on, and its easier to
keep examples working
Capture more key events: arrows (left,down,up,right), backspace, space, enter, escape.
Move initial_state
to the application start invocation โ you can now run
your app with multiple initial states, which makes it ideal for starting apps
in the middle of other flows, or to test specific scenarios.
Fix bug where TTY was not restored from RAW mode during normal shutdown.
Now the Event.Frame time
event includes the frame time, and all examples
are updated to work with it.
Add new Hide_cursor
and Show_cursor
commands, and always restore the
cursor to visible on exit
New Leaves.Fps
to specify a frame rate and cap updates at that rate (Thanks
to @sabine)
New Leaves.Sprite
module to create frame-based animations that are ticked
at a specific frame-rate (Thanks to @sabine)
New Leaves.Spinner
contains several spinners ready to be used in
applications (Thanks to @sabine)
New Leaves.Text_input
field ready to be used in applications (Thanks to
@lessp)
New Leaves.Cursor
that can be used to highlight where the cursor is in a
given text (Thanks to @nguermond)
Reworked Leaves.Progress
to support plain and gradient progress bars with
customizable empty/full/trail characters, and to fit right into the
make/update/view pattern.
New Spinners example showcasing several spinners (Thanks to @sabine)
New Emojis game example showcasing a tilemap and moving a player around
New Basic example for the README tutorial
New Progress bars examples showcasing plain, gradient, and emoji progress bars
New Text input field example (Thanks to @lessp)
Updated other examples to use the new progress bars
CHANGES:
Initial release for the 3 packages.
views
example showcasing an application with multiples sectionsaltscreen-toggle
example to showcase the AltScreenfullscreen
example with a timerstopwatch
examplefps
counter examplecolor
and style