@ -1453,8 +1453,8 @@ getterm() {
;;
*)
parent="$(ps -p ${1:-$PPID} -o ppid=)"
parent="$(grep -F "PPid:" "/proc/${1:-$PPID}/status")"
name="$(ps -p $parent -o comm=)"
name="$(< "/proc/${parent/PPid:[[:space:]]}/comm")"
esac