6 mesg_cmd
=`which -a mesg | grep -vx "$0" | head -n1`
8 if [ -n "$STY" -a -n "$GNUSCREEN_WINDOWID" ]
10 pty
=`screen -S "$STY" -p "$GNUSCREEN_WINDOWID" -Q @echo -p %T`
12 if ! expr + "$*" : '.*\(-q\|--quiet\)' >/dev
/null
14 echo "mesg: screen tty is $pty" >&2
17 "$mesg_cmd" "$@" < "/dev/$pty"
21 [ "$1" = y
] && login
=on || login
=off
22 screen
-S "$STY" -p "$GNUSCREEN_WINDOWID" -X @login
$login