diff --git a/CHANGELOG.md b/CHANGELOG.md index 5f51c6b..98f8733 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -11,6 +11,7 @@ This project tries to follow semantic versioning. - **Token caching**: OAuth tokens are now cached between sessions for faster startup - **Multi-room selection**: Enable multi-room selection with visual indicators - **Batch operations**: Implement batch leave via LeaveRoom command for selected rooms +- **Native text selection**: Enable native terminal text selection and clipboard copy by disabling mouse capture ## [0.7.6] - 2025-10-06 diff --git a/src/tui.rs b/src/tui.rs index aec8bd2..c8f6f05 100644 --- a/src/tui.rs +++ b/src/tui.rs @@ -2,7 +2,6 @@ use color_eyre::eyre::Result; use crossterm::{ - event::{DisableMouseCapture, EnableMouseCapture}, execute, terminal::{disable_raw_mode, enable_raw_mode, EnterAlternateScreen, LeaveAlternateScreen}, }; @@ -51,7 +50,7 @@ impl Tui { /// It enables the raw mode and sets terminal properties. pub(crate) fn init(&mut self) -> Result<()> { enable_raw_mode()?; - execute!(io::stderr(), EnterAlternateScreen, EnableMouseCapture)?; + execute!(io::stderr(), EnterAlternateScreen)?; // Define a custom panic hook to reset the terminal properties. // This way, you won't have your terminal messed up if an unexpected error happens. @@ -82,7 +81,7 @@ impl Tui { /// the terminal properties if unexpected errors occur. fn reset() -> Result<()> { disable_raw_mode()?; - execute!(io::stderr(), LeaveAlternateScreen, DisableMouseCapture)?; + execute!(io::stderr(), LeaveAlternateScreen)?; Ok(()) }