xref: /original-bsd/usr.bin/mesg/mesg.1 (revision c3e32dec)
1.\" Copyright (c) 1987, 1990, 1993
2.\"	The Regents of the University of California.  All rights reserved.
3.\"
4.\" %sccs.include.redist.roff%
5.\"
6.\"	@(#)mesg.1	8.1 (Berkeley) 06/06/93
7.\"
8.Dd
9.Dt MESG 1
10.Os
11.Sh NAME
12.Nm mesg
13.Nd display (do not display) messages from other users
14.Sh SYNOPSIS
15.Nm mesg
16.Op Cm n | Cm y
17.Sh DESCRIPTION
18The
19.Nm mesg
20utility is invoked by a users to control write access others
21have to the terminal device associated with the standard error
22output.
23Write access is allowed by default, and programs such as
24.Xr talk 1
25and
26.Xr write 1
27may display messages on the terminal.
28.Pp
29Options available:
30.Bl -tag -width flag
31.It Cm n
32Disallows messages.
33.It Cm y
34Permits messages to be displayed.
35.El
36.Pp
37If no arguments are given,
38.Nm mesg
39displays the present message status to the standard error output.
40.Pp
41The
42.Nm mesg
43utility exits with one of the following values:
44.Bl -tag -width flag -compact -offset indent
45.Pp
46.It Li "\ 0"
47Messages are allowed.
48.It Li "\ 1"
49Messages are not allowed.
50.It Li "\>1"
51An error has occurred.
52.El
53.Sh FILES
54.Bl -tag -width /dev/[pt]ty[pq]? -compact
55.It Pa /dev/[pt]ty[pq]?
56.El
57.Sh SEE ALSO
58.Xr biff 1 ,
59.Xr talk 1 ,
60.Xr write 1
61.Sh HISTORY
62A
63.Nm mesg
64command appeared in
65.At v6 .
66