summaryrefslogtreecommitdiff
path: root/meta/3rd/luv/library/uv_tty_t.lua
diff options
context:
space:
mode:
Diffstat (limited to 'meta/3rd/luv/library/uv_tty_t.lua')
m---------meta/3rd/luv0
-rw-r--r--meta/3rd/luv/library/uv_tty_t.lua44
2 files changed, 0 insertions, 44 deletions
diff --git a/meta/3rd/luv b/meta/3rd/luv
new file mode 160000
+Subproject 3615eb12c94a7cfa7184b8488cf908abb5e94c9
diff --git a/meta/3rd/luv/library/uv_tty_t.lua b/meta/3rd/luv/library/uv_tty_t.lua
deleted file mode 100644
index 15e6fe46..00000000
--- a/meta/3rd/luv/library/uv_tty_t.lua
+++ /dev/null
@@ -1,44 +0,0 @@
----@meta
-
---- TTY handles represent a stream for the console.
----
---- ```lua
---- -- Simple echo program
---- local stdin = uv.new_tty(0, true)
---- local stdout = uv.new_tty(1, false)
----
---- stdin:read_start(function (err, data)
---- assert(not err, err)
---- if data then
---- stdout:write(data)
---- else
---- stdin:close()
---- stdout:close()
---- end
---- end)
---- ```
----
----@class uv.uv_tty_t : uv.uv_stream_t
-local tty
-
---- Gets the current Window width and height.
----
----@return integer|nil width
----@return integer|uv.error.message height_or_err
----@return uv.error.name|nil err_name
-function tty:get_winsize() end
-
---- Set the TTY using the specified terminal mode.
----
---- Parameter `mode` is a C enum with the following values:
----
---- - 0 - UV_TTY_MODE_NORMAL: Initial/normal terminal mode
---- - 1 - UV_TTY_MODE_RAW: Raw input mode (On Windows, ENABLE_WINDOW_INPUT is
---- also enabled)
---- - 2 - UV_TTY_MODE_IO: Binary-safe I/O mode for IPC (Unix-only)
----
----@param mode uv.tty.mode
----@return 0|nil success
----@return uv.error.message|nil err
----@return uv.error.name|nil err_name
-function tty:set_mode(mode) end \ No newline at end of file