c - What type of terminal is created when creating a pseudoterminal through open_pty()? -
what type of terminal created when creating pseudoterminal through open_pty()?
i've wondered how pseudoterminal opened open_pty()
behaves? behavior of pseudoterminal similar gnome terminal in terms of input/output, or kind of terminal pseudoterminal mimicks?
using c-program, i've opened pseudoterminal (after fork()
) through open_pty()
, made login terminal through login_pty()
. then, i've used execv()
call execute sh
such parent , child processes can communicate through master/slave ends of pseudoterminal.
in particular, notice how input pty sent sh
, how output sh
sent stdout of pty - correct?
Comments
Post a Comment