X-Git-Url: http://git.annexia.org/?a=blobdiff_plain;ds=sidebyside;f=miniexpect.pod;fp=miniexpect.pod;h=9fe235e031e7567bd829988cf2a208d1188f54e4;hb=fb0eeddc671039cabd9c53934e324ae218b21000;hp=2b05cd6e894dc8102693783dbb5c2d74a9c1fb55;hpb=57eea3e7cc0f214200642fbeb68b6b063243558b;p=miniexpect.git diff --git a/miniexpect.pod b/miniexpect.pod index 2b05cd6..9fe235e 100644 --- a/miniexpect.pod +++ b/miniexpect.pod @@ -54,7 +54,7 @@ You can control multiple programs at the same time. =head1 SPAWNING THE SUBPROCESS -There are two calls for creating a subprocess: +There are four calls for creating a subprocess: B @@ -83,6 +83,31 @@ B This is the same as C except that you pass the arguments in a NULL-terminated array. +There are also two versions of the above calls which take flags: + +B + +B + +The flags may contain the following values, logically ORed together: + +=over 4 + +=item C + +Do not reset signal handlers to C in the subprocess. + +=item B + +Do not close file descriptors E 3 in the subprocess. + +=item B or B + +Configure the pty in cooked mode or raw mode. Raw mode is the +default. + +=back + =head1 HANDLES After spawning a subprocess, you get back a handle which is a pointer @@ -411,6 +436,17 @@ send a command followed by a newline you have to do something like: =back +B + +Send the interrupt character (C<^C>, Ctrl-C, C<\003>). This is like +pressing C<^C> - the subprocess (or remote process, if using C) +is gracefully killed. + +Note this only works if the pty is in cooked mode +(ie. C was passed to C or +C). In raw mode, all characters are passed through +without any special interpretation. + =head1 SOURCE Source is available from: