summary refs log tree commit diff
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--bin/man1/shotty.17
-rw-r--r--bin/shotty.l25
2 files changed, 1 insertions, 31 deletions
diff --git a/bin/man1/shotty.1 b/bin/man1/shotty.1
index 18cf52f6..0a3bd127 100644
--- a/bin/man1/shotty.1
+++ b/bin/man1/shotty.1
@@ -12,7 +12,6 @@
 .Op Fl b Ar bg
 .Op Fl f Ar fg
 .Op Fl h Ar rows
-.Op Fl t Ar ms
 .Op Fl w Ar cols
 .Op Ar file
 .
@@ -83,12 +82,6 @@ Hide the cursor.
 Copy the terminal size
 from the current terminal.
 .
-.It Fl t Ar ms
-Animate between snapshots
-at an interval of
-.Ar ms
-milliseconds.
-.
 .It Fl w Ar cols
 Set the terminal width.
 The default is 80.
diff --git a/bin/shotty.l b/bin/shotty.l
index 93e7f0ee..3d1d50c0 100644
--- a/bin/shotty.l
+++ b/bin/shotty.l
@@ -507,9 +507,8 @@ int main(int argc, char *argv[]) {
 	bool debug = false;
 	bool size = false;
 	bool hide = false;
-	int interval = 0;
 
-	for (int opt; 0 < (opt = getopt(argc, argv, "Bb:df:h:inst:w:"));) {
+	for (int opt; 0 < (opt = getopt(argc, argv, "Bb:df:h:insw:"));) {
 		switch (opt) {
 			break; case 'B': bright = true;
 			break; case 'b': defaultBg = atoi(optarg);
@@ -519,7 +518,6 @@ int main(int argc, char *argv[]) {
 			break; case 'i': colors = true;
 			break; case 'n': hide = true;
 			break; case 's': size = true;
-			break; case 't': interval = atoi(optarg);
 			break; case 'w': cols = atoi(optarg);
 			break; default:  return EX_USAGE;
 		}
@@ -561,25 +559,4 @@ int main(int argc, char *argv[]) {
 	}
 	if (hide) mode &= ~Cursor;
 	if (!mc) html();
-
-	if (interval) {
-		printf(
-			Q(
-				<script>
-				let frames = document.querySelectorAll("pre");
-				let frame = 0;
-				function animate() {
-					for (let i = 0; i < frames.length; ++i) {
-						frames[i].hidden = (i != frame);
-					}
-					frame++;
-					if (frame == frames.length) frame = 0;
-				}
-				animate();
-				setInterval(animate, %d);
-				</script>
-			),
-			interval
-		);
-	}
 }
fix the folder number onto these file names manually because they must have come out of a different scanner or something. 2024-09-15Add some more film stocks to the listJune McEnroe 2024-09-13Add photos from September 2June McEnroe 2024-09-13Add Fomapan 200 to films listJune McEnroe 2024-09-10Add August 29 picnic photosJune McEnroe 2024-09-08Apply some bold to trips renderingJune McEnroe This seems easier to visually scan. The only other thing I'd like is a nicer date rendering but JavaScript is useless for that. 2024-09-08Render trips hopefully more efficientlyJune McEnroe 2024-09-08Allow removing bodies and lensesJune McEnroe 2024-09-08Limit body width so it looks less silly on desktopJune McEnroe 2024-09-07Handle no film being loadedJune McEnroe 2024-09-07Fancy up the text a littleJune McEnroe