The Perl Toolchain Summit needs more sponsors. If your company depends on Perl, please support this very important event.

NAME

AnyEvent::Subprocess::Job::Delegate::Pty - give the child a pseudo-terminal

VERSION

version 1.102912

DESCRIPTION

You can have more than one of these, but the last one will become the controlling tty.

INITARGS

redirect_handles

A list of filehandles that will be connected to this Pty in the child. Defaults to stdout and stderr.

METHODS

pty

Returns the IO::Pty object. You can use this object to set the child's window size, etc.

handle

The handle that you can read/write to communicate with the child. Note that writing can be confusing; because the Pty emulates a terminal, and terminals echo input, you will get back things that you write. You can disable this behavior by changing the terminal parameters in the child process.

(If you don't know what "raw mode" and "cooked mode" are, you should read up on UNIX terminals. You might really want a pipe, not a pseudo terminal.)

AUTHOR

Jonathan Rockway <jrockway@cpan.org>

COPYRIGHT AND LICENSE

This software is copyright (c) 2011 by Jonathan Rockway.

This is free software; you can redistribute it and/or modify it under the same terms as the Perl 5 programming language system itself.