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

 
 

task #10847: Provide access to STDIN of hook_process process

Submitter:  John Doe <mr_doe>
Submitted:  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
Assigned to:  flashcode Percent Complete:  100%
Originator Name:  Open/Closed:  Closed
Planned Release:  0.4.3 IRC nick: 
* Mandatory Fields

Add a New Comment Rich Markup
   

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>
Group administrator
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)
  •  

    There are 0 votes so far. Votes easily highlight which items people would like to see resolved in priority, independently of the priority of the item set by tracker managers.

    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.13-758e.
    Corresponding source code