Go to file
C. McEnroe 77a7c02435 Pass correct length to mbstowcs
Too used to sizeof being the right thing for regular strings.
2020-04-01 12:15:44 -04:00
scripts Replace int opt; while with for loop in sandman 2020-03-31 10:17:21 -04:00
.gitignore Add chroot target 2020-02-11 22:28:39 -05:00
LICENSE Add copy of GPL 2020-02-09 15:25:28 -05:00
Makefile Add /ignore message filtering patterns 2020-03-31 14:30:42 -04:00
README.7 Add note about building LibreSSL manually 2020-04-01 10:25:04 -04:00
catgirl.1 Add join/part/quit filtering example 2020-03-31 15:09:34 -04:00
chat.c Add /ignore message filtering patterns 2020-03-31 14:30:42 -04:00
chat.h Add /ignore message filtering patterns 2020-03-31 14:30:42 -04:00
command.c Add /ignore message filtering patterns 2020-03-31 14:30:42 -04:00
complete.c Various small cleanups 2020-02-16 23:05:43 -05:00
config.c Factor out XDG base directory code 2020-02-10 19:57:10 -05:00
configure Add -g for generating certificates 2020-02-13 01:39:25 -05:00
edit.c Pass correct length to mbstowcs 2020-04-01 12:15:44 -04:00
handle.c Add /ignore message filtering patterns 2020-03-31 14:30:42 -04:00
ignore.c Add /ignore message filtering patterns 2020-03-31 14:30:42 -04:00
irc.c Use the correct hostname in error message 2020-02-17 23:07:29 -05:00
log.c Add logging functions 2020-03-25 18:56:09 -04:00
ui.c Hide filtered messages 2020-03-31 14:31:10 -04:00
url.c Various small cleanups 2020-02-16 23:05:43 -05:00
xdg.c Add logging functions 2020-03-25 18:56:09 -04:00

README.7

.Dd March 31, 2020
.Dt README 7
.Os "Causal Agency"
.\" To view this file, run: man ./README.7
.
.Sh NAME
.Nm catgirl
.Nd IRC client
.
.Sh DESCRIPTION
.Xr catgirl 1
is a TLS-only terminal IRC client.
.
.Ss Notable Features
.Bl -bullet
.It
Tab complete:
most recently seen or mentioned nicks
are completed first.
Commas are inserted between multple nicks.
.It
Indicators:
the prompt clearly shows whether input
will be interpreted as a command
or sent as a message.
An indicator appears when scrolled up
in the chat history.
.It
Nick coloring:
color generation based on usernames
remains stable across nick changes.
Mentions of users in messages are colored.
.It
URL detection:
recent URLs from a particular user
or matching a substring
can be opened or copied.
.It
Ignore:
visibility of filtered messages
can be toggled.
.El
.
.Ss Non-features
.Bl -bullet
.It
Dynamic configuration:
all configuration happens
in a simple text file
or on the command line.
.It
Multi-network:
a terminal multiplexer such as
.Xr screen 1
or
.Xr tmux 1
(or just your regular terminal emulator tabs)
can be used to connect
.Nm
to multiple networks.
.It
Reconnection:
when the connection to the server is lost,
.Nm
exits.
It can be run in a loop
or connected to a bouncer,
such as
.Lk https://git.causal.agency/pounce "pounce" .
.It
CTCP:
apart from
.Sy ACTION ,
this protocol is useless at best
and enables abuse at worst.
.It
Cleartext IRC:
TLS is now ubiquitous
and certificates are easy to obtain.
.El
.
.Sh INSTALLING
.Nm
requires LibreSSL
.Pq Fl ltls
and ncurses
.Pq Fl lncursesw .
It primarily targets
.Fx
and macOS,
as well as Linux.
.Bd -literal -offset indent
\&./configure
make all
sudo make install PREFIX=/usr/local
.Ed
.
.Pp
If your system installs LibreSSL
in a non-standard path, set
.Ev PKG_CONFIG_PATH
for
.Nm ./configure .
For example,
.Bd -literal -offset indent
PKG_CONFIG_PATH=/opt/libressl/lib/pkgconfig ./configure
.Ed
.
.Pp
If your system is incapable of providing LibreSSL,
consider building it manually and installing to
.Pa /usr/local ,
making sure to add
.Pa /usr/local/lib
to
.Pa /etc/ld.so.conf
if necessary.
.
.Pp
The
.Nm sandman
wrapper is provided for macOS
to stop and start
.Nm
on system sleep and wake.
Install it as follows:
.Bd -literal -offset indent
make scripts/sandman
sudo make install-sandman
.Ed
.
.Sh FILES
.Bl -tag -width "complete.c" -compact
.It Pa chat.h
global state and declarations
.It Pa chat.c
startup and event loop
.It Pa irc.c
IRC connection and parsing
.It Pa ui.c
curses interface
.It Pa handle.c
IRC message handling
.It Pa command.c
input command handling
.It Pa edit.c
line editing
.It Pa complete.c
tab complete
.It Pa url.c
URL detection
.It Pa ignore.c
message filtering
.It Pa log.c
chat logging
.It Pa config.c
configuration parsing
.It Pa xdg.c
XDG base directories
.El
.
.Pp
.Bl -tag -width "scripts/notify-send.scpt" -compact
.It Pa scripts/sandman.m
sleep/wake wrapper for macOS
.It Pa scripts/notify-send.scpt
.Xr notify-send 1
in AppleScript
.It Pa scripts/chroot-prompt.sh
name prompt wrapper for chroot
.It Pa scripts/chroot-man.sh
.Xr man 1
implementation for chroot
.It Pa scripts/sshd_config
.Xr sshd 8
configuration for public chroot
.El
.
.Sh CONTRIBUTING
The upstream URL of this project is
.Aq Lk https://git.causal.agency/catgirl .
I'm happy to receive contributions in any form at
.Aq Mt june@causal.agency .
For sending patches by email, see
.Aq Lk https://git-send-email.io .
.
.Sh SEE ALSO
.Xr catgirl 1
.Pp
IRC bouncer:
.Lk https://git.causal.agency/pounce "pounce"
.
.\" To view this file, run: man ./README.7