summaryrefslogtreecommitdiff
path: root/xmake/core/base/tty.lua
diff options
context:
space:
mode:
authorruki <[email protected]>2026-03-30 23:51:59 +0800
committerruki <[email protected]>2026-03-30 23:51:59 +0800
commit701d59c83a64bf5aa73f2bc386a0cdba087349c4 (patch)
tree85de317c9904b4aa9e818cbef5615ed2cfad28be /xmake/core/base/tty.lua
parente23dc968df5fa84e24e98a7fff903e40a12d6624 (diff)
update more comments
Diffstat (limited to 'xmake/core/base/tty.lua')
-rw-r--r--xmake/core/base/tty.lua10
1 files changed, 8 insertions, 2 deletions
diff --git a/xmake/core/base/tty.lua b/xmake/core/base/tty.lua
index bd7b60277..2b9aa91bc 100644
--- a/xmake/core/base/tty.lua
+++ b/xmake/core/base/tty.lua
@@ -496,7 +496,10 @@ function tty.has_emoji()
return has_emoji
end
--- has vtansi?
+-- does the terminal support VT/ANSI escape codes?
+--
+-- @return true if supported
+--
function tty.has_vtansi()
return tty.has_color8()
end
@@ -658,7 +661,10 @@ function tty.term_mode(stdtype, newmode)
return oldmode
end
--- get session id
+-- get the terminal session id
+--
+-- @return the session id string
+--
function tty.session_id()
local session_id = tty._SESSION_ID
if session_id == nil then