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
//! # dscode-terminal
//!
//! Terminal manager and PTY lifecycle management for DSCode.
//!
//! This crate provides a portable PTY-backed terminal manager that can be used
//! independently of any UI framework. Event forwarding is abstracted behind the
//! [`TerminalEventSender`] trait, with an optional Tauri implementation gated
//! behind the `tauri` feature flag.
//!
//! ## Feature Flags
//!
//! - **tauri** — Enables [`TauriEventSender`], a [`TerminalEventSender`]
//! implementation that forwards PTY output and close events to a Tauri
//! frontend via the Tauri event system.
pub use TerminalError;
pub use ;
/// Trait abstracting how terminal events are forwarded to a consumer.
///
/// Implement this trait to integrate the terminal manager with your preferred
/// UI or event system. The crate ships a Tauri-based implementation behind the
/// `tauri` feature flag.
// ── Tauri integration ──────────────────────────────────────────────────────
pub use TauriEventSender;