Restyle the terminal interface with ASCII borders

This commit is contained in:
Johannes Findeisen 2026-11-27 02:42:18 +01:00
commit c3287f08c6
2 changed files with 35 additions and 34 deletions

View file

@ -73,29 +73,26 @@ Build yours by copying `irc9rc-example` to `irc9rc` next to the binary (or to
## Layout
```
irc.example / #general
┌────────────────┬──────────────────────────────────────────┐
│* irc.example │ [10:21] <alice> hello there │
│ #general │ [10:22] <bob> hi │
│ #help(3) │ [10:22] * alice!u@host joined #help │
│ alice │ │
│* irc.other │ │
│ │ │
├────────────────┴──────────────────────────────────────────┤
│ me@irc.example #general (3) connected TLS 10:23 │
│> your message here │
└────────────────────────────────────────────────────────────┘
[irc9] irc.example / #general
/----------------------\
|* irc.example |
| |-#general |
| |-#help(3) | [10:21] <alice> hello there
| \-alice | [10:22] <bob> hi
|* irc.other | [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). 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).
The
right pane shows the current window's scrollback with `[HH:MM]` timestamps.
terminal's default background so transparency is preserved where supported.
The right pane shows the current window's scrollback with `[HH:MM]` timestamps.
Joins, parts and quits include the full hostmask; joins and parts also name the
channel. The status line above the input shows your nick, server, current
window, member count, connection state (including `TLS`), and the time.
channel. The status line above the input shows the time, nick, server, port, TLS state, and user modes.
Joining a channel prints its nicklist; `/n` and `/names` print it again.
CTCP `ACTION`, `VERSION`, `PING`, `TIME`, and `USERINFO` are understood; KICK,
MODE, TOPIC, and INVITE events are shown in the relevant window.