xrsh-buildroot/buildroot-v86/board/v86/rootfs_overlay/root/bin/save

15 lines
346 B
Bash
Executable File

#!/bin/sh
source /etc/profile.sh
javascript='
const isoterminal = document.querySelector("[isoterminal]").components.isoterminal.term
isoterminal.save()
return "[OK] xrsh state saved\n"
'
echo "[i] triggering ~/hook.d/save/* scripts"
hook save
echo "[i] warning: do not resize the browserwindow"
echo "[i] please wait.."
js "$javascript"