Include -Wunreachable-code when building.
[sysvinit.git] / man / mesg.1
CommitLineData
a74aeac6
PR
1'\" -*- coding: UTF-8 -*-
2.\" Copyright (C) 1998-2001 Miquel van Smoorenburg.
3.\"
4.\" This program is free software; you can redistribute it and/or modify
5.\" it under the terms of the GNU General Public License as published by
6.\" the Free Software Foundation; either version 2 of the License, or
7.\" (at your option) any later version.
8.\"
9.\" This program is distributed in the hope that it will be useful,
10.\" but WITHOUT ANY WARRANTY; without even the implied warranty of
11.\" MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
12.\" GNU General Public License for more details.
13.\"
14.\" You should have received a copy of the GNU General Public License
15.\" along with this program; if not, write to the Free Software
16.\" Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
17.\"
18.\"{{{}}}
19.\"{{{ Title
20.TH MESG 1 "Feb 26, 2001" "" "Linux User's Manual"
21.\"}}}
22.\"{{{ Name
23.SH NAME
24mesg \- control write access to your terminal
25.\"}}}
26.\"{{{ Synopsis
27.SH SYNOPSIS
28.B mesg
29.RB [ y | n ]
30.\"}}}
31.\"{{{ Description
32.SH DESCRIPTION
33.B Mesg
34controls the access to your terminal by others. It's typically used to
35allow or disallow other users to write to your terminal (see \fBwrite\fP(1)).
36.\"}}}
37.\"{{{ Options
38.SH OPTIONS
39.IP \fBy\fP
40Allow write access to your terminal.
41.IP \fBn\fP
42Disallow write access to your terminal.
43.PP
44If no option is given, \fBmesg\fP prints out the current access state of your
45terminal.
46.\"}}}
47.\"{{{ Notes
48.SH NOTES
49\fBMesg\fP assumes that its standard input is connected to your
50terminal. That also means that if you are logged in multiple times,
51you can get/set the mesg status of other sessions by using redirection.
52For example "mesg n < /dev/pts/46".
53.SH AUTHOR
54Miquel van Smoorenburg (miquels@cistron.nl)
55.\"}}}
56.\"{{{ See also
57.SH "SEE ALSO"
58.BR talk (1),
59.BR write (1),
60.BR wall (1)
61.\"}}}