Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down
5 changes: 2 additions & 3 deletions src/tui.rs
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,6 @@

use color_eyre::eyre::Result;
use crossterm::{
event::{DisableMouseCapture, EnableMouseCapture},
execute,
terminal::{disable_raw_mode, enable_raw_mode, EnterAlternateScreen, LeaveAlternateScreen},
};
Expand Down Expand Up @@ -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.
Expand Down Expand Up @@ -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(())
}

Expand Down