refactor: rename termcap.lua -> tty.lua #38437

Problem:
The `termcap.lua` module is too narrowly named. We may need a place for
tty-related functionality in the future.
https://github.com/neovim/neovim/pull/31399#discussion_r1882598297

Solution:
This isn't a public/documented interface, so just rename it.
This commit is contained in:
Justin M. Keyes
2026-03-23 10:14:48 -04:00
committed by GitHub
parent 710ec1280a
commit 3a3c6f0907
4 changed files with 3 additions and 3 deletions

View File

@@ -1004,7 +1004,7 @@ do
-- Neither the TUI nor $COLORTERM indicate that truecolor is supported, so query the
-- terminal
local caps = {} ---@type table<string, boolean>
require('vim.termcap').query({ 'Tc', 'RGB', 'setrgbf', 'setrgbb' }, function(cap, found)
require('vim.tty').query({ 'Tc', 'RGB', 'setrgbf', 'setrgbb' }, function(cap, found)
if not found then
return
end