tui-realm 2.0.0
2.0.0
Released on 13/10/2024
- Dropped support for
tui-rs
. Tui-rs was deprecated a long time ago, so it doesn't really makes sense to keep supporting it. - Added new methods for
TerminalBridge
init
: Initialize a terminal with reasonable defaults for most applications.- Raw mode is enabled
- Alternate screen buffer enabled
- A panic hook is installed that restores the terminal before panicking. Ensure that this method is called after any other panic hooks that may be installed to ensure that the terminal is.
restore
: Restore the terminal to its original stateset_panic_hook
: Sets a panic hook that restores the terminal before panicking.- Added
draw
toTerminalBridge
CmdResult::Custom(&'static str)
changed toCmdResult::Custom(&'static str, State)
- Added new
subclause_and!(Id::Foo, Id::Bar, Id::Baz)
andsubclause_or!(Id::Foo, Id::Bar, Id::Baz)
macros. - Removed
InputListener
. Now useCrosstermInputListener
orTermionInputListener
. - Added Event handling for Mouse Events
- Added
Mouse
inSubEventClause
.
- Added
- Bump
ratatui
version to0.28
- Dont enable
MouseCapture
by default - Add function
enable_mouse_capture
anddisable_mouse_capture
toTerminalBridge
- Max poll for ports:
- Add
Port::set_max_poll
to set the amount aPort
is polled in a singlePort::should_poll
. - Add
EventListenerCfg::port
to add a manually constructedPort
- Previous
EventListenerCfg::port
has been renamed toEventListenerCfg::add_port
- Add