diff options
author | Jan Beich <jbeich@FreeBSD.org> | 2021-08-28 09:59:49 +0000 |
---|---|---|
committer | Jan Beich <jbeich@FreeBSD.org> | 2021-08-28 13:17:20 +0000 |
commit | 48d5cc6deee9afb57474e7ebd4e461e5d6d05e26 (patch) | |
tree | cb869b5a471479dbbbf1631076a106ee3df14460 /x11/wezterm | |
parent | x11-toolkits/gtk30: update to 3.24.30 (diff) |
x11/wezterm: add termcap/terminfo support
Mostly a workaround for bug 247447. On DragonFly and FreeBSD >= 14.0
TERM=wezterm is only useful for debugging.
Diffstat (limited to 'x11/wezterm')
-rw-r--r-- | x11/wezterm/Makefile | 11 | ||||
-rw-r--r-- | x11/wezterm/pkg-message | 16 |
2 files changed, 26 insertions, 1 deletions
diff --git a/x11/wezterm/Makefile b/x11/wezterm/Makefile index 90ce9672f4ad..ae193b6b4e46 100644 --- a/x11/wezterm/Makefile +++ b/x11/wezterm/Makefile @@ -1,6 +1,6 @@ PORTNAME= wezterm DISTVERSION= 20210814-124438-54e29167 -PORTREVISION= 1 +PORTREVISION= 2 CATEGORIES= x11 MAINTAINER= jbeich@FreeBSD.org @@ -40,6 +40,11 @@ PLIST_FILES= bin/strip-ansi-escapes \ share/metainfo/org.wezfurlong.wezterm.appdata.xml \ ${NULL} +.if exists(/usr/bin/tic) +PKGMESSAGE= ${NONEXISTENT} +PLIST_FILES+= share/site-terminfo/${PORTNAME:C,^.,&/&,} +.endif + CARGO_CRATES= addr2line-0.16.0 \ adler-1.0.2 \ adler32-1.2.0 \ @@ -556,5 +561,9 @@ post-install: ${INSTALL_DATA} ${WRKSRC}/assets/${f:R}.${f:E} \ ${STAGEDIR}${PREFIX}/${PLIST_FILES:M*.${f:E}} .endfor +.if exists(/usr/bin/tic) + tic -x -o ${STAGEDIR}${PREFIX}/${PLIST_FILES:M*terminfo*:[1]:H:H} \ + ${WRKSRC}/termwiz/data/${PORTNAME}.terminfo +.endif .include <bsd.port.mk> diff --git a/x11/wezterm/pkg-message b/x11/wezterm/pkg-message new file mode 100644 index 000000000000..e927374a62d5 --- /dev/null +++ b/x11/wezterm/pkg-message @@ -0,0 +1,16 @@ +[ +{ type: install + message: <<EOM +Some features require adjusting termcap(5) e.g., + + # To test run: wezterm --config term=\"wezterm\" + $ cat >>/etc/termcap + wezterm|Wez's terminal emulator:\ + :it#8:\ + :IC=\E[%d@:SF=\E[%dS:SR=\E[%dT:bt=\E[Z:ec=\E[%dX:kb=\177:\ + :mb=\E[5m:me=\E[0m:mh=\E[2m:mm=\E[?1034h:mo=\E[?1034l:nw@:\ + :te=\E[?1049l\E[23;0;0t:ti=\E[?1049h\E[22;0;0t:\ + :vb=\E[?5h\E[?5l:tc=xterm-256color: +EOM +} +] |