Releases: veeso/tui-realm
tui-realm 3.0.1
tui-realm 3.0.0
3.0.0
Released on 21/05/2025
-
Add
SubClause::AndMany
for easier adding of many clauses that would otherwise be nestedSubClause::And
. -
Add
SubClause::OrMany
for easier adding of many clauses that would otherwise be nestedSubClause::Or
. -
Change the
subclause_
macros to make use of the newSubClause::*Many
variants. -
Change the
subclause_
macros to be able to end with a,
without error. -
Change the
subclause_and_not
to only have oneNot
instead of for every case. -
Remove
+ Sync
bound onPollAsync
trait andU
(Event) bound and all related functions. -
Fix bug that
EventListener::stop
did not actually stop any async tasks. -
Add function
EventListenerCfg::async_tick
to switch the ticker from Sync-Port to Async-Ports. Note thatEventListenerCfg::tick_interval
is still necessary to enable any ticker. -
Dont start the Sync-Port worker if there are no sync ports (note that
async_tick(false)
(the default) also counts as a sync port). -
Fix accidental always inclusion of
crossterm
dependency, even ifcrossterm
feature was disabled. (since 2.2.0) -
Change
PollAsync::poll
to take&mut self
instead of&self
. -
Add async
crossterm
input listenerCrosstermAsyncStream
as a alternative to the syncCrosstermInputListener
. -
Issue 94 / PR 94: improve Async Ports to make full use of it being async by running all async ports on the runtime instead of blocking on them like a Sync-port.
let event_listener = EventListenerCfg::default() .crossterm_input_listener(Duration::from_millis(10), 3) .with_handle(tokio::runtime::Handle::current()) .add_async_port( Box::new(AsyncPort::new()), Duration::from_millis(1000), 1, );
tuirealm 2.2.0
2.2.0
Released on 15/05/2025
- Added new
SubEventClause::Discriminant
, which works asSubEventClause::User
, but only checks the discriminant of the enum, instead of the whole enum. (e.g.Foo::Bar(2)
has the same discriminant asFoo::Bar(20)
, while when usingSubEventClause::User
, it would be different) - Rust edition
2024
tuirealm 2.1.0
tui-realm 2.0.3
2.0.3
Released on 14/10/2024
- Fixed: macros were not usable from external crates since the
tuirealm::
namespace of the recursive macro was not specified
tui-realm 2.0.2
2.0.2
Released on 14/10/2024
- Added
subclause_and_not!
tui-realm 2.0.1
2.0.1
Released on 13/10/2024
- Fixed docs not building
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
tui-realm 1.9.1
1.9.1
Relesed on 19/10/2023
- Fixed duplicated key events on Windows
- Update dependencies:
- bitflags 2
- termion 2
tui-realm 1.9.0
1.9.0
Released on 22/08/2023
- Bump
crossterm
to0.27
- Added support for
ratatui
- to enable
ratatui
set featureratatui
(enabled by default) - to enable
tui
set featuretui
.
- to enable
- Deprecated features
with-crossterm
,with-termion