Good stuff. Here's the situation I'm having.
I write a script. In this script, I pull a username from a database. I then userenv as that user. However, after I enter the user's password, it seems that stdin, stdout, and stderr are still printing to the tty that I was previously in before I completed the userenv command. I need to redirect those streams to the new tty that userenv opens.