1 #ifndef UVW_TTY_INCLUDE_H
2 #define UVW_TTY_INCLUDE_H
18 struct ResetModeMemo {
23 enum class UVTTYModeT: std::underlying_type_t<uv_tty_mode_t> {
24 NORMAL = UV_TTY_MODE_NORMAL,
25 RAW = UV_TTY_MODE_RAW,
30 enum class UVTTYVTermStateT: std::underlying_type_t<uv_tty_vtermstate_t> {
31 SUPPORTED = UV_TTY_SUPPORTED,
32 UNSUPPORTED = UV_TTY_UNSUPPORTED
58 static std::shared_ptr<details::ResetModeMemo> resetModeMemo();
61 using Mode = details::UVTTYModeT;
62 using VTermState = details::UVTTYVTermStateT;
142 std::shared_ptr<details::ResetModeMemo> memo;
bool readable() const noexcept
Checks if the stream is readable.
VTermState vtermState() const noexcept
Gets the current state of whether console virtual terminal sequences are handled by the library or th...
bool mode(Mode m)
Sets the TTY using the specified terminal mode.
WinSize getWinSize()
Gets the current Window size.
bool init()
Initializes the handle.
bool reset() noexcept
Resets TTY settings to default values.
details::UVTypeWrapper< uv_file > FileHandle
Windows size representation.