Compare commits
39 commits
| Author | SHA1 | Date | |
|---|---|---|---|
| 375a6b3e32 | |||
| b488fdad57 | |||
| 7b85ec7e5e | |||
| b208b5b696 | |||
| a95f4f42b3 | |||
| 172157825b | |||
| 30324032ce | |||
| 676b839426 | |||
| 3adceb05eb | |||
| 15a6c6dee9 | |||
| 54d44d370b | |||
| d4f2301175 | |||
| 383bb95d76 | |||
| 7833745890 | |||
| f63a54d15f | |||
| b15d0ef81d | |||
| fa16526c44 | |||
| 78f2929dd9 | |||
| 7cf0accf73 | |||
| cb5b92c98c | |||
| a5c12b1cfe | |||
| 7e57211260 | |||
| 9b5e837e3c | |||
| a7279840f0 | |||
| 981a803d6c | |||
| 886aaec1e3 | |||
| eb4e78f269 | |||
| 67b3b2fb87 | |||
| 5f2f1d8e0c | |||
| 6ed9931044 | |||
| 4bf001e7cd | |||
| 5d311bbef4 | |||
| 38df64d3b2 | |||
| 38dca11cf8 | |||
| 410990c63d | |||
| 76578805ba | |||
| e138004be9 | |||
| b38437544f | |||
| 94e16d4b32 |
6 changed files with 769 additions and 234 deletions
4
AUTHORS
Normal file
4
AUTHORS
Normal file
|
|
@ -0,0 +1,4 @@
|
||||||
|
murx authors
|
||||||
|
|
||||||
|
Armin Jenewein <a@bsd.pm> - Founder
|
||||||
|
Johannes Findeisen <you@hanez.org> - Contributor
|
||||||
13
LICENSE
Normal file
13
LICENSE
Normal file
|
|
@ -0,0 +1,13 @@
|
||||||
|
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
|
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
|
commands, no plugins. Just servers, windows, timestamps, and two keys to move
|
||||||
around.
|
around + some more keys you can use.
|
||||||
|
|
||||||
## Build and run
|
## Build and run
|
||||||
|
|
||||||
|
|
@ -12,16 +12,24 @@ around.
|
||||||
make
|
make
|
||||||
./irc9 # finds a config automatically (see below)
|
./irc9 # finds a config automatically (see below)
|
||||||
./irc9 myconfig.conf # or point at a config explicitly
|
./irc9 myconfig.conf # or point at a config explicitly
|
||||||
./irc9 -s myconfig.conf # hide join and quit notices in channel windows
|
./irc9 -s myconfig.conf # hide channel activity notices
|
||||||
```
|
```
|
||||||
|
|
||||||
`-s` and `--silent` 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.
|
||||||
`-C` and `--colored` color nicknames in channel and private chats and in
|
`-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
|
nicklists. Your own nick is always green in this mode, including in the status
|
||||||
line.
|
line.
|
||||||
Use `-c RRGGBB` or `--color RRGGBB` to replace the default cyan accent on
|
Use `-c RRGGBB` or `--color RRGGBB` to replace the default cyan accent on
|
||||||
the channel tree and divider. For example, `./irc9 --color FF8800` uses
|
the channel tree and divider. For example, `./irc9 --color FF8800` uses
|
||||||
orange on terminals with true-color support.
|
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:
|
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
|
`irc9rc`, `config`, then `~/.irc9rc`. Paths are relative to the binary, not to
|
||||||
|
|
@ -38,7 +46,7 @@ lines marked `ssl`/`tls` cannot connect.
|
||||||
|
|
||||||
## Configuration
|
## Configuration
|
||||||
|
|
||||||
One file, nine active keywords:
|
One file, ten active keywords:
|
||||||
|
|
||||||
```
|
```
|
||||||
nick irc9user
|
nick irc9user
|
||||||
|
|
@ -48,16 +56,22 @@ real Happy irc9 User
|
||||||
|
|
||||||
# Libera and OFTC use TLS on 6697. Use port 6667 without the ssl keyword for
|
# 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
|
# plain TCP. The optional sasl line applies to the server above it; the SASL
|
||||||
# user is your account name. An optional autocommand sends one raw IRC command
|
# user is your account name. An optional autocommand runs after registration on
|
||||||
# after registration on the server above it, before startup channel joins.
|
# the server above it, before startup channel joins. Separate slash commands with
|
||||||
|
# commas. irc9 waits two seconds between commands.
|
||||||
|
|
||||||
# libera
|
# libera
|
||||||
server irc.libera.chat 6697 ssl
|
server irc.libera.chat 6697 ssl
|
||||||
name Libera Chat
|
name Libera Chat
|
||||||
|
# Suppress incoming messages from these nicknames on this server.
|
||||||
|
# blacklist user1,user2,user3
|
||||||
# sasl irc9user my-sasl-password
|
# sasl irc9user my-sasl-password
|
||||||
# autocommand /msg NickServ IDENTIFY irc9user $PASSWORD
|
# autocommand /query user1,/query user2
|
||||||
# Build with make -B AUTOJOIN=1 and uncomment channel lines to join at startup.
|
# Build with make -B AUTOJOIN=1 and uncomment channel lines to join at startup.
|
||||||
# Each channel line applies to the server above it.
|
# 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 #irc9
|
||||||
# channel #murx
|
# channel #murx
|
||||||
# channel #zynk
|
# channel #zynk
|
||||||
|
|
@ -79,21 +93,34 @@ server <host> [port] [ssl|tls]
|
||||||
An optional `name <display name>` line below `server` sets its label in the
|
An optional `name <display name>` line below `server` sets its label in the
|
||||||
channel tree. The label defaults to the hostname.
|
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
|
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
|
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
|
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).
|
SASL user is your account name (for many people this is the same as the nick).
|
||||||
|
|
||||||
Place an optional `autocommand <IRC command>` below the corresponding
|
Place an optional `autocommand` below the corresponding `server` line,
|
||||||
`server` line, immediately after its `sasl` line when present. For example,
|
immediately after its `sasl` line when present. For example,
|
||||||
`autocommand PRIVMSG NickServ :STATUS mynick` sends that raw IRC command.
|
`autocommand /query user1,/query user2` opens two query windows, two seconds apart.
|
||||||
It runs once per successful registration, including reconnects, after SASL
|
A comma followed by a slash, with optional spaces or tabs between them, starts
|
||||||
negotiation when configured and before startup channel joins.
|
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.
|
||||||
|
|
||||||
To enable startup channel joins, build with `make -B AUTOJOIN=1`. Add one
|
To enable startup channel joins, build with `make -B AUTOJOIN=1`. Add one
|
||||||
`channel #name` line per channel below the corresponding `server` line.
|
`channel #name` line per channel below the corresponding `server` line.
|
||||||
irc9 sends the joins when that server first confirms registration. Default
|
After registration, irc9 sends one startup JOIN every two seconds per server.
|
||||||
builds ignore `channel` lines. Use `make -B` to rebuild with autojoin disabled.
|
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.
|
||||||
Blank lines and whole-line comments starting with `#` are ignored.
|
Blank lines and whole-line comments starting with `#` are ignored.
|
||||||
|
|
||||||
TLS certificates are verified against a system CA bundle when one is found.
|
TLS certificates are verified against a system CA bundle when one is found.
|
||||||
|
|
@ -107,21 +134,23 @@ Build yours by copying `irc9rc-example` to `irc9rc` next to the binary (or to
|
||||||
|
|
||||||
```
|
```
|
||||||
[irc9] irc.example / #general
|
[irc9] irc.example / #general
|
||||||
/----------------------\ Topic: General discussion
|
/----------------------\/--------------------------------------\
|
||||||
|* irc.example |
|
|*irc.example | General discussion
|
||||||
| |-#general |
|
| |-#general |---------------------------------------|
|
||||||
| |-#help(3) |
|
| |-#help(3) |
|
||||||
| \-alice | [10:21] <alice> hello there
|
| \-alice | [10:21] <alice> hello there
|
||||||
|* irc.other | [10:22] <bob> hi
|
|*irc.other | [10:22] <bob> hi
|
||||||
\______________________/ [10:22] * alice!u@host joined #help
|
| | [10:22] * alice!u@host joined #help
|
||||||
----------------------------------------------------------------
|
\----------------------/\--------------------------------------/
|
||||||
[10:23] (me@irc.example:6697 [TLS])
|
[10:23] (me@irc.example:6697 [TLS])
|
||||||
> your message here
|
> your message here
|
||||||
```
|
```
|
||||||
|
|
||||||
The left column is a tree: each server and its windows (channels and private
|
The left column is a tree: each server and its windows (channels and private
|
||||||
message windows). An unread window shows `(n)` next to its name. `*` marks a
|
message windows). Channels appear before private message windows, with
|
||||||
connected server. The selected server or window is shown bold and underlined. Highlights use the
|
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
|
||||||
terminal's default background so transparency is preserved where supported.
|
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.
|
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.
|
On short terminals, the topic leaves room for at least one chat line when possible.
|
||||||
|
|
@ -133,18 +162,24 @@ Channel privileges such as operator or voice appear as a trailing `*` (for examp
|
||||||
CTCP `ACTION`, `VERSION`, `PING`, `TIME`, and `USERINFO` are understood; KICK,
|
CTCP `ACTION`, `VERSION`, `PING`, `TIME`, and `USERINFO` are understood; KICK,
|
||||||
MODE, TOPIC, and INVITE events are shown in the relevant window.
|
MODE, TOPIC, and INVITE events are shown in the relevant window.
|
||||||
|
|
||||||
|
## Screenshot
|
||||||
|
|
||||||
|

|
||||||
|
|
||||||
## Keys
|
## Keys
|
||||||
|
|
||||||
| Key | Action |
|
| Key | Action |
|
||||||
| --- | --- |
|
| --- | --- |
|
||||||
| `Tab` | complete a `/` command or a nick; press again to cycle matches (recently completed nicks come first) |
|
| `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+Left` / `Ctrl+Right` | move to the previous / next word in the input line |
|
||||||
| `ctrl-n` / `ctrl-p` | next / previous window (tree order, wraps around) |
|
| `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 |
|
||||||
| `PageUp` / `PageDown` | scroll the current window |
|
| `PageUp` / `PageDown` | scroll the current window |
|
||||||
| `ctrl-l` | clear the screen (history stays scrollable) |
|
| `ctrl-l` | clear the screen (history stays scrollable) |
|
||||||
| `ctrl-t` | toggle copy view, which hides the tree, chat timestamps, and sender names |
|
| `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 |
|
| `ctrl-s` | save the current window’s scrollback to a new plain-text file |
|
||||||
| Up / Down | command history |
|
| Up / Down | browse slash command history with `--history` |
|
||||||
| Left / Right, Home / End | edit the input line |
|
| Left / Right, Home / End | edit the input line |
|
||||||
| `Del` | delete the character at the cursor |
|
| `Del` | delete the character at the cursor |
|
||||||
|
|
||||||
|
|
@ -189,3 +224,17 @@ instead.
|
||||||
|
|
||||||
Anything else typed without a leading `/` is sent to the current channel or
|
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.
|
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,16 +8,22 @@ real Happy irc9 User
|
||||||
|
|
||||||
# Libera and OFTC use TLS on 6697. Use port 6667 without the ssl keyword for
|
# 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
|
# plain TCP. The optional sasl line applies to the server above it; the SASL
|
||||||
# user is your account name. An optional autocommand sends one raw IRC command
|
# user is your account name. An optional autocommand runs after registration on
|
||||||
# after registration on the server above it, before startup channel joins.
|
# the server above it, before startup channel joins. Separate slash commands with
|
||||||
|
# commas. irc9 waits two seconds between commands.
|
||||||
|
|
||||||
# libera
|
# libera
|
||||||
server irc.libera.chat 6697 ssl
|
server irc.libera.chat 6697 ssl
|
||||||
name Libera Chat
|
name Libera Chat
|
||||||
|
# Suppress incoming messages from these nicknames on this server.
|
||||||
|
# blacklist user1,user2,user3
|
||||||
# sasl irc9user my-sasl-password
|
# sasl irc9user my-sasl-password
|
||||||
# autocommand /msg NickServ IDENTIFY irc9user $PASSWORD
|
# autocommand /query user1,/query user2
|
||||||
# Build with make -B AUTOJOIN=1 and uncomment channel lines to join at startup.
|
# Build with make -B AUTOJOIN=1 and uncomment channel lines to join at startup.
|
||||||
# Each channel line applies to the server above it.
|
# 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 #irc9
|
||||||
# channel #murx
|
# channel #murx
|
||||||
# channel #zynk
|
# channel #zynk
|
||||||
|
|
|
||||||
BIN
screenshot.png
Normal file
BIN
screenshot.png
Normal file
Binary file not shown.
|
After Width: | Height: | Size: 279 KiB |
Loading…
Add table
Add a link
Reference in a new issue