diff --git a/do-not-send-eof-when-closing-application.patch b/do-not-send-eof-when-closing-application.patch new file mode 100644 index 0000000..a253d4c --- /dev/null +++ b/do-not-send-eof-when-closing-application.patch @@ -0,0 +1,17 @@ +diff --git a/pty/src/unix.rs b/pty/src/unix.rs +index cbe0f76..92bf82b 100644 +--- a/pty/src/unix.rs ++++ b/pty/src/unix.rs +@@ -396,9 +396,9 @@ impl Drop for UnixMasterWriter { + // EOF is only interpreted after a newline, so if it is set, + // we send a newline followed by EOF. + let eot = t.c_cc[libc::VEOF]; +- if eot != 0 { +- let _ = self.fd.0.write_all(&[b'\n', eot]); +- } ++ // if eot != 0 { ++ // let _ = self.fd.0.write_all(&[b'\n', eot]); ++ // } + } + } + } diff --git a/wezterm.changes b/wezterm.changes index 4e77d7b..5a23ee1 100644 --- a/wezterm.changes +++ b/wezterm.changes @@ -1,3 +1,10 @@ +------------------------------------------------------------------- +Sat Nov 18 21:57:26 UTC 2023 - Soc Virnyl Estela + +- Add do-not-send-eof-when-closing-application.patch + * resolves issue when closing app but also sends an EOF + to other multiplexers e.g. tmux, screen, zellij + ------------------------------------------------------------------- Sun Nov 12 07:56:01 UTC 2023 - Soc Virnyl Estela diff --git a/wezterm.spec b/wezterm.spec index a52217b..2d0fc20 100644 --- a/wezterm.spec +++ b/wezterm.spec @@ -27,6 +27,7 @@ URL: https://github.com/wez/wezterm License: (Apache-2.0 OR MIT) AND BSD-3-Clause AND (0BSD OR MIT OR Apache-2.0) AND (Apache-2.0 OR BSL-1.0) AND (Apache-2.0 OR BSL-1.0 OR MIT) AND (Apache-2.0 OR MIT) AND (Apache-2.0 OR MIT) AND (Apache-2.0 OR MIT OR BSD-2-Clause) AND (Apache-2.0 OR MIT OR Zlib) AND (Apache-2.0 OR MIT OR Zlib) AND (MIT OR Unlicense) AND (Apache-2.0 OR Zlib OR MIT) AND Apache-2.0 AND BSD-2-Clause AND BSD-3-Clause AND CC0-1.0 AND ISC AND LGPL-2.1-only AND MIT AND MPL-2.0 AND WTFPL AND Zlib AND MIT Source0: %{name}-%{version}.tar.zst Source1: vendor.tar.zst +Patch0: do-not-send-eof-when-closing-application.patch Requires: terminfo BuildRequires: Mesa-libEGL-devel @@ -108,7 +109,7 @@ BuildArch: noarch Zsh completion script for %{name}. %prep -%autosetup -a1 +%autosetup -a1 -p1 mkdir -p .cargo cp cargo_config .cargo/config tic -vvv -x -o terminfo termwiz/data/%{name}.terminfo