Annotation of src/usr.bin/talk/talk.1, Revision 1.8
1.8 ! aaron 1: .\" $OpenBSD: talk.1,v 1.7 1999/07/03 02:11:09 aaron Exp $
1.1 deraadt 2: .\" $NetBSD: talk.1,v 1.3 1994/12/09 02:14:23 jtc Exp $
3: .\"
4: .\" Copyright (c) 1983, 1990, 1993
5: .\" The Regents of the University of California. All rights reserved.
6: .\"
7: .\" Redistribution and use in source and binary forms, with or without
8: .\" modification, are permitted provided that the following conditions
9: .\" are met:
10: .\" 1. Redistributions of source code must retain the above copyright
11: .\" notice, this list of conditions and the following disclaimer.
12: .\" 2. Redistributions in binary form must reproduce the above copyright
13: .\" notice, this list of conditions and the following disclaimer in the
14: .\" documentation and/or other materials provided with the distribution.
15: .\" 3. All advertising materials mentioning features or use of this software
16: .\" must display the following acknowledgement:
17: .\" This product includes software developed by the University of
18: .\" California, Berkeley and its contributors.
19: .\" 4. Neither the name of the University nor the names of its contributors
20: .\" may be used to endorse or promote products derived from this software
21: .\" without specific prior written permission.
22: .\"
23: .\" THIS SOFTWARE IS PROVIDED BY THE REGENTS AND CONTRIBUTORS ``AS IS'' AND
24: .\" ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
25: .\" IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
26: .\" ARE DISCLAIMED. IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE LIABLE
27: .\" FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
28: .\" DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
29: .\" OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
30: .\" HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
31: .\" LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
32: .\" OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
33: .\" SUCH DAMAGE.
34: .\"
35: .\" @(#)talk.1 8.1 (Berkeley) 6/6/93
36: .\"
37: .Dd June 6, 1993
38: .Dt TALK 1
1.6 aaron 39: .Os
1.1 deraadt 40: .Sh NAME
41: .Nm talk
42: .Nd talk to another user
43: .Sh SYNOPSIS
44: .Nm talk
45: .Ar person
46: .Op Ar ttyname
47: .Sh DESCRIPTION
1.4 aaron 48: .Nm talk
1.1 deraadt 49: is a visual communication program which copies lines from your
50: terminal to that of another user.
51: .Pp
1.8 ! aaron 52: The command arguments are as follows:
1.1 deraadt 53: .Bl -tag -width ttyname
54: .It Ar person
55: If you wish to talk to someone on your own machine, then
56: .Ar person
57: is just the person's login name. If you wish to talk to a user on
58: another host, then
59: .Ar person
60: is of the form
61: .Ql user@host .
62: .It Ar ttyname
63: If you wish to talk to a user who is logged in more than once, the
64: .Ar ttyname
65: argument may be used to indicate the appropriate terminal
66: name, where
67: .Ar ttyname
68: is of the form
69: .Ql ttyXX .
70: .El
71: .Pp
72: When first called,
73: .Nm talk
74: sends the message
75: .Bd -literal -offset indent -compact
1.5 pjanzen 76: Message from Talk_Daemon@localhost...
1.1 deraadt 77: talk: connection requested by your_name@your_machine.
78: talk: respond with: talk your_name@your_machine
79: .Ed
80: .Pp
81: to the user you wish to talk to. At this point, the recipient
82: of the message should reply by typing
83: .Pp
84: .Dl talk \ your_name@your_machine
85: .Pp
86: It doesn't matter from which machine the recipient replies, as
1.5 pjanzen 87: long as the login name is the same. If the machine is not the one to which
1.3 pjanzen 88: the talk request was sent, it is noted on the screen.
89: Once communication is established,
1.1 deraadt 90: the two parties may type simultaneously, with their output appearing
91: in separate windows. Typing control-L
92: .Ql ^L
93: will cause the screen to
94: be reprinted, while your erase, kill, and word kill characters will
95: behave normally. To exit, just type your interrupt character;
96: .Nm talk
97: then moves the cursor to the bottom of the screen and restores the
98: terminal to its previous state.
99: .Pp
100: Permission to talk may be denied or granted by use of the
101: .Xr mesg 1
102: command. At the outset talking is allowed. Certain commands, in
103: particular
104: .Xr nroff 1
105: and
106: .Xr pr 1 ,
107: disallow messages in order to
108: prevent messy output.
109: .Sh FILES
110: .Bl -tag -width /var/run/utmp -compact
111: .It Pa /etc/hosts
112: to find the recipient's machine
113: .It Pa /var/run/utmp
114: to find the recipient's tty
115: .El
116: .Sh SEE ALSO
117: .Xr mail 1 ,
118: .Xr mesg 1 ,
119: .Xr who 1 ,
120: .Xr write 1
121: .Sh BUGS
122: The version of
123: .Xr talk 1
124: released with
125: .Bx 4.3
126: uses a protocol that
127: is incompatible with the protocol used in the version released with
128: .Bx 4.2 .
129: .Sh HISTORY
130: The
131: .Nm
132: command appeared in
133: .Bx 4.2 .