[Discuss] Locating specific terminal windows by pty number?

Rich Pieri richard.pieri at gmail.com
Tue Jan 9 08:44:13 EST 2024


On Mon, 8 Jan 2024 22:45:54 -0500
Bill Ricker <bill.n1vux at gmail.com> wrote:

> This depends upon what Window Manager and perhaps Desktop Manager
> you're running ?

This, and as noted the X11 vs. Wayland consideration. And the fact that
this all assumes the pty is associated with an xterm (or whatever) and
not something else like a console or SSH session.

Also, it wouldn't be the PID of the vi process. It needs to trace up
the chain of parent PIDs to get to the xterm.

-- 
\m/ (--) \m/


More information about the Discuss mailing list