Is there a nice way of getting the TTY of a new xterm on it's creation semi-auto-magically and suppressing the xterms initial prompts? I am trying to write to the window from C/C++, but I need the pts number of the TTY... So how do I find out what TTY is the new one?