News for hackers. Stuff that matters.
Re:You might not need tmux by suslik on Friday August 01, 2025 @07:09AM (#44755268)
Wow, I've tried tmux like a hundred times and could never learn to like it, falling back to screen and promising to myself - never again. I'm going to break my promise to try this.
Re:You might not need tmux by antonvs on Friday August 01, 2025 @10:26AM (#44757284)
> falling back to screen

So you're saying you're a masochist

Re:You might not need tmux by hdgvhicv on Saturday August 02, 2025 @03:32AM (#44765520)
I’ve used screen for 25 years. What am I missing without tmux?
Re:You might not need tmux by em-bee on Saturday August 02, 2025 @09:06AM (#44767284)
mainly sessions, i think, and maybe scripability. sessions are groups of windows. i have one session per project or work mode. (one for email and connecting to remote machines, one for writing stuff, one for managing my hobbies, one for dev work...)
Re:You might not need tmux by nothrabannosir on Saturday August 02, 2025 @12:03PM (#44768716)
Screen has sessions. You can name them, and choose which session to resume when you reconnect.

I use tmux now because it’s supposed to be cool but secretly like gp I also wonder what the actual difference is , besides a different default leader key. Oh and killer iterm2 integration.

Re:You might not need tmux by em-bee on Saturday August 02, 2025 @04:17PM (#44771031)
it's been a long time since i used screen. afaik screen had one session per process. you could switch processes by detaching from one and attaching to another. in tmux it's all one process, which allows you to create new sessions and switch them interactively and move windows from one session to another, or even have a window in more than one session. i can also see all windows from all sessions:

    (0)   - main: 6 windows
    (1)   ├─> 0: elvish-
    (2)   ├─> 1: elvish*: "[mosh] embee@foo:~"
    (3)   ├─> 2: elvish
    (4)   ├─> 3: elvish: "embee@bar:~"
    (5)   ├─> 4: elvish: "[mosh] embee@fedora:/etc"
    (6)   └─> 5: elvish
    (7)   - local: 6 windows (attached)
    (8)   ├─> 0: elvish
    (9)   ├─> 1: elvish-
    (M-a) ├─> 2: [tmux]*
    (M-b) ├─> 3: elvish
    (M-c) ├─> 4: elvish
    (M-d) └─> 5: elvish
    (M-e) - dev: 7 windows (attached)
    (M-f) ├─> 0: elvish*
    (M-g) ├─> 1: elvish-
    (M-h) ├─> 2: elvish
    (M-i) ├─> 3: elvish
    (M-j) ├─> 4: elvish
Re:You might not need tmux by nolist_policy on Friday August 01, 2025 @10:36AM (#44757413)
Isn't the screen equivalent literally this?

  Host tmux
      HostName 1.2.3.4
      IdentityFile ~/.ssh/etc.etc.etc
      RequestTTY force
      RemoteCommand screen -dR
Edit: I guess it's missing the iTerm integration
Re:You might not need tmux by fouc on Friday August 01, 2025 @12:54PM (#44759362)
I've always found screen's ctrl-a is so much easier to reach for than tmux's ctrl-b. I recommend re-mapping ctrl-b to ctrl-a
Re:You might not need tmux by __david__ on Friday August 01, 2025 @03:29PM (#44761318)
Both C-a and C-b are so commonly used that I don’t like either of them. I ended up going with C-\ since I only rarely use that one.
Re:You might not need tmux by _kst_ on Friday August 01, 2025 @01:57PM (#44760128)
I use Ctrl-Space.

    unbind-key C-b
    set -g prefix C-Space
    bind-key C-Space send-prefix
I find it a lot easier to type than either Ctrl-A or Ctrl-B.
Re:You might not need tmux by cyberpunk on Friday August 01, 2025 @04:18PM (#44761983)
The real superpower prefix key is ` especially if you have a british mac keyboard.
Re:You might not need tmux by anthk on Friday August 01, 2025 @04:33PM (#44762163)
I just remapped the keys to ctrl-z after I swapped ctrl and caps lock. As you'd never suspend stuff under tmux for obvious reasons, you'll get the whole keyset for any cli/tui software.
Re:You might not need tmux by rcakebread on Friday August 01, 2025 @05:02PM (#44762457)
I'll bite. What's so obvious? I suspend jobs in bash all the time while using tmux.
Re:You might not need tmux by anthk on Friday August 01, 2025 @05:35PM (#44762753)
Often TMUX it's for tasks you woudn't suspend. And, if any, you can just use kill -STOP and kill -CONT among other signals from another tmux pane.
Re:You might not need tmux by fireflash38 on Saturday August 02, 2025 @07:47AM (#44766842)
Or if you want to stay in same pane, (chord, I still use C-b), :, "send-keys C-z"
Re:You might not need tmux by fouc on Tuesday August 05, 2025 @01:36AM (#44794640)
pinky on caps and ring finger on z ?
Re:You might not need tmux by crabsand on Monday August 11, 2025 @01:47PM (#44867157)
+1. Was using screen with this and now tmux for the last 15 years maybe.
Re:You might not need tmux by ornornor on Wednesday August 13, 2025 @02:07AM (#44885104)
I use tmux to replace terminal emulator tabs, I also suspend jobs all the time (most notably vim to run git commands)

In any case with your bindings you can still C-z z and it sends C-z to the process.

Re:You might not need tmux by saagarjha on Saturday August 02, 2025 @05:13AM (#44765942)
I never really understood the people who use these keybinds. Do you not use it to go to the start of the line?
Re:You might not need tmux by scuderiaseb on Saturday August 02, 2025 @06:05AM (#44766247)
Personally no, I use vim keybindings in the terminal not emacs which is the default.
Re:You might not need tmux by Biganon on Saturday August 02, 2025 @06:28AM (#44766380)
Ctrl-a and then a still goes to the start of the line.
Re:You might not need tmux by benreesman on Saturday August 02, 2025 @05:38AM (#44766067)
I've had it on C-o forever to mostly stay out of readline's way, but I've been dabbling with C-Space.