ports/81285: misc/screen -- Add support for 256 colour xterm
Jeremy Chadwick
freebsd at jdc.parodius.com
Fri May 20 00:10:03 UTC 2005
>Number: 81285
>Category: ports
>Synopsis: misc/screen -- Add support for 256 colour xterm
>Confidential: no
>Severity: non-critical
>Priority: low
>Responsible: freebsd-ports-bugs
>State: open
>Quarter:
>Keywords:
>Date-Required:
>Class: update
>Submitter-Id: current-users
>Arrival-Date: Fri May 20 00:10:02 GMT 2005
>Closed-Date:
>Last-Modified:
>Originator: Jeremy Chadwick
>Release: FreeBSD 4.11-STABLE i386
>Organization:
Parodius Networking
>Environment:
System: FreeBSD pentarou.parodius.com 4.11-STABLE FreeBSD 4.11-STABLE #0: Thu May 12 04:37:52 PDT 2005 root at pentarou.parodius.com:/usr/obj/usr/src/sys/PENTAROU i386
>Description:
Add 256 colour xterm support to screen. Simple CFLAGS addition.
Verified to work on 4.11-STABLE and 5.4-STABLE.
NOTE: Maintainer or port committer should read PR 76170 as well,
as it also contains a no-Nethackism Makefile change which will
conflict with this PR. It'd be nice to have both of them added
at the same time though. :-)
>How-To-Repeat:
n/a
>Fix:
Apply below patch.
diff -ruN screen.orig/Makefile screen/Makefile
--- screen.orig/Makefile Wed May 18 14:34:31 2005
+++ screen/Makefile Thu May 19 17:01:53 2005
@@ -7,7 +7,7 @@
PORTNAME= screen
PORTVERSION= 4.0.2
-PORTREVISION= 1
+PORTREVISION= 2
CATEGORIES= misc
MASTER_SITES= ftp://ftp.uni-erlangen.de/pub/utilities/screen/ \
${MASTER_SITE_GNU}
@@ -26,6 +26,14 @@
.if ${ARCH} == "alpha"
CFLAGS+= -O0
+.endif
+
+# Enables support for 256 colour xterm. Note that you may need to
+# set up a custom termcap entry or .screenrc which modifies termcap
+# to contain the following: Co#256:AB=\E[48;5;%dm:AF=\E[38;5;%dm
+#
+.if defined(WITH_XTERM_256)
+CFLAGS+= -DCOLORS256
.endif
post-patch:
>Release-Note:
>Audit-Trail:
>Unformatted:
More information about the freebsd-ports-bugs
mailing list