[Gllug] share keyboard input between two applications
Peter Childs
peterachilds at gmail.com
Fri Oct 9 09:45:43 UTC 2009
2009/10/9 JLMS <jjllmmss at googlemail.com>:
> On Fri, Oct 9, 2009 at 10:15 AM, Victor Churchill
> <vchurchill at softwareshack.eu> wrote:
>> 2009/10/8 <news at aleblanc.cotse.net>:
>>> Hi,
>>> can anyone tell me if it is possible to share keyboard input events
>>> between two or more applications simultaneously? and if so, how?
>>> I want to try playing music while simultaneously typing text (don't
>>> ask why).
>>>
>>> --
>>> aleblanc
>>>
>>
>> Would named pipes made with mkfifo work for you? You can sit in a while loop,
>> read()ing a line and echoing it onto both fifos . Then have your apps
>> read their input from the pipes.
>
>
> Explain further please, this sounds enticing, perhaps short snippet of code?
> --
Sounds like a perfect use of tee.
cat - | tee `command 1` | command 2
or somthing like that
Peter.
--
Gllug mailing list - Gllug at gllug.org.uk
http://lists.gllug.org.uk/mailman/listinfo/gllug
More information about the GLLUG
mailing list