1#ifndef UVW_TTY_INCLUDE_H
2#define UVW_TTY_INCLUDE_H
15struct reset_mode_memo {
19enum class uvw_tty_mode_t : std::underlying_type_t<uv_tty_mode_t> {
20 NORMAL = UV_TTY_MODE_NORMAL,
21 RAW = UV_TTY_MODE_RAW,
25enum class uvw_tty_vtermstate_t : std::underlying_type_t<uv_tty_vtermstate_t> {
26 SUPPORTED = UV_TTY_SUPPORTED,
27 UNSUPPORTED = UV_TTY_UNSUPPORTED
51 static std::shared_ptr<details::reset_mode_memo> mode_memo_handler();
54 using tty_mode = details::uvw_tty_mode_t;
55 using tty_vtermstate = details::uvw_tty_vtermstate_t;
135 std::shared_ptr<details::reset_mode_memo> memo;
bool readable() const noexcept
Checks if the stream is readable.
tty_vtermstate vterm_state() const noexcept
Gets the current state of whether console virtual terminal sequences are handled by the library or th...
bool mode(tty_mode m)
Sets the TTY using the specified terminal mode.
win_size get_win_size()
Gets the current Window size.
int init() final
Initializes the handle.
bool reset_mode() noexcept
Resets TTY settings to default values.
details::uv_type_wrapper< uv_file > file_handle
Windows size representation.