crossterm icon indicating copy to clipboard operation
crossterm copied to clipboard

Support for TMUX is limited.

Open TimonPost opened this issue 5 years ago • 1 comments

Describe the bug TMUX is known to have some limitations and bugs which probably aren't crossterm related. The user should expect some functionalities not to work. Please see this issue for the reports.

OS

  • e.g. MacOs, Linux, (version) etc...

Terminal/Shell

  • TMUX

TimonPost avatar Mar 22 '20 20:03 TimonPost

We have taken tui's sample code (with the crossterm backend) and put it into a for loop:

fn update_frame(&mut self) -> io::Result<()> {
    self.terminal.draw(|f| {
        let size = f.size();
        let block = Block::default()
            .title("Block")
            .borders(Borders::ALL);
        f.render_widget(block, size);
    })?;
    Ok(())
}

which resizes just fine except when we run it within tmux (we have tmux mouse mode enabled if that matters).

Should this work? Can we do anything to make it work? Being unable to run in tmux would be bad.

Trolldemorted avatar May 09 '21 18:05 Trolldemorted