Hi Thiago, On 07/25/2014 11:59 AM, Thiago Arruda wrote: > The ability to automate interactive programs using libuv would be a > killer feature, libuv could be used as a replacement for libexpect and > node.js a replacement for expect :) > > I imagine that beyond the system calls used to open the pty, there's not > much difference between ptys and pipes from the programmer POV(at least > on UNIX). If I managed to implement a UV_CREATE_TERMINAL spawn option by > the end of next week, is there any chance it would make into 0.12? I'm > particularly interested in this, since it's a feature Neovim could > benefit from. > > The patch would include: > > - The UV_CREATE_TERMINAL option, which would use the `pty()` instead of > `pipe()` on UNIX > - A windows implementation(I would need to study winpty source code and > adapt the solution to libuv) > - A good set of tests >
This would indeed be a very welcome addition. Unfortunately I'm not sure about adding it to 0.12, not because you can't make it happen before we release it (you probably will) but the line needs to be drawn somewhere, otherwise there will always be "one more patch" and we'll never ship it. I'm open to being convinced otherwise, though. Fedor? -- Saúl Ibarra Corretgé bettercallsaghul.com
signature.asc
Description: OpenPGP digital signature
