Re:Tmux lets you select and copy text with your keyboard
by vptr on Friday April 02, 2021 @08:54AM
(#26671027)
I think a more killer feature of tmux is that you can send keystrokes to apps running inside tmux (with send-keys). It just opens a door for scripting CLI apps that otherwise would not be scriptable. e.g. irc clients and similar full screen apps.
[ Parent
| on HN ]
Re:Tmux lets you select and copy text with your keyboard
by adverbly on Friday April 02, 2021 @07:29PM
(#26676990)
Yep. This is a killer feature for me. I have a ton of scripts that open new split screens and ssh into things to tail logs or others that ssh, change users, start some other console/repl/shell, then run a few commands in that. I'm sure there's better ways to do it but it's been enough to speed up a lot of the simple repetitive things for me.
Re:Tmux lets you select and copy text with your keyboard
by ianthehenry on Friday April 02, 2021 @11:45AM
(#26672409)
To add to this, I have used tmux for automated testing of full-screen interactive command-line apps. It comes out like PhantomJS: send-keys + capture-pane is pretty awesome (once you overcome dumb timing stuff).
Re:Tmux lets you select and copy text with your keyboard
by 2OEH8eoCRo0 on Friday April 02, 2021 @09:40AM
(#26671315)
That's sick and good to know. I can use that on my current project.
Re:Tmux lets you select and copy text with your keyboard
by cryptonector on Friday April 02, 2021 @12:06PM
(#26672671)
You might want to look into expect(1).