[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: recognizing an xterm running only bash from the CLI



Greg Wooledge wrote: 
> On Mon, Aug 11, 2025 at 10:31:38 -0400, Dan Ritter wrote:
> 
> Recipe:
> 
>  1) Install screen.
>  2) On /dev/tty9, run "screen -S shared" to create a named session.
>  3) In X, open an xterm (ideally with the same dimensions as the VT).
>  4) In that xterm, run "screen -x -S shared" to connect to the named
>     session.
> 
> Now, both terminals will be in sync with each other.  "shared" is just
> the name you're giving the session.  If you don't like that name,
> you can choose another.  I don't know tmux but I'm fairly certain it
> can also do this.

Yes.

/dev/tty9:

tmux -S /tmp/tmuxshare 

xterm:

tmux -S /tmp/tmuxshare attach

They can even be different users if /tmp/tmuxshare is read/write
by both.

-dsr-


Reply to: