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