Check or set a terminal's ability to receive messages from other users, usually from the write command. See also write.
write
mesg
mesg n
mesg y