2008/4/1, Matthias-Christian Ott <[EMAIL PROTECTED]>:
> "Anselm R. Garbe" <[EMAIL PROTECTED]> wrote:
>
>  > On Tue, Apr 01, 2008 at 03:24:44PM +0200, Matthias-Christian Ott wrote:
>  > > I want to start using ii for irc. What discouraged me from doing so was
>  > > a proper input method. Currently I know 2 methods to effectively input
>  > > text to ii: vim and dinput. I don't like both for some reason.
>  > > Do you have any best practices for using ii?
>  >
>  > echo(1), I'm not using ii but sic, but I usually create a fifo
>  > for sending input to sic using echo or sometimes cat(1), if I plan
>  > to have longer conversations than the usual hello.
>
>
> But this would require me to write something like each time I want to
>  send something to the channel:
>
>  $ echo 'Hello' > fifo
>  # or
>  $ cat > fifo
>  Hello^D
>
>  Of course you could do:
>  $ while true; do cat > fifo; done
>
>  But what about this:
>
>   +---------------------------+
>   |                           |
>   |           urxvt           |
>   |        tail -f fifo       |
>   |                           |
>   |                           |
>   |...........................|
>   |           input           |
>   +---------------------------+
>
>  The basic idea is to embedd the urxvt window in another window which also
>  embedds an input window. The input window could be urxvt running a small
>  programme or small X11 programme reading input and writing to the fifo.
>  This is much nicer for tiling and feels more like an irc client.
>  You could do this with screen of course.
>
>  Any other ideas?
>

What I do when I use sic is:
In one dvtm window:
mkfifo /tmp/sicfifo; cat /tmp/sicfifo | sic
In another one:
cat - > /tmp/fifo
And you can also write to sic with:
echo blabla > /tmp/sicfifo
Or even have keystrokes like:
echo `dmenu </dev/null` > /tmp/sicfifo

Or something similar, I'm not testing it.

hth,

-- 


- yiyus || JGL .

Reply via email to