summary refs log tree commit diff
path: root/bin
diff options
context:
space:
mode:
Diffstat (limited to 'bin')
-rw-r--r--bin/.gitignore1
-rw-r--r--bin/Makefile1
-rw-r--r--bin/README3
-rw-r--r--bin/bin.75
-rw-r--r--bin/man1/shotty.148
5 files changed, 56 insertions, 2 deletions
diff --git a/bin/.gitignore b/bin/.gitignore
index 40cd902e..b9083639 100644
--- a/bin/.gitignore
+++ b/bin/.gitignore
@@ -29,6 +29,7 @@ scheme
 scheme.h
 scheme.png
 setopt
+shotty
 tags
 ttpre
 up
diff --git a/bin/Makefile b/bin/Makefile
index 322e6c43..52d470f6 100644
--- a/bin/Makefile
+++ b/bin/Makefile
@@ -31,6 +31,7 @@ BINS += psf2png
 BINS += ptee
 BINS += scheme
 BINS += setopt
+BINS += shotty
 BINS += ttpre
 BINS += up
 BINS += wake
diff --git a/bin/README b/bin/README
index 29a20e30..c178f342 100644
--- a/bin/README
+++ b/bin/README
@@ -28,6 +28,7 @@ DESCRIPTION
      ptee(1)     tee for PTYs
      relay(1)    IRC relay
      scheme(1)   color scheme
+     shotty(1)   terminal capture
      ttpre(1)    man output to HTML
      up(1)       upload file
      wake(1)     wake-on-LAN
@@ -40,4 +41,4 @@ DESCRIPTION
            GFX=fb
            GFX=x11
 
-Causal Agency                    July 8, 2019                    Causal Agency
+Causal Agency                    July 9, 2019                    Causal Agency
diff --git a/bin/bin.7 b/bin/bin.7
index e3bbbb7c..ac34b97c 100644
--- a/bin/bin.7
+++ b/bin/bin.7
@@ -1,4 +1,4 @@
-.Dd July 8, 2019
+.Dd July 9, 2019
 .Dt BIN 7
 .Os "Causal Agency"
 .
@@ -79,6 +79,9 @@ IRC relay
 .It Xr scheme 1
 color scheme
 .
+.It Xr shotty 1
+terminal capture
+.
 .It Xr ttpre 1
 man output to HTML
 .
diff --git a/bin/man1/shotty.1 b/bin/man1/shotty.1
new file mode 100644
index 00000000..7500f20b
--- /dev/null
+++ b/bin/man1/shotty.1
@@ -0,0 +1,48 @@
+.Dd July 9, 2019
+.Dt SHOTTY 1
+.Os
+.
+.Sh NAME
+.Nm shotty
+.Nd terminal capture
+.
+.Sh SYNOPSIS
+.Nm
+.Op Fl b Ar bg
+.Op Fl f Ar fg
+.Op Fl h Ar rows
+.Op Fl w Ar cols
+.Op Ar file
+.
+.Sh DESCRIPTION
+.Nm
+interprets terminal output from
+.Ar file
+or standard input
+and produces HTML
+.Sy <pre>
+on standard output.
+Terminal output can be captured with
+.Xr ptee 1 .
+.
+.Pp
+The arguments are as follows:
+.Bl -tag -width "-w cols"
+.It Fl b Ar bg
+Set the default background color.
+The default value is 0 (black).
+.It Fl f Ar fg
+Set the default foreground color.
+The default value is 7 (white).
+.It Fl h Ar rows
+Set the terminal height.
+If unset,
+the height of the current terminal is used.
+.It Fl w Ar cols
+Set the terminal width.
+If unset,
+the width of the current terminal is used.
+.El
+.
+.Sh SEE ALSO
+.Xr ptee 1