From 348577d39fab60547358c2dd0d60c4e302411533 Mon Sep 17 00:00:00 2001 From: Baptiste Daroussin Date: Tue, 23 Feb 2021 17:17:32 +0100 Subject: [PATCH 3/3] terminfo: add terminfo database Add a subset of the full terminfo database, the subset is already large enough so it should cover all potential usage of FreeBSD --- share/Makefile | 1 + share/terminfo/Makefile | 56 +++++++++++++++++++++++++++++++++++++++++ 2 files changed, 57 insertions(+) create mode 100644 share/terminfo/Makefile diff --git a/share/Makefile b/share/Makefile index c4e12b05f7d..d6854b230ae 100644 --- a/share/Makefile +++ b/share/Makefile @@ -26,6 +26,7 @@ SUBDIR= ${_colldef} \ ${_syscons} \ tabset \ termcap \ + terminfo \ ${_timedef} \ ${_vt} \ ${_zoneinfo} diff --git a/share/terminfo/Makefile b/share/terminfo/Makefile new file mode 100644 index 00000000000..c3a288373e2 --- /dev/null +++ b/share/terminfo/Makefile @@ -0,0 +1,56 @@ +PACKAGE= runtime +TERMINALS= xterm xterm-256color xterm-color \ + rxvt rxvt-color rxvt-256color \ + rxvt-basic \ + aterm \ + Eterm Eterm-256color \ + simpleterm st st-256color st-16color stterm stterm-16color stterm-256color \ + cons25 cons25w \ + kitty kitty-direct kitty+common \ + alacritty alacritty-direct alacritty+common \ + terminology \ + terminator \ + vt100 vt220 \ + pty \ + mrxvt mrxvt-256color \ + mlterm mlterm-256color mlterm-direct \ + konsole-256color konsole \ + konsole-vt100 \ + mgt \ + termite \ + xfce \ + vte vte-256color \ + gnome gnome-256color \ + kterm \ + iterm2-direct iTerm.app iTerm2.app iterm iterm2 \ + nsterm-16color nsterm \ + teken \ + qnx \ + tmux tmux-256color \ + screen screen-256color \ + vscode vscode-direct \ + xterm.js \ + putty putty-vt100 putty-256color \ + jfbterm \ + dtterm + +FILESDIR= ${BINDIR}/misc/terminfo + +.PATH: ${SRCTOP}/contrib/ncurses/misc +FILESGROUPS= ${TERMINALS:C/(.).*/FILES\1/g:O:u} +.for t in ${TERMINALS} +FILES${t:C/(.).*/\1/g}+= ${t:C/(.).*/\1/g}/${t} +FILES${t:C/(.).*/\1/g}DIR?= ${FILESDIR}/${t:C/(.).*/\1/g} +CLEANFILES+= ${t:C/(.).*/\1/g}/${t} +CLEANDIRS+= ${t:C/(.).*/\1/g} +TERMTARGETS+= ${t:C/(.).*/\1/g}/${t} +.endfor +CLEANDIRS:= ${CLEANDIRS:O:u} + +.include + +${TERMTARGETS}: terminfo.src + ${TIC_CMD} -x -e ${.TARGET:T} -o ${.OBJDIR} ${.ALLSRC} + +.include + -- 2.30.0