Compare commits
No commits in common. "main" and "main" have entirely different histories.
6 changed files with 234 additions and 769 deletions
4
AUTHORS
4
AUTHORS
|
|
@ -1,4 +0,0 @@
|
|||
murx authors
|
||||
|
||||
Armin Jenewein <a@bsd.pm> - Founder
|
||||
Johannes Findeisen <you@hanez.org> - Contributor
|
||||
13
LICENSE
13
LICENSE
|
|
@ -1,13 +0,0 @@
|
|||
Copyright 2026 Armin Jenewein
|
||||
|
||||
Licensed under the Apache License, Version 2.0 (the "License");
|
||||
you may not use this file except in compliance with the License.
|
||||
You may obtain a copy of the License at
|
||||
|
||||
http://www.apache.org/licenses/LICENSE-2.0
|
||||
|
||||
Unless required by applicable law or agreed to in writing, software
|
||||
distributed under the License is distributed on an "AS IS" BASIS,
|
||||
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
See the License for the specific language governing permissions and
|
||||
limitations under the License.
|
||||
97
README.md
97
README.md
|
|
@ -4,7 +4,7 @@
|
|||
|
||||
A deliberately minimal console IRC client in C. No network list, no settings
|
||||
commands, no plugins. Just servers, windows, timestamps, and two keys to move
|
||||
around + some more keys you can use.
|
||||
around.
|
||||
|
||||
## Build and run
|
||||
|
||||
|
|
@ -12,24 +12,16 @@ around + some more keys you can use.
|
|||
make
|
||||
./irc9 # finds a config automatically (see below)
|
||||
./irc9 myconfig.conf # or point at a config explicitly
|
||||
./irc9 -s myconfig.conf # hide channel activity notices
|
||||
./irc9 -s myconfig.conf # hide join and quit notices in channel windows
|
||||
```
|
||||
|
||||
`-v` and `--version` print the program version. `-h` and `--help` print the
|
||||
version and command-line usage.
|
||||
|
||||
`-s` and `--silent` hide channel join, quit, leave, and sync notices, as well as
|
||||
nickname-change and mode-change notices.
|
||||
`-s` and `--silent` hide JOIN and QUIT notices in channel windows.
|
||||
`-C` and `--colored` color nicknames in channel and private chats and in
|
||||
nicklists. Your own nick is always green in this mode, including in the status
|
||||
line.
|
||||
Use `-c RRGGBB` or `--color RRGGBB` to replace the default cyan accent on
|
||||
the channel tree and divider. For example, `./irc9 --color FF8800` uses
|
||||
orange on terminals with true-color support.
|
||||
Use `--scrollback LINES` to set how many lines each window retains. The default
|
||||
is 500 lines. For example, `./irc9 --scrollback 2000` keeps 2000 lines per window.
|
||||
Use `--history` to save submitted slash commands to `~/.irc9_history` and
|
||||
recall the 64 most recent commands with Up and Down across sessions.
|
||||
|
||||
With no config path, irc9 looks next to the executable, in this order:
|
||||
`irc9rc`, `config`, then `~/.irc9rc`. Paths are relative to the binary, not to
|
||||
|
|
@ -46,7 +38,7 @@ lines marked `ssl`/`tls` cannot connect.
|
|||
|
||||
## Configuration
|
||||
|
||||
One file, ten active keywords:
|
||||
One file, nine active keywords:
|
||||
|
||||
```
|
||||
nick irc9user
|
||||
|
|
@ -56,22 +48,16 @@ real Happy irc9 User
|
|||
|
||||
# Libera and OFTC use TLS on 6697. Use port 6667 without the ssl keyword for
|
||||
# plain TCP. The optional sasl line applies to the server above it; the SASL
|
||||
# user is your account name. An optional autocommand runs after registration on
|
||||
# the server above it, before startup channel joins. Separate slash commands with
|
||||
# commas. irc9 waits two seconds between commands.
|
||||
# user is your account name. An optional autocommand sends one raw IRC command
|
||||
# after registration on the server above it, before startup channel joins.
|
||||
|
||||
# libera
|
||||
server irc.libera.chat 6697 ssl
|
||||
name Libera Chat
|
||||
# Suppress incoming messages from these nicknames on this server.
|
||||
# blacklist user1,user2,user3
|
||||
# sasl irc9user my-sasl-password
|
||||
# autocommand /query user1,/query user2
|
||||
# autocommand /msg NickServ IDENTIFY irc9user $PASSWORD
|
||||
# Build with make -B AUTOJOIN=1 and uncomment channel lines to join at startup.
|
||||
# Each channel line applies to the server above it.
|
||||
# Optional comma-separated slash commands run after the channel join succeeds.
|
||||
# irc9 waits two seconds between commands on the same line.
|
||||
# channel #channel /msg ChanServ OP #channel nickname,/mode #channel
|
||||
channel #irc9
|
||||
# channel #murx
|
||||
# channel #zynk
|
||||
|
|
@ -93,34 +79,21 @@ server <host> [port] [ssl|tls]
|
|||
An optional `name <display name>` line below `server` sets its label in the
|
||||
channel tree. The label defaults to the hostname.
|
||||
|
||||
Add `blacklist user1,user2,user3` below a `server` line to suppress incoming
|
||||
channel messages, private messages, and notices from those nicknames on that
|
||||
server. Matching is case-insensitive. You can add multiple blacklist lines
|
||||
for the same server.
|
||||
|
||||
The port defaults to `6667`. The optional third token `ssl` or `tls` enables
|
||||
TLS; use port `6697` for Libera and OFTC. A `sasl <user> <pass>` line applies to
|
||||
the most recent `server` line and enables SASL PLAIN for that server only. The
|
||||
SASL user is your account name (for many people this is the same as the nick).
|
||||
|
||||
Place an optional `autocommand` below the corresponding `server` line,
|
||||
immediately after its `sasl` line when present. For example,
|
||||
`autocommand /query user1,/query user2` opens two query windows, two seconds apart.
|
||||
A comma followed by a slash, with optional spaces or tabs between them, starts
|
||||
the next command. The first command can also use raw IRC syntax, as in
|
||||
`autocommand PRIVMSG NickServ :STATUS mynick`. Use `/raw` for later raw commands.
|
||||
The sequence runs once per successful registration, including reconnects, after
|
||||
SASL negotiation when configured and before startup channel joins.
|
||||
Place an optional `autocommand <IRC command>` below the corresponding
|
||||
`server` line, immediately after its `sasl` line when present. For example,
|
||||
`autocommand PRIVMSG NickServ :STATUS mynick` sends that raw IRC command.
|
||||
It runs once per successful registration, including reconnects, after SASL
|
||||
negotiation when configured and before startup channel joins.
|
||||
|
||||
To enable startup channel joins, build with `make -B AUTOJOIN=1`. Add one
|
||||
`channel #name` line per channel below the corresponding `server` line.
|
||||
After registration, irc9 sends one startup JOIN every two seconds per server.
|
||||
Add comma-separated slash commands after the channel name, for example
|
||||
`channel #channel /msg ChanServ OP #channel nickname,/mode #channel`.
|
||||
The first command runs when the server confirms the join. irc9 waits two seconds
|
||||
between commands on the same line and runs them in the joined channel's context.
|
||||
A comma followed by a slash, with optional spaces or tabs between them, starts the next command.
|
||||
Default builds ignore `channel` lines. Use `make -B` to rebuild with autojoin disabled.
|
||||
irc9 sends the joins when that server first confirms registration. Default
|
||||
builds ignore `channel` lines. Use `make -B` to rebuild with autojoin disabled.
|
||||
Blank lines and whole-line comments starting with `#` are ignored.
|
||||
|
||||
TLS certificates are verified against a system CA bundle when one is found.
|
||||
|
|
@ -134,23 +107,21 @@ Build yours by copying `irc9rc-example` to `irc9rc` next to the binary (or to
|
|||
|
||||
```
|
||||
[irc9] irc.example / #general
|
||||
/----------------------\/--------------------------------------\
|
||||
|*irc.example | General discussion
|
||||
| |-#general |---------------------------------------|
|
||||
/----------------------\ Topic: General discussion
|
||||
|* irc.example |
|
||||
| |-#general |
|
||||
| |-#help(3) |
|
||||
| \-alice | [10:21] <alice> hello there
|
||||
|*irc.other | [10:22] <bob> hi
|
||||
| | [10:22] * alice!u@host joined #help
|
||||
\----------------------/\--------------------------------------/
|
||||
|* irc.other | [10:22] <bob> hi
|
||||
\______________________/ [10:22] * alice!u@host joined #help
|
||||
----------------------------------------------------------------
|
||||
[10:23] (me@irc.example:6697 [TLS])
|
||||
> your message here
|
||||
```
|
||||
|
||||
The left column is a tree: each server and its windows (channels and private
|
||||
message windows). Channels appear before private message windows, with
|
||||
uppercase names sorting before lowercase names in each group. An unread window
|
||||
shows `(n)` next to its name. Each server shows its total unread count after
|
||||
its name, including when folded. `*` marks a connected server. The selected server or window is shown bold and underlined. Highlights use the
|
||||
message windows). An unread window shows `(n)` next to its name. `*` marks a
|
||||
connected server. The selected server or window is shown bold and underlined. Highlights use the
|
||||
terminal's default background so transparency is preserved where supported.
|
||||
Channel topics wrap to the chat pane width and stay at the top while you scroll.
|
||||
On short terminals, the topic leaves room for at least one chat line when possible.
|
||||
|
|
@ -162,24 +133,18 @@ Channel privileges such as operator or voice appear as a trailing `*` (for examp
|
|||
CTCP `ACTION`, `VERSION`, `PING`, `TIME`, and `USERINFO` are understood; KICK,
|
||||
MODE, TOPIC, and INVITE events are shown in the relevant window.
|
||||
|
||||
## Screenshot
|
||||
|
||||

|
||||
|
||||
## Keys
|
||||
|
||||
| Key | Action |
|
||||
| --- | --- |
|
||||
| `Tab` | complete a `/` command or a nick; press again to cycle matches (recently completed nicks come first) |
|
||||
| `Ctrl+Left` / `Ctrl+Right` | move to the previous / next word in the input line |
|
||||
| `Ctrl+Up` / `Ctrl+Down` | scroll the channel tree by one row |
|
||||
| `ctrl-n` / `ctrl-p` | next / previous visible window (tree order, wraps around) |
|
||||
| Enter | fold or unfold the selected server when the input line is empty |
|
||||
| `ctrl-n` / `ctrl-p` | next / previous window (tree order, wraps around) |
|
||||
| `PageUp` / `PageDown` | scroll the current window |
|
||||
| `ctrl-l` | clear the screen (history stays scrollable) |
|
||||
| `ctrl-t` | toggle copy view, which hides the tree, chat timestamps, and sender names |
|
||||
| `ctrl-s` | save the current window’s scrollback to a new plain-text file |
|
||||
| Up / Down | browse slash command history with `--history` |
|
||||
| Up / Down | command history |
|
||||
| Left / Right, Home / End | edit the input line |
|
||||
| `Del` | delete the character at the cursor |
|
||||
|
||||
|
|
@ -224,17 +189,3 @@ instead.
|
|||
|
||||
Anything else typed without a leading `/` is sent to the current channel or
|
||||
private-message window. Typing in a server window tells you to pick a target.
|
||||
|
||||
## Authors
|
||||
|
||||
See [AUTHORS](AUTHORS) for project credits.
|
||||
|
||||
- Armin Jenewein - <a@bsd.pm> - Founder
|
||||
- Johannes Findeisen - <you@hanez.org> - Contributor
|
||||
|
||||
## License
|
||||
|
||||
Copyright 2026 Armin Jenewein
|
||||
|
||||
The code of murx is licensed under the terms of the Apache-2.0 license. See
|
||||
LICENSE for details.
|
||||
|
|
|
|||
|
|
@ -8,22 +8,16 @@ real Happy irc9 User
|
|||
|
||||
# Libera and OFTC use TLS on 6697. Use port 6667 without the ssl keyword for
|
||||
# plain TCP. The optional sasl line applies to the server above it; the SASL
|
||||
# user is your account name. An optional autocommand runs after registration on
|
||||
# the server above it, before startup channel joins. Separate slash commands with
|
||||
# commas. irc9 waits two seconds between commands.
|
||||
# user is your account name. An optional autocommand sends one raw IRC command
|
||||
# after registration on the server above it, before startup channel joins.
|
||||
|
||||
# libera
|
||||
server irc.libera.chat 6697 ssl
|
||||
name Libera Chat
|
||||
# Suppress incoming messages from these nicknames on this server.
|
||||
# blacklist user1,user2,user3
|
||||
# sasl irc9user my-sasl-password
|
||||
# autocommand /query user1,/query user2
|
||||
# autocommand /msg NickServ IDENTIFY irc9user $PASSWORD
|
||||
# Build with make -B AUTOJOIN=1 and uncomment channel lines to join at startup.
|
||||
# Each channel line applies to the server above it.
|
||||
# Optional comma-separated slash commands run after the channel join succeeds.
|
||||
# irc9 waits two seconds between commands on the same line.
|
||||
# channel #channel /msg ChanServ OP #channel nickname,/mode #channel
|
||||
channel #irc9
|
||||
# channel #murx
|
||||
# channel #zynk
|
||||
|
|
|
|||
BIN
screenshot.png
BIN
screenshot.png
Binary file not shown.
|
Before Width: | Height: | Size: 279 KiB |
Loading…
Add table
Add a link
Reference in a new issue