News for hackers. Stuff that matters.
Re:You might not need tmux by blueflow on Friday August 01, 2025 @07:19AM (#44755324)
> So it’s like Playwright/Puppeteer for the terminal

I mean, a tty is just a file descriptor... there have been script(1), expect(1) and chat(8) since the 80ies. tmux is not really necessary.

Re:You might not need tmux by epr on Friday August 01, 2025 @07:36AM (#44755419)
These are all great. If you need to do something more involved, pexpect is also worth mentioning. It's a reimplementation of expect in python that's easy to be productive with quickly.

I used it in a previous job to automate configuring thousands of network devices

Re:You might not need tmux by woleium on Friday August 01, 2025 @07:36AM (#44755417)
Re:You might not need tmux by AlecSchueler on Friday August 01, 2025 @07:55AM (#44755540)
Re:You might not need tmux by chrisweekly on Friday August 01, 2025 @08:02AM (#44755579)
er, the context in this subthread is tmux alternatives
Re:You might not need tmux by AlecSchueler on Friday August 01, 2025 @08:54AM (#44756065)
No, it wasn't, and I think you've missed the joke.
Re:You might not need tmux by 0x457 on Friday August 01, 2025 @12:20PM (#44758956)
The context is "you don't need an entire terminal multiplexer such as Tmux when all you need is pseudo-tty".

Bringing another terminal multiplexer isn't an alternative. In my agent, I use pseudo-tty without any tmuxes/screens.

Re:You might not need tmux by anuramat on Friday August 01, 2025 @09:48AM (#44756796)
"tmux capture-pane" strips escape sequences that break the terminal and sets all the right variables; try using expect with e.g. neovim
Re:You might not need tmux by barmic12 on Friday August 01, 2025 @10:39AM (#44757458)
You right, it's pseudo terminal needed. The module pty of python can do this
Re:You might not need tmux by anuramat on Wednesday August 06, 2025 @12:03PM (#44813824)
maybe I'm biased, but python feels like endless boilerplate for unixy stuff

also I'm mostly using it to prepare an interactive environment anyway, so I don't see alternatives for my usecase (maybe zellij, but they don't even support sending keystrokes to a specific pane)

Re:You might not need tmux by blueflow on Saturday August 02, 2025 @04:43AM (#44765811)
I did use a shell script and script(1) to automate vi. Don't see the issue?
Re:You might not need tmux by anuramat on Wednesday August 06, 2025 @11:50AM (#44813628)
I suppose things that cause most of the problems don't exist in vi, eg (24 bit) color, image protocols or $TERM dependent features