1*45a55154Ssevan.\" $NetBSD: mesg.1,v 1.11 2019/09/01 18:26:01 sevan Exp $ 27280395fSjtc.\" 37280395fSjtc.\" Copyright (c) 1987, 1990, 1993 47280395fSjtc.\" The Regents of the University of California. All rights reserved. 561f28255Scgd.\" 661f28255Scgd.\" Redistribution and use in source and binary forms, with or without 761f28255Scgd.\" modification, are permitted provided that the following conditions 861f28255Scgd.\" are met: 961f28255Scgd.\" 1. Redistributions of source code must retain the above copyright 1061f28255Scgd.\" notice, this list of conditions and the following disclaimer. 1161f28255Scgd.\" 2. Redistributions in binary form must reproduce the above copyright 1261f28255Scgd.\" notice, this list of conditions and the following disclaimer in the 1361f28255Scgd.\" documentation and/or other materials provided with the distribution. 1489aaa1bbSagc.\" 3. Neither the name of the University nor the names of its contributors 1561f28255Scgd.\" may be used to endorse or promote products derived from this software 1661f28255Scgd.\" without specific prior written permission. 1761f28255Scgd.\" 1861f28255Scgd.\" THIS SOFTWARE IS PROVIDED BY THE REGENTS AND CONTRIBUTORS ``AS IS'' AND 1961f28255Scgd.\" ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE 2061f28255Scgd.\" IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE 2161f28255Scgd.\" ARE DISCLAIMED. IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE LIABLE 2261f28255Scgd.\" FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL 2361f28255Scgd.\" DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS 2461f28255Scgd.\" OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) 2561f28255Scgd.\" HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT 2661f28255Scgd.\" LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY 2761f28255Scgd.\" OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF 2861f28255Scgd.\" SUCH DAMAGE. 2961f28255Scgd.\" 307280395fSjtc.\" @(#)mesg.1 8.1 (Berkeley) 6/6/93 3161f28255Scgd.\" 32*45a55154Ssevan.Dd September 1, 2019 3361f28255Scgd.Dt MESG 1 3461f28255Scgd.Os 3561f28255Scgd.Sh NAME 3661f28255Scgd.Nm mesg 377280395fSjtc.Nd display (do not display) messages from other users 3861f28255Scgd.Sh SYNOPSIS 3979adb0bcSlukem.Nm 4061f28255Scgd.Op Cm n | Cm y 4161f28255Scgd.Sh DESCRIPTION 4261f28255ScgdThe 4379adb0bcSlukem.Nm 44fdf1615bSmikelutility is invoked by a user to control write access others 457280395fSjtchave to the terminal device associated with the standard error 467280395fSjtcoutput. 477280395fSjtcWrite access is allowed by default, and programs such as 487280395fSjtc.Xr talk 1 4961f28255Scgdand 507280395fSjtc.Xr write 1 517280395fSjtcmay display messages on the terminal. 5261f28255Scgd.Pp 5361f28255ScgdOptions available: 5461f28255Scgd.Bl -tag -width flag 5561f28255Scgd.It Cm n 567280395fSjtcDisallows messages. 5761f28255Scgd.It Cm y 587280395fSjtcPermits messages to be displayed. 5961f28255Scgd.El 6061f28255Scgd.Pp 6161f28255ScgdIf no arguments are given, 6279adb0bcSlukem.Nm 637280395fSjtcdisplays the present message status to the standard error output. 6461f28255Scgd.Pp 6561f28255ScgdThe 6679adb0bcSlukem.Nm 6761f28255Scgdutility exits with one of the following values: 6861f28255Scgd.Pp 69c0940120Sjoerg.Bl -tag -width flag -compact -offset indent 7061f28255Scgd.It Li "\ 0" 7161f28255ScgdMessages are allowed. 7261f28255Scgd.It Li "\ 1" 7361f28255ScgdMessages are not allowed. 7456b14ee0Swiz.It Li ">1" 7561f28255ScgdAn error has occurred. 7661f28255Scgd.El 7761f28255Scgd.Sh FILES 7861f28255Scgd.Bl -tag -width /dev/[pt]ty[pq]? -compact 7961f28255Scgd.It Pa /dev/[pt]ty[pq]? 8061f28255Scgd.El 8161f28255Scgd.Sh SEE ALSO 827280395fSjtc.Xr biff 1 , 8361f28255Scgd.Xr talk 1 , 847280395fSjtc.Xr write 1 8561f28255Scgd.Sh HISTORY 8661f28255ScgdA 8779adb0bcSlukem.Nm 8861f28255Scgdcommand appeared in 89*45a55154Ssevan.At v1 . 90