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
//! Cleanroom Rust port of upstream Go source file: `screen.go`
//! Upstream Target Tag / Version: `v2.0.8`
//!
//! <public-docs>
//! # Screen Buffer & Window Size
//!
//! `WindowSizeMsg`, `clear_screen`, `ClearScreenMsg`, `ModeReportMsg`.
//! </public-docs>
use crateCmd;
/// WindowSizeMsg is used to report the terminal size. It's sent to `update`
/// once initially and then on every terminal resize. Note that Windows does not
/// have support for reporting when resizes occur as it does not support the
/// SIGWINCH signal.
/// ClearScreenMsg is an internal message that signals to clear the screen.
/// You can send a ClearScreenMsg with `clear_screen`.
;
/// ClearScreen is a special command that tells the program to clear the screen
/// before the next update. This can be used to move the cursor to the top left
/// of the screen and clear visual clutter when the alt screen is not in use.
///
/// Note that it should never be necessary to call `clear_screen` for regular
/// redraws.
/// ModeReportMsg is a message that represents a mode report event (DECRPM).
///
/// This is sent by the terminal in response to a request for a terminal mode
/// report (DECRQM). It indicates the current setting of a specific terminal
/// mode like cursor visibility, mouse tracking, etc.
///
/// See: <https://vt100.net/docs/vt510-rm/DECRPM.html>