summary refs log tree commit diff
diff options
context:
space:
mode:
authorJune McEnroe <june@causal.agency>2021-10-20 17:27:22 -0400
committerJune McEnroe <june@causal.agency>2021-10-20 17:27:22 -0400
commit37d63000c1c59dcf65980b0d2477fe601d1cf644 (patch)
treefa7b0e55e98c0d39ea9d313d1edf71ade9c00510
parentFix showing cursor with default colors (diff)
downloadsrc-37d63000c1c59dcf65980b0d2477fe601d1cf644.tar.gz
src-37d63000c1c59dcf65980b0d2477fe601d1cf644.zip
Run shotty after ptee in up -t
To avoid shotty warnings for unhandled sequences interfering with
the screen.
-rw-r--r--bin/up.sh3
1 files changed, 2 insertions, 1 deletions
diff --git a/bin/up.sh b/bin/up.sh
index ebe8a69e..cebc29c4 100644
--- a/bin/up.sh
+++ b/bin/up.sh
@@ -59,7 +59,8 @@ uploadTerminal() {
 	$(scheme -s)
 	</style>
 	EOF
-	ptee $SHELL -c "$1" | shotty -Bs >>"${temp}/term.html"
+	ptee $SHELL -c "$1" >"${temp}/term.pty"
+	shotty -Bs "${temp}/term.pty" >>"${temp}/term.html"
 	upload "${temp}/term.html"
 }