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

Re: recognizing an xterm running only bash from the CLI



On Mon, Aug 11, 2025 at 10:31:38 -0400, Dan Ritter wrote:
> Is your actual question, then:
> 
> How can I use a command line command to write something
> semi-ephemeral to something displaying in X?
> 
> Options that come to mind:
> 	- lsof /dev/pts/*
> 	- use a notifications demon (e.g. xfce4-notifyd)
> 	- write to a file you control, and run tail -f filename in
> your selected xterm

I still think that having both /dev/tty9 and "this one xterm" both
connected to the same tmux/screen session is going to be the best
long-term solution to *whatever* the actual workflow issue is.

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.


Reply to: