xref: /original-bsd/usr.bin/mesg/mesg.1 (revision cd89438c)
1.\" Copyright (c) 1987, 1990 The Regents of the University of California.
2.\" All rights reserved.
3.\"
4.\" %sccs.include.redist.man%
5.\"
6.\"     @(#)mesg.1	6.6 (Berkeley) 03/14/91
7.\"
8.Vx
9.Vx
10.Dd
11.Dt MESG 1
12.Os
13.Sh NAME
14.Nm mesg
15.Nd  Display (do not display) messages from other users
16.Sh SYNOPSIS
17.Nm mesg
18.Op Cm n Li \&| Cm y
19.Sh DESCRIPTION
20The
21.Nm mesg
22utility allows a user to decide if other users may write
23messages to his or her screen.  Programs such as
24.Xr talk 1 ,
25.Xr write 1
26and
27.Xr echo 1
28are social and display a message on the target user's terminal.
29Sometimes this is inconvenient.
30.Pp
31Options:
32.Tw Ds
33.Tp Cm n
34Disallow messages, providing peace, and informing the contacting
35party
36that `Your party is refusing messages'.
37.Tp Cm y
38Allow messages to be displayed.
39.Tp
40.Pp
41If no arguments are given,
42.Nm mesg
43displays the present message status.
44.Pp
45The
46.Nm mesg
47utility exits with one of the following values:
48.Dw Ds
49.Dp Li \&\ 0
50messages are allowed
51.Dp Li \&\ 1
52messages are not allowed
53.Dp Li \&\-\&1
54An error has occurred.
55.Dp
56.Sh FILES
57.Dw /dev/[pt]ty[pq]?
58.Di L
59.Dp Pa /dev/[pt]ty[pq]?
60.Dp
61.Sh SEE ALSO
62.Xr write 1 ,
63.Xr talk 1 ,
64.Xr echo 1 ,
65.Xr biff 1
66.Sh HISTORY
67A
68.Nm mesg
69command appeared in Version 6 AT&T Unix.
70