app-misc/tmux: enable sixel support
This commit is contained in:
15
app-misc/tmux/files/tmux-2.4-flags.patch
Normal file
15
app-misc/tmux/files/tmux-2.4-flags.patch
Normal file
@@ -0,0 +1,15 @@
|
||||
Makefile.am | 3 +--
|
||||
1 file changed, 1 insertion(+), 2 deletions(-)
|
||||
--- tmux-2.4/Makefile.am
|
||||
+++ tmux-2.4/Makefile.am
|
||||
@@ -17,9 +17,8 @@
|
||||
|
||||
# Set flags for gcc.
|
||||
if IS_GCC
|
||||
-AM_CFLAGS += -std=gnu99 -O2
|
||||
+AM_CFLAGS += -std=gnu99
|
||||
if IS_DEBUG
|
||||
-AM_CFLAGS += -g
|
||||
AM_CFLAGS += -Wno-long-long -Wall -W -Wformat=2
|
||||
AM_CFLAGS += -Wmissing-prototypes -Wstrict-prototypes -Wmissing-declarations
|
||||
AM_CFLAGS += -Wwrite-strings -Wshadow -Wpointer-arith -Wsign-compare
|
||||
38
app-misc/tmux/files/tmux-3.5-fix-xterm-sym.patch
Normal file
38
app-misc/tmux/files/tmux-3.5-fix-xterm-sym.patch
Normal file
@@ -0,0 +1,38 @@
|
||||
https://github.com/tmux/tmux/commit/934035db7197d4510b330df8d8963f78e9c8756d
|
||||
|
||||
From: nicm <nicm>
|
||||
Date: Mon, 14 Oct 2024 20:26:45 +0000
|
||||
Subject: [PATCH] Set ACS flag for REP. Reported by Romain Francoise, GitHub
|
||||
issue 4182.
|
||||
|
||||
--- a/input.c
|
||||
+++ b/input.c
|
||||
@@ -1145,7 +1145,6 @@ input_print(struct input_ctx *ictx)
|
||||
ictx->cell.cell.attr |= GRID_ATTR_CHARSET;
|
||||
else
|
||||
ictx->cell.cell.attr &= ~GRID_ATTR_CHARSET;
|
||||
-
|
||||
utf8_set(&ictx->cell.cell.data, ictx->ch);
|
||||
screen_write_collect_add(sctx, &ictx->cell.cell);
|
||||
|
||||
@@ -1349,7 +1348,7 @@ input_csi_dispatch(struct input_ctx *ictx)
|
||||
struct screen_write_ctx *sctx = &ictx->ctx;
|
||||
struct screen *s = sctx->s;
|
||||
struct input_table_entry *entry;
|
||||
- int i, n, m, ek;
|
||||
+ int i, n, m, ek, set;
|
||||
u_int cx, bg = ictx->cell.cell.bg;
|
||||
|
||||
if (ictx->flags & INPUT_DISCARD)
|
||||
@@ -1592,6 +1591,11 @@ input_csi_dispatch(struct input_ctx *ictx)
|
||||
if (~ictx->flags & INPUT_LAST)
|
||||
break;
|
||||
|
||||
+ set = ictx->cell.set == 0 ? ictx->cell.g0set : ictx->cell.g1set;
|
||||
+ if (set == 1)
|
||||
+ ictx->cell.cell.attr |= GRID_ATTR_CHARSET;
|
||||
+ else
|
||||
+ ictx->cell.cell.attr &= ~GRID_ATTR_CHARSET;
|
||||
utf8_copy(&ictx->cell.cell.data, &ictx->last);
|
||||
for (i = 0; i < n; i++)
|
||||
screen_write_collect_add(sctx, &ictx->cell.cell);
|
||||
9
app-misc/tmux/files/tmux.service
Normal file
9
app-misc/tmux/files/tmux.service
Normal file
@@ -0,0 +1,9 @@
|
||||
[Unit]
|
||||
Requires=tmux@%i.socket
|
||||
|
||||
[Service]
|
||||
ExecStart=/usr/bin/tmux -D
|
||||
|
||||
[Install]
|
||||
Also=tmux@%i.socket
|
||||
DefaultInstance=default
|
||||
8
app-misc/tmux/files/tmux.socket
Normal file
8
app-misc/tmux/files/tmux.socket
Normal file
@@ -0,0 +1,8 @@
|
||||
[Socket]
|
||||
ListenStream=/tmp/tmux-%U/%i
|
||||
DirectoryMode=0700
|
||||
SocketMode=0660
|
||||
|
||||
[Install]
|
||||
WantedBy=sockets.target
|
||||
DefaultInstance=default
|
||||
Reference in New Issue
Block a user