---
 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
@@ -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)
@@ -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
@@ -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
@@ -0,0 +1,4 @@
+#!/bin/sh
+
+st -e tmux "$@"
+
diff --git a/st.1 b/st.1
index 39120b4..ef0d379 100644
--- a/st.1
+++ b/st.1
@@ -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
@@ -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


Reply via email to