I'd like to get the value of the current xterm window's psuedo terminal, for use in the "write" function. For instance, when I type ps I can see that all the current processes are on pts/4. Is there a better way to get "pts/4" other than grep on the output of "ps"?
Eyal