1#ifndef UVW_TTY_INCLUDE_H
2#define UVW_TTY_INCLUDE_H
18enum class UVTTYModeT : std::underlying_type_t<uv_tty_mode_t> {
19 NORMAL = UV_TTY_MODE_NORMAL,
20 RAW = UV_TTY_MODE_RAW,
24enum class UVTTYVTermStateT : std::underlying_type_t<uv_tty_vtermstate_t> {
25 SUPPORTED = UV_TTY_SUPPORTED,
26 UNSUPPORTED = UV_TTY_UNSUPPORTED
50 static std::shared_ptr<details::ResetModeMemo> resetModeMemo();
53 using Mode = details::UVTTYModeT;
54 using VTermState = details::UVTTYVTermStateT;
56 explicit TTYHandle(ConstructorAccess ca, std::shared_ptr<Loop> ref,
FileHandle desc,
bool readable);
134 std::shared_ptr<details::ResetModeMemo> memo;
bool readable() const noexcept
void vtermState(VTermState s) const noexcept
Controls whether console virtual terminal sequences are processed by the library or console.
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.