Live data from Hacker News

Make tmux pretty and usable (2024)

hamvocke.com

171–180 of 285 posts

Re: Make tmux pretty and usable (2024)

#171
post #163
post #142

Earlier quoted context omitted.

Once I discovered window managers and graphics, I stopped using half-baked features to emulate them in the terminal. I use tmux to reattach to programs after the network connection dies, and not really anything else. I would welcome a version of it that stripped out everything but that, and just replayed the last few pages of scrollback on reattach.

window manager like what though? Mac WM is horrible, I use aerospace to make it tolerable

i3, dwm, hyprland etc...

Re: Make tmux pretty and usable (2024)

#172
post #32
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.

Why not just `scp ~/.tmux.conf remotehost:`?

Because I'm not the owner of the remote host.

Re: Make tmux pretty and usable (2024)

#174
post #3

I 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.

The only (deal breaker for me ) weakness of zellij - doesn't support copy/paste from the keyboard (from the screen/scrollback) and doesn't support multiple copy/paste buffers. I do that roughly every 60-90 seconds with tmux - so, until the zellij developers relent (they suggest the "proper way" of copy paste is to pipe the data into a text editor and use that - but has the downside of not supporting system copy-paste…

Zellij has some controls for how copy/paste is handled. Perhops these could help you in the future? Link: https://zellij.dev/documentation/options.html#copy_command

Re: Make tmux pretty and usable (2024)

#175

I left tmux for zellij after several unsuccessful attempts to get Shift+Enter working. Was quite impressed initially and invested weeks in building new muscle memory, but somehow Zellij crashed with panic more than once, leaving all my processes orphaned. Decided to go back to tmux, and found a simple fix for my Shift+Enter issue. In case anyone is looking for it, the fix is "bind-key -T root S-Enter send-keys C-j" b…

Or if you want to avoid having to set new bindings, do '\ + enter' (which escapes the enter).

Re: Make tmux pretty and usable (2024)

#176
post #3

I 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)

#177
I don't get it. I don't want a 1970s teletype interface in 2026 just to have persistent command line sessions.

Where's the 2026 windowed version that feels exactly like a native terminal/iTerm/ghostty app but keeps sessions alive and lets me reconnect to them, no middle man with Ctrl keys for control.

I know this post will get a lot of hate responses. I don't care. Respond by fax

Re: Make tmux pretty and usable (2024)

#178
post #170
post #75

Earlier quoted context omitted.

If screen crashes you lose the sessions, Tmux maintains state. Screen does not have UTF8 support, tmux does. Otherwise just a bunch of more sane original defaults in tmux to make things much familiar. In 2026 if given a choice between screen and tmux to use/learn, most are going to go with tmux.

> Screen does not have UTF8 support, tmux does. “‘-U’ Run screen in UTF-8 mode. This option tells screen that your terminal sends and understands UTF-8 encoded characters. It also sets the default encoding for new windows to ‘utf8’.” — https://www.gnu.org/software/screen/manual/screen.html#Invok... > “Command: defutf8 state (none) Same as the ‘utf8’ command except that the default setting for new windows is changed.…

Which does not work correctly for Korean, Japanese, Chinese, I think Thai, and a few more with somewhat ambiguous character widths.

This can lead to ghost characters that aren't shown, overlapping characters, etc.

It was an attempt to bolt on UTF8 support, but it's not great.

Re: Make tmux pretty and usable (2024)

#179

Earlier quoted context omitted.

Interesting, for me `shift+enter` hasnt worked, but `option+enter` does give me new lines in Claude Code's promptbox inside tmux on MacOS.

Interesting. I’ve just been using ‘\ + enter’

I just use Ctrl-g to open the prompt in emacs.

Re: Make tmux pretty and usable (2024)

#180
post #88

I love tmux but one thing which really annoys me is the fact that I cannot use the mouse wheel or the scroll back to see the previous content. I know there are shortcuts to go forward and back but I always forget them and they are not easily accessible on my keyboard and cumbersome.

I think the mouse wheel is mapped by default if you `set mouse on`? I also additionally map Shift-PageUp/Down in my config. And recently they added a `pane-scrollbars` option for a clickable ASCII scrollbar.

Thanks! I works. I modified my ~/.tmux.conf file to be like this:

# Activate mouse mode

set -g mouse on

# Enter copy mode and scroll up with PageUp

bind-key -n Pageup copy-mode -u

# Scroll down with PageDown; if at the bottom, it will exit copy mode automatically

bind-key -T copy-mode-vi Pagedown send-keys -X page-down

bind-key -T copy-mode-vi Pageup send-keys -X page-up

Post reply on HN