diff options
| author | ruki <[email protected]> | 2026-03-30 23:51:59 +0800 |
|---|---|---|
| committer | ruki <[email protected]> | 2026-03-30 23:51:59 +0800 |
| commit | 701d59c83a64bf5aa73f2bc386a0cdba087349c4 (patch) | |
| tree | 85de317c9904b4aa9e818cbef5615ed2cfad28be /xmake/core/base/tty.lua | |
| parent | e23dc968df5fa84e24e98a7fff903e40a12d6624 (diff) | |
update more comments
Diffstat (limited to 'xmake/core/base/tty.lua')
| -rw-r--r-- | xmake/core/base/tty.lua | 10 |
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 |
