Live data from Hacker News

Make tmux pretty and usable (2024)

hamvocke.com

101–110 of 285 posts

Re: Make tmux pretty and usable (2024)

#102
post #82

Earlier quoted context omitted.

Is it possible for a multiplexer process to die, but in such a bad way that its child processes continue to run? I’ve been relying on the fact that in the worst-case scenario (if a pane hangs and tmux session becomes unresponsive) I can just kill tmux server and not have to hunt down and kill dozens of individual processes afterwards.

A `kill -9` will cause many a process to die and give no chance to cleanup any child processes. Some percentage of users continue to use `kill -9` by default, which may result in a mess of a process tree. Otherwise if the crash is bad enough that cleanup code cannot run (maybe it's being run on OpenBSD and an incompetent programmer didn't check the return value of a malloc and for some reason the kernel now nukes the…

TIL. I didn’t know it’s the responsibility of the parent, thought OS automatically handles child processes.

Re: Make tmux pretty and usable (2024)

#103
post #82

Earlier quoted context omitted.

Is it possible for a multiplexer process to die, but in such a bad way that its child processes continue to run? I’ve been relying on the fact that in the worst-case scenario (if a pane hangs and tmux session becomes unresponsive) I can just kill tmux server and not have to hunt down and kill dozens of individual processes afterwards.

A `kill -9` will cause many a process to die and give no chance to cleanup any child processes. Some percentage of users continue to use `kill -9` by default, which may result in a mess of a process tree. Otherwise if the crash is bad enough that cleanup code cannot run (maybe it's being run on OpenBSD and an incompetent programmer didn't check the return value of a malloc and for some reason the kernel now nukes the…

That depends on how the children were spawned, no? prctl(PR_SET_PDEATHSIG, SIGTERM); or similar will fix this.

Re: Make tmux pretty and usable (2024)

#104
post #73
post #57

Earlier quoted context omitted.

without running zellij on the remote machine? how?

I'm unclear what's being asked. Zellij is just a TUI-based terminal multiplexer like tmux and screen, you either run it locally and SSH within it to a remote machine, or SSH to a remote machine and run Zellij from within the remote connection.

I guess they mean 'have zellij hold your session when you log off/close controlling terminal'. (that would require zellij on remote)

Re: Make tmux pretty and usable (2024)

#105
As a long time user of gnu screen (almost fifteen years now) i still have on my todo list to come up with a tmux config that mimics gnu screen… does somebody know if such a thing exists already?

Btw I don’t strictly believe in a gnu screen superiority, i’m just lazy.

Re: Make tmux pretty and usable (2024)

#106
post #17

I had my tmux customized to the point I forgot how to use it on a clean install which is a problem when I'm sshing into a server. I wish it had better defaults but now I run it as is. After a while you get used to it. The only thing I always have to change is the mouse scroll and my brain cannot retain the exact command.

> I had my tmux customized to the point I forgot how to use it on a clean install which is a problem when I'm sshing into a server.

I had the same issue with gnu emacs… but at some point i lost my very custom configuration when the disk broke… i resorted to use a mostly-vanilla emacs :)

Re: Make tmux pretty and usable (2024)

#107
post #27

I appreciate that tmux has theoretical advantages over screen, but man does the implementation suck. On Mac it still seems like there's no way to copy text if you have mouse mode on (at least in code-server).

I was wondering about tmux vs screen (+splitvt) but didn’t want to ask. What are the advantages?

Re: Make tmux pretty and usable (2024)

#108
> Published on Aug 17, 2015 > Last updated on Oct 2, 2024

Why now?

At least some of the links in it don't mention plugins (which luckily some comments here do). Beside tmux-continuum and tmux-sensible, I'd recommend jaclu/tmux-menus.

Re: Make tmux pretty and usable (2024)

#109
I used tmux for quite some time, and just stopped using it one day. I realized that whatever tmux brings can be done better by a good terminal.

I also hated dealing with all the wrong colors, escape character support, missing chars and messed up terminal buffers

Re: Make tmux pretty and usable (2024)

#110

Earlier quoted context omitted.

Cool, I'm one of the lucky ten thousand today. Thanks.

Context: https://xkcd.com/1053/ Then, if you're like me and read this years ago, play around with the Light Mode dropdown which was new to me. :)

> play around with the Light Mode dropdown which was new to me. :)

It's this year's April Fools' joke: https://xkcd.com/3227/ :P

Post reply on HN