ratatui-org / ratatui

Rust library that's all about cooking up terminal user interfaces (TUIs) 👨‍🍳🐀
https://ratatui.rs
MIT License
8.82k stars 263 forks source link

feat(color-eyre): Add color eyre to the default app terminal setup #1181

Open joshka opened 2 weeks ago

joshka commented 2 weeks ago

Apps can now enable color-eyre hooks using the with_color_eyre_hooks method on CrosstermBackend. This is also added to the default features in the Cargo.toml file, and the defaults that are applied to terminals created using CrosstermBackend::into_terminal_with_defaults.

codecov[bot] commented 2 weeks ago

Codecov Report

Attention: Patch coverage is 0% with 111 lines in your changes missing coverage. Please review.

Project coverage is 93.6%. Comparing base (4bfdc15) to head (458b7b7). Report is 6 commits behind head on main.

Files Patch % Lines
src/backend/crossterm.rs 0.0% 99 Missing :warning:
src/backend.rs 0.0% 12 Missing :warning:
Additional details and impacted files ```diff @@ Coverage Diff @@ ## main #1181 +/- ## ======================================= - Coverage 94.3% 93.6% -0.7% ======================================= Files 60 60 Lines 14679 14784 +105 ======================================= Hits 13843 13843 - Misses 836 941 +105 ```

:umbrella: View full report in Codecov by Sentry.
:loudspeaker: Have feedback on the report? Share it here.

EdJoPaTo commented 2 weeks ago

When setting up a panic hook with an external crate, there should also be the panic hook with std only methods.

joshka commented 2 weeks ago

When setting up a panic hook with an external crate, there should also be the panic hook with std only methods.

Added

joshka commented 2 weeks ago

Blocked on https://github.com/ratatui-org/ratatui/pull/1180