git: a57e6db04804 - stable/15 - termcap: add missing capabilities to the xterm-ghostty entry

From: Xin LI <delphij_at_FreeBSD.org>
Date: Mon, 19 Oct 2026 01:23:24 UTC
The branch stable/15 has been updated by delphij:

URL: https://cgit.FreeBSD.org/src/commit/?id=a57e6db04804eb369849d6ac47d50cb9271b6a64

commit a57e6db04804eb369849d6ac47d50cb9271b6a64
Author:     Xin LI <delphij@FreeBSD.org>
AuthorDate: 2026-10-12 07:51:43 +0000
Commit:     Xin LI <delphij@FreeBSD.org>
CommitDate: 2026-10-19 01:22:59 +0000

    termcap: add missing capabilities to the xterm-ghostty entry
    
    (cherry picked from commit 3ceb5f150bc121f5e6a3e0cc8b289279338405a1)
---
 share/termcap/termcap | 15 +++++++++++++--
 1 file changed, 13 insertions(+), 2 deletions(-)

diff --git a/share/termcap/termcap b/share/termcap/termcap
index 46a1ba0a59bd..42a19268f3e0 100644
--- a/share/termcap/termcap
+++ b/share/termcap/termcap
@@ -4824,7 +4824,15 @@ alacritty+common|base fragment for alacritty:\
 
 # From Tim Culverhouse <tim@timculverhouse.com>
 xterm-ghostty|ghostty|Ghostty:\
-	:am:hs:km:mi:ms:xn:\
+	:ut:AX:NP:5i:\
+	:Co#256:pa#32767:\
+	:AB=\E[48;5;%dm:AF=\E[38;5;%dm:\
+	:ac=++,,--..00``aaffgghhiijjkkllmmnnooppqqrrssttuuvvwwxxyyzz{{||}}~~:\
+	:oc=\E]104\007:op=\E[39;49m:r1=\E]\E\\\Ec:\
+	:tc=ghostty+common:
+
+ghostty+common|base fragment for ghostty:\
+	:am:bs:hs:km:mi:ms:xn:\
 	:co#80:it#8:li#24:\
 	:AL=\E[%dL:DC=\E[%dP:DL=\E[%dM:DO=\E[%dB:IC=\E[%d@:\
 	:LE=\E[%dD:RI=\E[%dC:SF=\E[%dS:SR=\E[%dT:UP=\E[%dA:\
@@ -4839,7 +4847,10 @@ xterm-ghostty|ghostty|Ghostty:\
 	:mh=\E[2m:mr=\E[7m:nd=\E[C:rc=\E8:sc=\E7:se=\E[27m:sf=\n:\
 	:so=\E[7m:sr=\EM:st=\EH:ta=^I:te=\E[?1049l:ti=\E[?1049h:\
 	:ts=\E]2;:ue=\E[24m:up=\E[A:us=\E[4m:vb=\E[?5h\E[?5l:\
-	:ve=\E[?12l\E[?25h:vi=\E[?25l:vs=\E[?12;25h:
+	:ve=\E[?12l\E[?25h:vi=\E[?25l:vs=\E[?12;25h:\
+	:@7=\EOF:@8=\EOM:F1=\E[23~:F2=\E[24~:Km=\E[<:RA=\E[?7l:\
+	:SA=\E[?7h:ZH=\E[3m:ZR=\E[23m:cb=\E[1K:ch=\E[%i%dG:\
+	:cv=\E[%i%dd:k;=\E[21~:kB=\E[Z:mk=\E[8m:
 
 #
 # END OF TERMCAP