[hackers] [st][PATCH] Solve scrollback issues in st once and for all.

From: Christoph Lohmann <20h_AT_r-36.net>
Date: Sun, 9 Jan 2022 16:51:57 +0100

---
 Makefile      | 3 +++
 st-scrollback | 4 ++++
 st.1          | 8 ++++++++
 3 files changed, 15 insertions(+)
 create mode 100755 st-scrollback
diff --git a/Makefile b/Makefile
index 470ac86..44f84d1 100644
--- a/Makefile
+++ b/Makefile
_AT_@ -36,6 +36,7 @@ dist: clean
 	mkdir -p st-$(VERSION)
 	cp -R FAQ LEGACY TODO LICENSE Makefile README config.mk\
 		config.def.h st.info st.1 arg.h st.h win.h $(SRC)\
+		st-scrollback \
 		st-$(VERSION)
 	tar -cf - st-$(VERSION) | gzip > st-$(VERSION).tar.gz
 	rm -rf st-$(VERSION)
_AT_@ -43,6 +44,7 @@ dist: clean
 install: st
 	mkdir -p $(DESTDIR)$(PREFIX)/bin
 	cp -f st $(DESTDIR)$(PREFIX)/bin
+	cp -f st-scrollback $(DESTDIR)$(PREFIX)/bin
 	chmod 755 $(DESTDIR)$(PREFIX)/bin/st
 	mkdir -p $(DESTDIR)$(MANPREFIX)/man1
 	sed "s/VERSION/$(VERSION)/g" < st.1 > $(DESTDIR)$(MANPREFIX)/man1/st.1
_AT_@ -52,6 +54,7 @@ install: st
 
 uninstall:
 	rm -f $(DESTDIR)$(PREFIX)/bin/st
+	rm -f $(DESTDIR)$(PREFIX)/bin/st-scrollback
 	rm -f $(DESTDIR)$(MANPREFIX)/man1/st.1
 
 .PHONY: all options clean dist install uninstall
diff --git a/st-scrollback b/st-scrollback
new file mode 100755
index 0000000..a467ff8
--- /dev/null
+++ b/st-scrollback
_AT_@ -0,0 +1,4 @@
+#!/bin/sh
+
+st -e tmux "$_AT_"
+
diff --git a/st.1 b/st.1
index 39120b4..ef0d379 100644
--- a/st.1
+++ b/st.1
_AT_@ -159,6 +159,13 @@ Copy the selected text to the clipboard selection.
 .TP
 .B Ctrl-Shift-v
 Paste from the clipboard selection.
+.SH SCROLLBACK
+.B st-scrollback
+will be installed for all your scrollback needs. It is using
+.B tmux
+for scrollback and more features. All options and parameters for
+.B st
+apply here too, it is just a wrapper script.
 .SH CUSTOMIZATION
 .B st
 can be customized by creating a custom config.h and (re)compiling the source
_AT_@ -172,6 +179,7 @@ See the LICENSE file for the terms of redistribution.
 .BR utmp (1),
 .BR stty (1),
 .BR scroll (1)
+.BR tmux (1)
 .SH BUGS
 See the TODO file in the distribution.
 
-- 
2.30.1
Received on Sun Jan 09 2022 - 16:51:57 CET

This archive was generated by hypermail 2.3.0 : Sun Jan 09 2022 - 17:00:37 CET