catboy/chatte.1

381 lines
5.0 KiB
Groff
Raw Normal View History

.Dd September 8, 2018
.Dt CHATTE 1
.Os "Causal Agency"
2018-09-10 18:52:59 +00:00
.
.Sh NAME
.Nm chatte
.Nd IRC for catgirls
2018-09-10 18:52:59 +00:00
.
.Sh SYNOPSIS
.Nm
2018-10-28 06:44:09 +00:00
.Op Fl Nv
.Op Fl W Ar pass
.Op Fl h Ar host
.Op Fl j Ar chan
.Op Fl l Ar path
.Op Fl n Ar nick
.Op Fl p Ar port
.Op Fl u Ar user
.Op Fl w Ar pass
2018-09-10 18:52:59 +00:00
.
.Sh DESCRIPTION
.Nm
is a curses IRC client
which only supports TLS.
2018-09-10 18:52:59 +00:00
.
.Pp
The arguments are as follows:
2018-09-10 18:52:59 +00:00
.
.Bl -tag -width Ds
2018-10-28 06:44:09 +00:00
.It Fl N
Send notifications with
.Xr notify-send 1 .
.
.It Fl W Ar pass
Send
.Ql WEBIRC
command with
.Ar pass .
See
.Sx ENVIRONMENT
for details.
2018-09-10 18:52:59 +00:00
.
.It Fl h Ar host
Connect to
.Ar host .
.
.It Fl j Ar chan
Join
.Ar chan
after connecting.
.Ar chan
may be a comma-separated list.
2018-09-10 18:52:59 +00:00
.
.It Fl l Ar path
Log messages to subdirectories by target
and files by date under
.Ar path .
2018-09-10 18:52:59 +00:00
.
.It Fl n Ar nick
Set nickname to
.Ar nick .
2018-09-10 18:52:59 +00:00
.
.It Fl p Ar port
Connect to
.Ar port .
The default port is 6697.
2018-09-10 18:52:59 +00:00
.
.It Fl u Ar user
Set username to
.Ar user .
The default username is
the same as the nickname.
2018-09-10 18:52:59 +00:00
.
.It Fl v
Show raw IRC protocol in the
2018-10-23 06:48:58 +00:00
.Ql ~irc
view.
2018-09-10 18:52:59 +00:00
.
.It Fl w Ar pass
Log in with
.Ar pass .
.El
2018-09-10 18:52:59 +00:00
.
.Pp
If
.Fl h
or
.Fl n
are not provided,
they will be prompted for.
2018-09-10 18:52:59 +00:00
.
2018-09-10 06:01:30 +00:00
.Sh COMMANDS
2018-09-09 03:26:44 +00:00
Commands may be entered
as their shortest unique prefix.
A slash followed immediately by a number
is equivalent to
.Ic /view .
2018-09-10 18:52:59 +00:00
.
2018-09-09 03:26:44 +00:00
.Bl -tag
.It Ic /close
Close the current view.
All views after the current one
are renumbered.
2018-09-10 18:52:59 +00:00
.
2018-09-11 20:10:49 +00:00
.It Ic /help
Equivalent to
.Ic /man .
.
2018-09-09 03:26:44 +00:00
.It Ic /join Ar chan
Join a channel.
2018-09-10 18:52:59 +00:00
.
2018-09-10 23:18:26 +00:00
.It Ic /man
View this manual.
.
2018-09-09 03:26:44 +00:00
.It Ic /me Ar action
Send a CTCP
.Ql ACTION
to the current target.
2018-09-10 18:52:59 +00:00
.
2018-09-09 03:26:44 +00:00
.It Ic /names
List users in the current channel.
Equivalent to
.Ic /who .
2018-09-10 18:52:59 +00:00
.
2018-09-09 03:26:44 +00:00
.It Ic /nick Ar nick
Change nicknames.
2018-09-10 18:52:59 +00:00
.
2018-09-09 03:26:44 +00:00
.It Ic /open Op Ar range
Open
.Ar range
most recent URLs
appearing in the current view
with
.Xr open 1 .
.Ar range
may be a hypen- or comma-separated range
from the most recent URL,
starting at 1.
The default
.Ar range
is 1.
2018-09-10 18:52:59 +00:00
.
2018-09-11 18:36:30 +00:00
.It Ic /open Ar substring
Open the most recent URL
appearing in the current view
matching
.Ar substring
with
.Xr open 1 .
.
2018-09-09 03:26:44 +00:00
.It Ic /part
Leave the current channel.
2018-09-10 18:52:59 +00:00
.
2018-09-09 03:26:44 +00:00
.It Ic /query Ar nick
Open a private message view with
.Ar nick .
2018-09-10 18:52:59 +00:00
.
2018-09-09 03:26:44 +00:00
.It Ic /quit Op Ar message
Quit IRC.
The default
.Ar message
is
.Dq Goodbye .
2018-09-10 18:52:59 +00:00
.
2018-09-09 03:26:44 +00:00
.It Ic /topic Op Ar topic
Show the topic of the current channel
or set it to
.Ar topic .
2018-09-10 18:52:59 +00:00
.
2018-09-09 03:26:44 +00:00
.It Ic /url
Hide the UI and
list the most recent URLS
which appeared in the current view.
Press
2018-09-10 06:01:30 +00:00
.Aq Enter
2018-09-09 03:26:44 +00:00
to resume the UI.
2018-09-10 18:52:59 +00:00
.
2018-09-09 03:26:44 +00:00
.It Ic /view Ar num
Switch to view number
.Ar num .
2018-09-10 18:52:59 +00:00
.
2018-09-09 03:26:44 +00:00
.It Ic /view Ar name
Switch to view for
.Ar name .
2018-09-10 18:52:59 +00:00
.
2018-09-09 03:26:44 +00:00
.It Ic /who
List users in the current channel.
.El
2018-09-10 18:52:59 +00:00
.
2018-09-09 03:26:44 +00:00
.Pp
Additionally,
messages entered in the
2018-10-23 06:48:58 +00:00
.Ql ~irc
2018-09-09 03:26:44 +00:00
view
will be sent as raw IRC commands.
2018-09-10 18:52:59 +00:00
.
.Sh KEY BINDINGS
2018-09-10 06:01:30 +00:00
.Nm
provides Emacs-like
line editing keys,
as well as keys for entering
IRC formatting codes.
2018-09-10 18:52:59 +00:00
.
.Ss View Keys
2018-09-10 06:01:30 +00:00
.Bl -tag
.It Aq C-l
Redraw the UI.
2018-09-10 18:52:59 +00:00
.
.It Aq M-m
Insert a blank line in the view.
.
.It Ao M-0 Ac ... Ao M-9 Ac
2018-09-10 06:01:30 +00:00
Switch to view by number.
See
.Ic /view .
2018-09-10 18:52:59 +00:00
.
2018-09-10 06:01:30 +00:00
.It Aq S-Left
Scroll view up by one line.
2018-09-10 18:52:59 +00:00
.
2018-09-10 06:01:30 +00:00
.It Aq S-Right
Scroll view down by one line.
2018-09-10 18:52:59 +00:00
.
2018-09-10 06:01:30 +00:00
.It Aq PageUp
Scroll view up by half a page.
2018-09-10 18:52:59 +00:00
.
2018-09-10 06:01:30 +00:00
.It Aq PageDown
Scroll view down by half a page.
.El
2018-09-10 18:52:59 +00:00
.
.Ss Line Editing
.Bl -tag
2018-09-10 06:01:30 +00:00
.It Ao C-b Ac Ao Left Ac
Move cursor left.
2018-09-10 18:52:59 +00:00
.
2018-09-10 06:01:30 +00:00
.It Ao C-f Ac Ao Right Ac
Move cursor right.
2018-09-10 18:52:59 +00:00
.
2018-09-10 06:01:30 +00:00
.It Ao C-a Ac Ao Home Ac
Move cursor to beginning of line.
2018-09-10 18:52:59 +00:00
.
2018-09-10 06:01:30 +00:00
.It Ao C-e Ac Ao End Ac
Move cursor to end of line.
2018-09-10 18:52:59 +00:00
.
2018-09-10 06:01:30 +00:00
.It Aq M-b
Move cursor to beginning of word.
2018-09-10 18:52:59 +00:00
.
2018-09-10 06:01:30 +00:00
.It Aq M-f
Move cursor to end of word.
2018-09-10 18:52:59 +00:00
.
2018-09-10 06:01:30 +00:00
.It Aq Backspace
Delete character before cursor.
2018-09-10 18:52:59 +00:00
.
2018-09-10 06:01:30 +00:00
.It Ao C-d Ac Ao Delete Ac
Delete character under cursor.
2018-09-10 18:52:59 +00:00
.
2018-09-10 06:01:30 +00:00
.It Ao C-w Ac Ao M-Backspace Ac
Delete word before cursor.
2018-09-10 18:52:59 +00:00
.
2018-09-10 06:01:30 +00:00
.It Aq M-d
Delete word after cursor.
2018-09-10 18:52:59 +00:00
.
2018-09-10 06:01:30 +00:00
.It Aq C-k
Delete line after cursor.
2018-09-10 18:52:59 +00:00
.
2018-09-10 06:01:30 +00:00
.It Aq Tab
Cycle through completions
for commands, nicks and channels.
.El
2018-09-10 18:52:59 +00:00
.
.Ss IRC Formatting
.Bl -tag
2018-09-10 06:01:30 +00:00
.It Aq C-n
Reset formatting.
2018-09-10 18:52:59 +00:00
.
2018-09-10 06:01:30 +00:00
.It Aq C-o
Toggle bold.
Note: this may need to be typed as
.Aq C-v C-o .
2018-09-10 18:52:59 +00:00
.
2018-09-10 06:01:30 +00:00
.It Aq C-t
Toggle italic.
2018-09-10 18:52:59 +00:00
.
2018-09-10 06:01:30 +00:00
.It Aq C-u
Toggle underline.
2018-09-10 18:52:59 +00:00
.
2018-09-10 06:01:30 +00:00
.It Aq C-v
Toggle reverse video.
Note: this must usually be typed as
.Aq C-v C-v .
2018-09-10 18:52:59 +00:00
.
2018-09-10 06:01:30 +00:00
.It Aq C-r
Set or reset color.
.El
.
.Pp
To reset color,
follow
.Aq C-r
by a non-digit.
To set the foreground color,
follow
.Aq C-r
by one or two digits.
To set the foreground and background colors,
follow
.Aq C-r
by one or two digits,
a comma,
and one or two digits.
.
.Pp
The colors are as follows:
.Bl -tag -width Ds -compact
.It 0
white
.It 1
black
.It 2
blue
.It 3
green
.It 4
red
.It 5
brown (dark red)
.It 6
magenta
.It 7
orange (dark yellow)
.It 8
yellow
.It 9
light green
.It 10
cyan
.It 11
light cyan
.It 12
light blue
.It 13
pink (light magenta)
.It 14
gray
.It 15
light gray
2018-09-10 06:01:30 +00:00
.El
2018-09-10 18:52:59 +00:00
.
.Sh ENVIRONMENT
.Bl -tag
.It Ev SSH_CLIENT
If
.Fl W
is passed and
.Ev SSH_CLIENT
is set,
the
.Ql WEBIRC
command is used
to set the hostname
to the first word of
.Ev SSH_CLIENT ,
usually the client IP address.
.El
2018-09-10 18:52:59 +00:00
.
.Sh EXAMPLES
2018-09-11 20:10:49 +00:00
.Dl chatte -h ascii.town -j '&chatte'
2018-09-10 18:52:59 +00:00
.
.Sh STANDARDS
.Rs
.%A C. Kalt
.%T Internet Relay Chat: Client Protocol
.%I IETF
.%N RFC 2812
.%D April 2000
.%U https://tools.ietf.org/html/rfc2812
.Re
2018-09-10 18:52:59 +00:00
.
.Sh CAVEATS
.Nm
does not support unencrypted connections.