Annotation of src/usr.bin/talk/talk.1, Revision 1.13
1.13 ! hugh 1: .\" $OpenBSD: talk.1,v 1.12 2000/06/19 18:39:27 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
1.13 ! hugh 45: .Op Fl H
1.1 deraadt 46: .Ar person
47: .Op Ar ttyname
48: .Sh DESCRIPTION
1.10 aaron 49: .Nm
1.1 deraadt 50: is a visual communication program which copies lines from your
51: terminal to that of another user.
52: .Pp
1.8 aaron 53: The command arguments are as follows:
1.1 deraadt 54: .Bl -tag -width ttyname
55: .It Ar person
56: If you wish to talk to someone on your own machine, then
57: .Ar person
1.10 aaron 58: is just the person's login name.
59: If you wish to talk to a user on another host, then
1.1 deraadt 60: .Ar person
61: is of the form
62: .Ql user@host .
63: .It Ar ttyname
64: If you wish to talk to a user who is logged in more than once, the
65: .Ar ttyname
66: argument may be used to indicate the appropriate terminal
67: name, where
68: .Ar ttyname
69: is of the form
70: .Ql ttyXX .
71: .El
1.13 ! hugh 72: .Pp
! 73: If the
! 74: .Fl H
! 75: argument is given, talk will not escape high characters.
! 76: This may be useful for certain character sets, but could cause erratic
! 77: behaviour on some terminals.
1.1 deraadt 78: .Pp
79: When first called,
1.10 aaron 80: .Nm
1.1 deraadt 81: sends the message
1.10 aaron 82: .Pp
1.1 deraadt 83: .Bd -literal -offset indent -compact
1.5 pjanzen 84: Message from Talk_Daemon@localhost...
1.1 deraadt 85: talk: connection requested by your_name@your_machine.
86: talk: respond with: talk your_name@your_machine
87: .Ed
88: .Pp
1.11 aaron 89: to the user you wish to talk to.
90: At this point, the recipient of the message should reply by typing
1.1 deraadt 91: .Pp
92: .Dl talk \ your_name@your_machine
93: .Pp
94: It doesn't matter from which machine the recipient replies, as
1.10 aaron 95: long as the login name is the same.
96: If the machine is not the one to which
1.3 pjanzen 97: the talk request was sent, it is noted on the screen.
98: Once communication is established,
1.1 deraadt 99: the two parties may type simultaneously, with their output appearing
1.10 aaron 100: in separate windows.
101: Typing control-L
102: .Pq Ql ^L
1.1 deraadt 103: will cause the screen to
1.12 aaron 104: be reprinted, while the erase, kill, and word kill characters will
1.10 aaron 105: behave normally.
1.12 aaron 106: To exit, just type the interrupt character;
1.10 aaron 107: .Nm
1.1 deraadt 108: then moves the cursor to the bottom of the screen and restores the
109: terminal to its previous state.
110: .Pp
111: Permission to talk may be denied or granted by use of the
112: .Xr mesg 1
1.10 aaron 113: command.
114: At the outset talking is allowed.
115: Certain commands, in particular
1.1 deraadt 116: .Xr nroff 1
117: and
118: .Xr pr 1 ,
119: disallow messages in order to
120: prevent messy output.
121: .Sh FILES
122: .Bl -tag -width /var/run/utmp -compact
123: .It Pa /etc/hosts
124: to find the recipient's machine
125: .It Pa /var/run/utmp
126: to find the recipient's tty
127: .El
128: .Sh SEE ALSO
129: .Xr mail 1 ,
130: .Xr mesg 1 ,
131: .Xr who 1 ,
132: .Xr write 1
1.9 aaron 133: .Sh HISTORY
134: The
135: .Nm
136: command appeared in
137: .Bx 4.2 .
1.1 deraadt 138: .Sh BUGS
139: The version of
140: .Xr talk 1
141: released with
142: .Bx 4.3
143: uses a protocol that
144: is incompatible with the protocol used in the version released with
145: .Bx 4.2 .