I have written about the process here: https://kashifaziz.me/blog/tmux-dev-workflow/
Make tmux pretty and usable (2024)
261–270 of 285 posts
Re: Make tmux pretty and usable (2024)
#262Earlier quoted context omitted.
I have a few embedded devices where flash space is limited. tmux is so much smaller than zellij, and it's not even close. Zellij is close to 50 megabytes, but tmux and all dependent libraries (minus libc, it's always there) is about 2 megabytes.
> Zellij is close to 50 megabytes, That's a Rust thing. It's what happens when you statically link because you monomorphise everything.
Re: Make tmux pretty and usable (2024)
#263Earlier quoted context omitted.
i have fedora. and yes, i am running make build. why did you choose wails btw? did you look at fyne? it's go-native and it seems to have a lot less dependencies. can the AI integration be turned off? i am not going to use it myself. is there a chatroom where we can talk through debugging my build problem? github issues? you didn't turn in the discussion forum for ttyphoon like you did for murex. or is there another p…
An earlier build used SDL directly. There were reasons I didn’t choose Fyne and that was basically that the effort wasn’t much less than working directly with SDL due to various (potentially self imposed) constraints. I then switched to Wails because I wanted to add Markdown, Jupyter support. And other things too. Quickly I realised it was too much for me to attempt SDL (even just the markdown parser proved an annoyi…
on AI, i am not concerned about a few menu items, but if we want to consider supply chain attacks as a risk, the less that gets downloaded and built, the better.
i'll open an issue then, i figure this is more for the benefit of other users of ttyphoon, and since this post is originally about tmux we are already off topic anyways.
Re: Make tmux pretty and usable (2024)
#264Earlier quoted context omitted.
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.
However a different process management model is that each parent must in turn signal its child processes to exit, in which case if the parent dies before that can happen you easily get orphan processes. There are use cases for both the process group model and individual signal models, and pros and cons to each.
Re: Make tmux pretty and usable (2024)
#265Earlier quoted context omitted.
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.
$ man prctl
man: No entry for prctl in the manual.
Maybe more linux will slop into POSIX and thence into OpenBSD in the fullness of time?Re: Make tmux pretty and usable (2024)
#266I would love to have a way to switch sessions easily, like with panes where I just click or have more shortcuts available
Re: Make tmux pretty and usable (2024)
#267Make tmux cut/paste work on mac terminal.app so I don't have to install iterm2 bloatware.
I select with mouse and paste to wherever, works every time? How can it not work? I think the only even loosely relevant setting on my .tmux.conf is: set -g mouse on
Re: Make tmux pretty and usable (2024)
#268I gave up on it once I discovered https://zellij.dev/ Just even for how tab and panes are setup, and how it's good for scrolling and text selection with your mouse for copy pasting.
https://github.com/zellij-org/zellij/releases/latest/downloa... '"> linux download Screaming into the void, I guess, but PSA. Don't use buttons for links. In my case, I couldn't right-click and copy the URL, but there are a lot of other reasons not to do this.
Re: Make tmux pretty and usable (2024)
#269I gave up on it once I discovered https://zellij.dev/ Just even for how tab and panes are setup, and how it's good for scrolling and text selection with your mouse for copy pasting.
I have a few embedded devices where flash space is limited. tmux is so much smaller than zellij, and it's not even close. Zellij is close to 50 megabytes, but tmux and all dependent libraries (minus libc, it's always there) is about 2 megabytes.
Re: Make tmux pretty and usable (2024)
#270What I don't see discussed is why tmux (and screen) are still a thing, when we have windowed desktops for 40+ years now. Disconnecting a session's lifetime from the connection's lifetime hardly need such lengthy tutorial. And displaying and arranging multiple virtual terminals was supposed to be the job of the terminal emulator and the windowing system.
only now we are seeing gui terminals to integrate such features: wezterm, ghostty, ttypoon, ... so we are discussing tmux because it took more than 40 years for those features to make it to the gui layer.