lua-users home
lua-l archive

[Date Prev][Date Next][Thread Prev][Thread Next] [Date Index] [Thread Index]


sorry, lpty is Un*x only. I don't think windows really has a concept like a
pty...

Xavier Wang <weasley.wx@gmail.com> hat am 2. April 2013 um 09:56 geschrieben:
> I'm using winapi all the time, it's a great modulle :)
>
> but some windows program use isatty, but if you use redirect, isatty
> always return 0, so I want to find some way to work out this...
>
> 2013/4/2 steve donovan <steve.j.donovan@gmail.com>:
> > On Tue, Apr 2, 2013 at 9:42 AM, Xavier Wang <weasley.wx@gmail.com> wrote:
> >>
> >> I'm working on Windows, can windows support pty anyway :-(
> >
> >
> > Windows is always ... different.  You can get similar functionality from the
> > winapi module , i.e. you can run an interactive process and capture its
> > standout i/o streams. However, some Windows programs (like ftp) use direct
> > console i/o for entering passwords and that messes up the nice model...
> >
> > (http://stevedonovan.github.com/winapi/topics/readme.md.html)
> >
>
>
>
> --
> regards,
> Xavier Wang.
>