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

Popular posts from this blog

php - Vagrant up error - Uncaught Reflection Exception: Class DOMDocument does not exist -

vue.js - Create hooks for automated testing -

Add new key value to json node in java -