xref: /original-bsd/usr.bin/talk/talk.1 (revision 93bede30)
1.\" Copyright (c) 1983, 1990, 1993
2.\"	The Regents of the University of California.  All rights reserved.
3.\"
4.\" %sccs.include.redist.roff%
5.\"
6.\"     @(#)talk.1	8.1 (Berkeley) 06/06/93
7.\"
8.Dd
9.Dt TALK 1
10.Os BSD 4.2
11.Sh NAME
12.Nm talk
13.Nd talk to another user
14.Sh SYNOPSIS
15.Nm talk
16.Ar person
17.Op Ar ttyname
18.Sh DESCRIPTION
19.Nm Talk
20is a visual communication program which copies lines from your
21terminal to that of another user.
22.Pp
23Options available:
24.Bl -tag -width ttyname
25.It Ar person
26If you wish to talk to someone on your own machine, then
27.Ar person
28is just the person's login name.  If you wish to talk to a user on
29another host, then
30.Ar person
31is of the form
32.Ql user@host .
33.It Ar ttyname
34If you wish to talk to a user who is logged in more than once, the
35.Ar ttyname
36argument may be used to indicate the appropriate terminal
37name, where
38.Ar ttyname
39is of the form
40.Ql ttyXX .
41.El
42.Pp
43When first called,
44.Nm talk
45sends the message
46.Bd -literal -offset indent -compact
47Message from TalkDaemon@his_machine...
48talk: connection requested by your_name@your_machine.
49talk: respond with: talk your_name@your_machine
50.Ed
51.Pp
52to the user you wish to talk to. At this point, the recipient
53of the message should reply by typing
54.Pp
55.Dl talk \ your_name@your_machine
56.Pp
57It doesn't matter from which machine the recipient replies, as
58long as his login-name is the same.  Once communication is established,
59the two parties may type simultaneously, with their output appearing
60in separate windows.  Typing control-L
61.Ql ^L
62will cause the screen to
63be reprinted, while your erase, kill, and word kill characters will
64behave normally.  To exit, just type your interrupt character;
65.Nm talk
66then moves the cursor to the bottom of the screen and restores the
67terminal to its previous state.
68.Pp
69Permission to talk may be denied or granted by use of the
70.Xr mesg 1
71command.  At the outset talking is allowed.  Certain commands, in
72particular
73.Xr nroff 1
74and
75.Xr pr 1 ,
76disallow messages in order to
77prevent messy output.
78.Pp
79.Sh FILES
80.Bl -tag -width /var/run/utmp -compact
81.It Pa /etc/hosts
82to find the recipient's machine
83.It Pa /var/run/utmp
84to find the recipient's tty
85.El
86.Sh SEE ALSO
87.Xr mail 1 ,
88.Xr mesg 1 ,
89.Xr who 1 ,
90.Xr write 1
91.Sh BUGS
92The version of
93.Xr talk 1
94released with
95.Bx 4.3
96uses a protocol that
97is incompatible with the protocol used in the version released with
98.Bx 4.2 .
99.Sh HISTORY
100The
101.Nm
102command appeared in
103.Bx 4.2 .
104