View | Details | Raw Unified | Return to bug 124492
Collapse All | Expand All

(-)sysutils/screen/Makefile (-2 / +8 lines)
Lines 7-13 Link Here
7
7
8
PORTNAME=	screen
8
PORTNAME=	screen
9
PORTVERSION=	4.0.3
9
PORTVERSION=	4.0.3
10
PORTREVISION=	4
10
PORTREVISION=	5
11
CATEGORIES=	sysutils
11
CATEGORIES=	sysutils
12
MASTER_SITES=	ftp://ftp.uni-erlangen.de/pub/utilities/screen/ \
12
MASTER_SITES=	ftp://ftp.uni-erlangen.de/pub/utilities/screen/ \
13
		http://komquats.com/distfiles/ \
13
		http://komquats.com/distfiles/ \
Lines 23-29 Link Here
23
		MAN "Build and install man pages" ON \
23
		MAN "Build and install man pages" ON \
24
		NETHACK "Enable nethack-style messages" ON \
24
		NETHACK "Enable nethack-style messages" ON \
25
		XTERM_256 "Enable support for 256 colour xterm" OFF \
25
		XTERM_256 "Enable support for 256 colour xterm" OFF \
26
		HOSTINLOCKED "Print user@host in locked message" OFF
26
		HOSTINLOCKED "Print user@host in locked message" OFF \
27
		SHOWENC "Show encoding on the status line" OFF
27
28
28
NO_PACKAGE=	Tends to loop using 100% CPU when used from package - perhaps it hard-codes information about the build host
29
NO_PACKAGE=	Tends to loop using 100% CPU when used from package - perhaps it hard-codes information about the build host
29
30
Lines 67-72 Link Here
67
EXTRA_PATCHES+= ${FILESDIR}/opt-hostinlocked
68
EXTRA_PATCHES+= ${FILESDIR}/opt-hostinlocked
68
.endif
69
.endif
69
70
71
# show encoding on the status line via option "showenc"
72
.if defined(WITH_SHOWENC)
73
EXTRA_PATCHES+=	${FILESDIR}/opt-showencoding
74
.endif
75
70
post-patch:
76
post-patch:
71
	@${RM} ${WRKSRC}/doc/screen.info*
77
	@${RM} ${WRKSRC}/doc/screen.info*
72
	@${REINPLACE_CMD} -e 's|/dev/ptmx|/nonexistent|' ${WRKSRC}/configure
78
	@${REINPLACE_CMD} -e 's|/dev/ptmx|/nonexistent|' ${WRKSRC}/configure
(-)sysutils/screen/files/opt-showencoding (+31 lines)
Line 0 Link Here
1
--- process.c.orig	2008-05-08 02:37:33.000000000 +0800
2
+++ process.c	2008-05-08 02:37:49.000000000 +0800
3
@@ -3422,6 +3422,7 @@
4
 	    {
5
 	      WinSwitchEncoding(fore, n);
6
 	      ResetCharsets(fore);
7
+	      RedisplayDisplays(0);
8
 	    }
9
 	  else if (i && display)
10
 	    D_encoding  = n;
11
--- screen.c.orig	2008-05-08 02:37:22.000000000 +0800
12
+++ screen.c	2008-05-20 20:34:37.000000000 +0800
13
@@ -2584,6 +2584,18 @@
14
 	    }
15
 	  p += strlen(p) - 1;
16
 	  break;
17
+#ifdef ENCODINGS
18
+	case 'e':
19
+	  *p = 0;
20
+	  D_encoding = nwin_options.encoding > 0 ? nwin_options.encoding : 0;
21
+	  if (win && win->w_encoding)
22
+	    {
23
+	      *p++ = ' ';
24
+	      strcpy(p, EncodingName(win->w_encoding));
25
+	    }
26
+	  p += strlen(p) - 1;
27
+	  break;
28
+#endif
29
 	case '{':
30
           {
31
 	    char rbuf[128];

Return to bug 124492