pkgsrc-Changes archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
CVS commit: pkgsrc/devel/libgnt
Module Name: pkgsrc
Committed By: wiz
Date: Wed Apr 3 21:36:16 UTC 2024
Modified Files:
pkgsrc/devel/libgnt: Makefile distinfo
Added Files:
pkgsrc/devel/libgnt/patches: patch-gntkeys.c
Log Message:
libgnt: extend screen(1) hack for tmux(1)
Makes cursor keys work in finch.
Bump PKGREVISION.
To generate a diff of this commit:
cvs rdiff -u -r1.10 -r1.11 pkgsrc/devel/libgnt/Makefile
cvs rdiff -u -r1.3 -r1.4 pkgsrc/devel/libgnt/distinfo
cvs rdiff -u -r0 -r1.1 pkgsrc/devel/libgnt/patches/patch-gntkeys.c
Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.
Modified files:
Index: pkgsrc/devel/libgnt/Makefile
diff -u pkgsrc/devel/libgnt/Makefile:1.10 pkgsrc/devel/libgnt/Makefile:1.11
--- pkgsrc/devel/libgnt/Makefile:1.10 Wed Nov 8 13:18:54 2023
+++ pkgsrc/devel/libgnt/Makefile Wed Apr 3 21:36:16 2024
@@ -1,7 +1,7 @@
-# $NetBSD: Makefile,v 1.10 2023/11/08 13:18:54 wiz Exp $
+# $NetBSD: Makefile,v 1.11 2024/04/03 21:36:16 wiz Exp $
DISTNAME= libgnt-2.14.0
-PKGREVISION= 8
+PKGREVISION= 9
CATEGORIES= devel
MASTER_SITES= ${MASTER_SITE_SOURCEFORGE:=pidgin/}
EXTRACT_SUFX= .tar.xz
Index: pkgsrc/devel/libgnt/distinfo
diff -u pkgsrc/devel/libgnt/distinfo:1.3 pkgsrc/devel/libgnt/distinfo:1.4
--- pkgsrc/devel/libgnt/distinfo:1.3 Tue Oct 26 10:15:21 2021
+++ pkgsrc/devel/libgnt/distinfo Wed Apr 3 21:36:16 2024
@@ -1,5 +1,6 @@
-$NetBSD: distinfo,v 1.3 2021/10/26 10:15:21 nia Exp $
+$NetBSD: distinfo,v 1.4 2024/04/03 21:36:16 wiz Exp $
BLAKE2s (libgnt-2.14.0.tar.xz) = 458125d941c9cc07bfe6a7466af122869b5a500d157a89961669ce07c4d030c1
SHA512 (libgnt-2.14.0.tar.xz) = 0d9c5550374696a0e6ede5246cda3c372d7055d21b9ffaf10be88d6a469bdf18c7dd1113ec612acf4889c0e5686ea87bb0e8348ca8985fd5ff8913afc5813b38
Size (libgnt-2.14.0.tar.xz) = 102444 bytes
+SHA1 (patch-gntkeys.c) = 6bf7fe39b2ae387e9d7eea05907dffb4801dc465
Added files:
Index: pkgsrc/devel/libgnt/patches/patch-gntkeys.c
diff -u /dev/null pkgsrc/devel/libgnt/patches/patch-gntkeys.c:1.1
--- /dev/null Wed Apr 3 21:36:16 2024
+++ pkgsrc/devel/libgnt/patches/patch-gntkeys.c Wed Apr 3 21:36:16 2024
@@ -0,0 +1,24 @@
+$NetBSD: patch-gntkeys.c,v 1.1 2024/04/03 21:36:16 wiz Exp $
+
+Extend screen hack to tmux*.
+
+--- gntkeys.c.orig 2020-06-10 02:21:05.000000000 +0000
++++ gntkeys.c
+@@ -56,7 +56,7 @@ void gnt_init_keys()
+ gnt_key_cdown = "\033" "[1;5B";
+ gnt_key_cright = "\033" "[1;5C";
+ gnt_key_cleft = "\033" "[1;5D";
+- } else if (strstr(term, "screen") == term || strcmp(term, "rxvt-unicode") == 0) {
++ } else if (strstr(term, "screen") == term || strcmp(term, "rxvt-unicode") == 0 || strncmp(term, "tmux", 4) == 0) {
+ gnt_key_cup = "\033" "Oa";
+ gnt_key_cdown = "\033" "Ob";
+ gnt_key_cright = "\033" "Oc";
+@@ -162,7 +162,7 @@ void gnt_keys_refine(char *text)
+ if (*text == 27 && *(text + 1) == '[' &&
+ (*(text + 2) >= 'A' && *(text + 2) <= 'D')) {
+ /* Apparently this is necessary for urxvt and screen and xterm */
+- if (strstr(term, "screen") == term || strcmp(term, "rxvt-unicode") == 0 ||
++ if (strstr(term, "screen") == term || strcmp(term, "rxvt-unicode") == 0 || strncmp(term, "tmux", 4) == 0 ||
+ strstr(term, "xterm") == term ||
+ strstr(term, "vt100") == term)
+ *(text + 1) = 'O';
Home |
Main Index |
Thread Index |
Old Index