From fb9b2ba3949368cdf3ce73a5556f46a554ebd608 Mon Sep 17 00:00:00 2001 From: Tobias Girstmair Date: Sun, 2 Jun 2024 22:01:59 +0200 Subject: [PATCH] examples: document rlwrap the readline wrapper works great in this case. if one wants to manually type in CTCP messages (/me), ^A needs to be escaped as ^V^A, e.g.: privmsg #chan :^V^AACTION waves^V^A --- README.md | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/README.md b/README.md index 0a07b94..30db4c2 100644 --- a/README.md +++ b/README.md @@ -67,10 +67,14 @@ Connect to an IRC bouncer and highlight incoming messages. Timestamps are provided by `ts`, part of the moreutils suite. This is a surprisingly usable interactive IRC client. Posting to a channel (or messaging a user) is possible by sending the raw command, e.g. `privmsg #myChan :hello, world!` (most ircd -implementations are matching commands case-insensitively). +implementations are matching commands case-insensitively). For better input +handling, wrapping the whole pipeline with `rlwrap sh -c '...'` prevents +incoming messages from mangling half-typed commands. ``` IRC_PASSWD=myNick/myNet:myPass ircpipe -n myNick -p -s bouncer.example.org | ./contrib/highlight | ts +# or: +IRC_PASSWD=myNick/myNet:myPass rlwrap sh -c 'ircpipe -n myNick -p -s bouncer.example.org | ./contrib/highlight | ts' ``` Forward some error logs to a special IRC channel. This is the original use case -- 2.39.3