you can write to the terminal's TTY; for example:
in terminal 1:
$ tty
ttys000
in terminal 2:
$ tty
ttys029
$ exec &> >(tee >(cat >&/dev/ttys000))
ls
Output will show in both terminals in real-time even as you type.
you can write to the terminal's TTY; for example:
in terminal 1:
$ tty
ttys000
in terminal 2:
$ tty
ttys029
$ exec &> >(tee >(cat >&/dev/ttys000))
ls
Output will show in both terminals in real-time even as you type.