taskWeeChat - Tasks: task #10847, Provide access to STDIN of...

 
 

task #10847: Provide access to STDIN of hook_process process

Submitted by:  John Doe <mr_doe>
Submitted on:  Fri 31 Dec 2010 07:15:29 PM UTC  
 
Category:  scripts API plugins Should Start On:  Fri 31 Dec 2010 12:00:00 AM UTC
Should be Finished on:  Fri 31 Dec 2010 12:00:00 AM UTC Priority:  5 - Normal
Status:  Done Privacy:  Public
Percent Complete:  100% Assigned to:  Sebastien Helleu <flashcode>
Originator Name:  Open/Closed:  Closed
Planned Release:  0.4.3 IRC nick: 

Add a New Comment (Rich Markup)
   

You are not logged in

Please log in, so followups can be emailed to you.

 

Sat 11 Jan 2014 08:13:24 AM UTC, comment #1: 

Done, using the existing function "hook_set" (this function has been added in script API, it was available only in C plugins).

Sebastien Helleu <flashcode>
Project AdministratorIn charge of this item.
Fri 31 Dec 2010 07:15:29 PM UTC, original submission:  

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.

John Doe <mr_doe>

 

(Note: upload size limit is set to 16384 kB, after insertion of the required escape characters.)

Attach Files:
   
   
Comment:
   

No files currently attached

 

Depends on the following items: None found

Items that depend on this one: None found

 

Carbon-Copy List
  • -email is unavailable- added by flashcode (Posted a comment)
  • -email is unavailable- added by mr_doe (Submitted the item)
  •  

    Do you think this task is very important?
    If so, you can add your encouragement to it.
    This task has 0 encouragements so far.

    Only logged-in users can vote.

     

     

     

    Follow 5 latest changes.

    Date Changed by Updated Field Previous Value => Replaced by
    2014-02-09 flashcode Open/ClosedOpen => Closed
    2014-01-11 flashcode StatusNone => Done
        Percent Complete0% => 100%
        Assigned toNone => flashcode
        Planned ReleaseNone => 0.4.3

    Back to the top


    Powered by Savane 3.5