xref: /netbsd-src/usr.bin/talk/talk.1 (revision e3717c1851b6a406aec6c8ba8e410cc6787edc27)
1*e3717c18Schristos.\"	$NetBSD: talk.1,v 1.9 2007/01/08 17:10:59 christos Exp $
251207773Sjtc.\"
351207773Sjtc.\" Copyright (c) 1983, 1990, 1993
451207773Sjtc.\"	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.\"
3051207773Sjtc.\"     @(#)talk.1	8.1 (Berkeley) 6/6/93
3161f28255Scgd.\"
32*e3717c18Schristos.Dd January 7, 2007
3361f28255Scgd.Dt TALK 1
349e44e9b5Sgarbled.Os
3561f28255Scgd.Sh NAME
3661f28255Scgd.Nm talk
3761f28255Scgd.Nd talk to another user
3861f28255Scgd.Sh SYNOPSIS
3932a9e65fSlukem.Nm
4061f28255Scgd.Ar person
4161f28255Scgd.Op Ar ttyname
4261f28255Scgd.Sh DESCRIPTION
4332a9e65fSlukem.Nm
4461f28255Scgdis a visual communication program which copies lines from your
4561f28255Scgdterminal to that of another user.
4661f28255Scgd.Pp
4761f28255ScgdOptions available:
4861f28255Scgd.Bl -tag -width ttyname
4961f28255Scgd.It Ar person
5061f28255ScgdIf you wish to talk to someone on your own machine, then
5161f28255Scgd.Ar person
52be8ae688Sgrantis just the person's login name.
53be8ae688SgrantIf you wish to talk to a user on another host, then
5461f28255Scgd.Ar person
5561f28255Scgdis of the form
5661f28255Scgd.Ql user@host .
5761f28255Scgd.It Ar ttyname
5861f28255ScgdIf you wish to talk to a user who is logged in more than once, the
5961f28255Scgd.Ar ttyname
6061f28255Scgdargument may be used to indicate the appropriate terminal
6161f28255Scgdname, where
6261f28255Scgd.Ar ttyname
6361f28255Scgdis of the form
6461f28255Scgd.Ql ttyXX .
6561f28255Scgd.El
6661f28255Scgd.Pp
6761f28255ScgdWhen first called,
6832a9e65fSlukem.Nm
6961f28255Scgdsends the message
7061f28255Scgd.Bd -literal -offset indent -compact
7161f28255ScgdMessage from TalkDaemon@his_machine...
7261f28255Scgdtalk: connection requested by your_name@your_machine.
7361f28255Scgdtalk: respond with: talk your_name@your_machine
7461f28255Scgd.Ed
7561f28255Scgd.Pp
76be8ae688Sgrantto the user you wish to talk to.
77be8ae688SgrantAt this point, the recipient
7861f28255Scgdof the message should reply by typing
7961f28255Scgd.Pp
8061f28255Scgd.Dl talk \ your_name@your_machine
8161f28255Scgd.Pp
8261f28255ScgdIt doesn't matter from which machine the recipient replies, as
83be8ae688Sgrantlong as his login-name is the same.
84be8ae688SgrantOnce communication is established,
8561f28255Scgdthe two parties may type simultaneously, with their output appearing
86be8ae688Sgrantin separate windows.
87be8ae688SgrantTyping control-L
8861f28255Scgd.Ql ^L
8961f28255Scgdwill cause the screen to
9061f28255Scgdbe reprinted, while your erase, kill, and word kill characters will
91be8ae688Sgrantbehave normally.
92be8ae688SgrantTo exit, just type your interrupt character;
9332a9e65fSlukem.Nm
9461f28255Scgdthen moves the cursor to the bottom of the screen and restores the
9561f28255Scgdterminal to its previous state.
9661f28255Scgd.Pp
9761f28255ScgdPermission to talk may be denied or granted by use of the
9861f28255Scgd.Xr mesg 1
99be8ae688Sgrantcommand.
100be8ae688SgrantAt the outset talking is allowed.
101be8ae688SgrantCertain commands, in
10261f28255Scgdparticular
10361f28255Scgd.Xr nroff 1
10461f28255Scgdand
10561f28255Scgd.Xr pr 1 ,
10661f28255Scgddisallow messages in order to
10761f28255Scgdprevent messy output.
108*e3717c18Schristos.Sh ENVIRONMENT
109*e3717c18SchristosIf the
110*e3717c18Schristos.Ev TALKHOST
111*e3717c18Schristosenvironment variable is set, its value is used as the
112*e3717c18Schristos.Ar hostname
113*e3717c18Schristosthe
114*e3717c18Schristos.Nm
115*e3717c18Schristospackets appear to be originating from.
116*e3717c18SchristosThis is useful if you wish to talk to someone on another machine and
117*e3717c18Schristosyour internal hostname does not resolve to the address of your
118*e3717c18Schristosexternal interface as seen from the other machine.
11961f28255Scgd.Sh FILES
12061f28255Scgd.Bl -tag -width /var/run/utmp -compact
12161f28255Scgd.It Pa /etc/hosts
12261f28255Scgdto find the recipient's machine
12361f28255Scgd.It Pa /var/run/utmp
12461f28255Scgdto find the recipient's tty
12561f28255Scgd.El
12661f28255Scgd.Sh SEE ALSO
12761f28255Scgd.Xr mail 1 ,
12861f28255Scgd.Xr mesg 1 ,
12961f28255Scgd.Xr who 1 ,
13061f28255Scgd.Xr write 1
131001cc25bSwiz.Sh HISTORY
132001cc25bSwizThe
133001cc25bSwiz.Nm
134001cc25bSwizcommand appeared in
135001cc25bSwiz.Bx 4.2 .
13661f28255Scgd.Sh BUGS
13761f28255ScgdThe version of
138*e3717c18Schristos.Nm
13961f28255Scgdreleased with
14061f28255Scgd.Bx 4.3
14161f28255Scgduses a protocol that
14261f28255Scgdis incompatible with the protocol used in the version released with
14361f28255Scgd.Bx 4.2 .
144