fast-mosh 0.3.5

A fork of fast-ssh to quickly connect to your servers by navigating through your SSH config, using mosh.
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
use crate::THEME;
use tui::{
    style::Style,
    text::Span,
    widgets::{Block, Borders},
};

pub fn new(title: &str) -> Block {
    Block::default()
        .borders(Borders::ALL)
        .border_style(Style::default().fg(THEME.border_color()))
        .title_alignment(tui::layout::Alignment::Center)
        .border_type(tui::widgets::BorderType::Rounded)
        .title(Span::styled(
            title,
            Style::default().fg(THEME.text_secondary()),
        ))
}