rusty-bubbletea 2.0.8

Cleanroom Rust port of Charmbracelet's Bubble Tea (v2.0.8) TUI Elm architecture framework
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
//! Cleanroom Rust port of upstream Go source file: `focus.go`
//! Upstream Target Tag / Version: `v2.0.8`
//!
//! <public-docs>
//! # Focus & Blur Messages
//!
//! Focus state messages (`FocusMsg`, `BlurMsg`) emitted when the terminal gains or loses window focus.
//! </public-docs>

/// FocusMsg is emitted when terminal gains focus.
#[derive(Debug, Clone, Copy, PartialEq, Eq)]
pub struct FocusMsg;

/// BlurMsg is emitted when terminal loses focus.
#[derive(Debug, Clone, Copy, PartialEq, Eq)]
pub struct BlurMsg;