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