Skip to main content

Module screen

Module screen 

Source
Expand description

Cleanroom Rust port of upstream Go source file: screen.go Upstream Target Tag / Version: v2.0.8

# Screen Buffer & Window Size

WindowSizeMsg, clear_screen, ClearScreenMsg, ModeReportMsg.

Structs§

ClearScreenMsg
ClearScreenMsg is an internal message that signals to clear the screen. You can send a ClearScreenMsg with clear_screen.
ModeReportMsg
ModeReportMsg is a message that represents a mode report event (DECRPM).
WindowSizeMsg
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.

Functions§

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.