M scripts/core/sxmo_terminal.sh => scripts/core/sxmo_terminal.sh +13 -2
@@ 1,7 1,18 @@
#!/usr/bin/env sh
-
# shellcheck disable=SC2086
-set -- $TERMCMD "$@"
+
+if [ -n "$TERMNAME" ]; then
+ case "$TERMCMD" in
+ "st -e")
+ set -- st -T "$TERMNAME" -e "$@"
+ ;;
+ *)
+ printf "%s: '%s'\n" "Not implemented for TERMCMD" "$TERMCMD" >&2
+ set -- $TERMCMD "$@"
+ esac
+else
+ set -- $TERMCMD "$@"
+fi
if [ -z "$*" ]; then
echo "sxmo_terminal.sh called in TERMMODE without any arguments (returning, nothing to do)" >&2
M scripts/modem/sxmo_modemtext.sh => scripts/modem/sxmo_modemtext.sh +1 -1
@@ 76,7 76,7 @@ tailtextlog() {
CONTACTNAME="$(sxmo_contacts.sh | grep "^$NUMBER" | cut -d' ' -f2-)"
[ "Unknown Number" = "$CONTACTNAME" ] && CONTACTNAME="$CONTACTNAME ($NUMBER)"
- st -T "$NUMBER SMS" -e sh -c "tail -n9999 -f \"$LOGDIR/$NUMBER/sms.txt\" | sed \"s|$NUMBER|$CONTACTNAME|g\""
+ TERMNAME="$NUMBER SMS" sxmo_terminal.sh sh -c "tail -n9999 -f \"$LOGDIR/$NUMBER/sms.txt\" | sed \"s|$NUMBER|$CONTACTNAME|g\""
}
readtextmenu() {