1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
// (C) 2025 - Enzo Lombardi
//! SSH server support for turbo-vision applications.
//!
//! This module provides infrastructure for serving turbo-vision TUI applications
//! over SSH connections using the russh library.
//!
//! # Architecture
//!
//! ```text
//! ┌──────────────────────────────────────────────────────────────────┐
//! │ SSH Server │
//! ├──────────────────────────────────────────────────────────────────┤
//! │ │
//! │ ┌─────────────┐ ┌─────────────┐ ┌─────────────┐ │
//! │ │ SSH Client │ │ SSH Client │ │ SSH Client │ ... │
//! │ │ Connection │ │ Connection │ │ Connection │ │
//! │ └──────┬──────┘ └──────┬──────┘ └──────┬──────┘ │
//! │ │ │ │ │
//! │ ▼ ▼ ▼ │
//! │ ┌─────────────┐ ┌─────────────┐ ┌─────────────┐ │
//! │ │ TuiHandler │ │ TuiHandler │ │ TuiHandler │ │
//! │ │ (per conn) │ │ (per conn) │ │ (per conn) │ │
//! │ └──────┬──────┘ └──────┬──────┘ └──────┬──────┘ │
//! │ │ │ │ │
//! │ ▼ ▼ ▼ │
//! │ ┌─────────────┐ ┌─────────────┐ ┌─────────────┐ │
//! │ │ TUI App │ │ TUI App │ │ TUI App │ │
//! │ │ (Terminal) │ │ (Terminal) │ │ (Terminal) │ │
//! │ └─────────────┘ └─────────────┘ └─────────────┘ │
//! │ │
//! └──────────────────────────────────────────────────────────────────┘
//! ```
//!
//! # Quick Start
//!
//! ```rust,ignore
//! use turbo_vision::ssh::{SshServer, SshServerConfig};
//! use turbo_vision::Terminal;
//!
//! #[tokio::main]
//! async fn main() {
//! let config = SshServerConfig::new()
//! .bind_addr("0.0.0.0:2222");
//!
//! let server = SshServer::new(config, |backend| {
//! // Create your TUI application with the SSH backend
//! let terminal = Terminal::with_backend(backend).unwrap();
//! // Run your app...
//! });
//!
//! server.run().await.unwrap();
//! }
//! ```
pub use ;
pub use ;