URL:
  <http://savannah.nongnu.org/task/?10847>

                 Summary: Provide access to STDIN of hook_process process
                 Project: WeeChat
            Submitted by: mr_doe
            Submitted on: Fri 31 Dec 2010 07:15:29 PM GMT
                Category: scripts API plugins
         Should Start On: Fri 31 Dec 2010 12:00:00 AM GMT
   Should be Finished on: Fri 31 Dec 2010 12:00:00 AM GMT
                Priority: 5 - Normal
                  Status: None
                 Privacy: Public
        Percent Complete: 0%
             Assigned to: None
         Originator Name: 
        Originator Email: 
             Open/Closed: Open
         Discussion Lock: Any
         Planned Release: None
                IRC nick: 

    _______________________________________________________

Details:

It would be good if you could write to a process created with hook_process -
something like:

weechat_hook_process_write(process, data)

so that it's the same as if you wrote to the process's STDIN.

I was trying to make a plugin that let you run programs in a weechat window,
but without this, it isn't possible as a script. The alternative would be to
use popen but then you lose the callback, and would have to fork or use a
thread to monitor the process.





    _______________________________________________________

Reply to this item at:

  <http://savannah.nongnu.org/task/?10847>

_______________________________________________
  Message sent via/by Savannah
  http://savannah.nongnu.org/


_______________________________________________
Weechat-dev mailing list
[email protected]
http://lists.nongnu.org/mailman/listinfo/weechat-dev

Reply via email to