detecting which pts from vt

2011-09-12 Thread Mike McClain
I'm regularly wanting to transport some text from a vt to an xterm window so I wrote a little function : toX () { echo $* /dev/pts/1 } only to find that when xwindows/icewm starts up it doesn't always open windows in the same order. In .xsession I open 5 windows when I launch X, one

Re: detecting which pts from vt

2011-09-12 Thread Ivan Shmakov
Mike McClain mike.j...@cox.net writes: I'm regularly wanting to transport some text from a vt to an xterm window Is using GNU Screen or tmux an option? They both enable one to have a single “terminal window” to be shared between any number of VT's, XTerm's, SSH

Re: detecting which pts from vt

2011-09-12 Thread Paul Lettington
On Mon, Sep 12 2011 08:34:46 -0700, Mike McClain wrote: Is there a way from the CL to detect which pts is the plain xterm window or to cause X to open the windows in a specified order? You can't easily find out what pts the xterm has from elsewhere, but the xterm itself could find what