Source

pcw / pcw.1

Full commit
.TH PCW 1 pcw-VERSION
.SH NAME
pcw \- popup chat window

.SH DESCRIPTION
.B pcw
uses inotify to monitor a directory tree (created by ii) and open terminals running cw with the in and out files for each channel.
pcw depends on srw to wrap cw for better line editing, but this can be changed either in the source code or with the -c command flag.

.B cw
uses inotify to monitor a file and write changes to stdout as they happen, and sends text written on stdin to another file.
It's meant for use with pcw and ii, but may come in handy elsewhere.

.SH SYNOPSIS
.SY pcw
.OP \-c command
.OP -v
.I dir
.YS
.SY cw
.I infile
.I outfile
.SY

.SH OPTIONS
.TP
.I dir
the root of the directory tree to monitor (ii defaults to ~/irc)
.TP
.I infile
the file to monitor and print changes to stdout
.TP
.I outfile
the file to write user input to
.TP
.BI \-c " command"
the command to run for each new channel, each '%' argument must occur as it's own word, defaults to
.br
"urxvt -title %p -e srw -b -p %c cw %o %i"
.P
.RS
.IR %p " \- path to the directory"
.br
.IR %c " \- channel, basename of the path (actually set to 'channel> ' to be used as prompt for srw)"
.br
.IR %o " \- path to the outfile"
.br
.IR %i " \- path to the infile"
.RE
.TP
.B \-v
print version information and exit

.SH AUTHOR
Copyright \(co 2010 by Evan Gates <evan.gates (at) gmail (dot) com>

.SH SEE ALSO
.BR ii (1),
.BR srw (1)