News for hackers. Stuff that matters.
Re:Getting started with Tmux by tjoff on Sunday September 16, 2018 @11:08AM (#17999276)
One issue I have with tmux is that you can't resize the window to the current device. The developers seems to be very adament that it isn't implemented.

Currently tmux will adapt the size to the smallest (on each axis) client. This doesn't work well with persistent connections from a phone and PC since they typically have quite different window sizes.

In screen I hit ctrl-a + F to resize to current client and I miss it every time I use tmux.

Unfortunately I still prefer tmux, worth trying out if you haven't!

Re:Getting started with Tmux by gryfft on Sunday September 16, 2018 @11:16AM (#17999308)
Maybe I'm not understanding, but if you attach to a tmux session with the -d flag, it will detach the session from any other clients and resize it to the window you're using.
Re:Getting started with Tmux by tjoff on Sunday September 16, 2018 @11:18AM (#17999317)
Yes, and maybe that is the reasonable thing to do, but I don't want to detach.
Re:Getting started with Tmux by marcosdumay on Sunday September 16, 2018 @12:12PM (#17999617)
When an application queries the screen size from ncurses or some other lib, what value do you expect it to get?

I don't think it's a reasonable requirement.

Re:Getting started with Tmux by tjoff on Sunday September 16, 2018 @12:18PM (#17999657)
I'm very happy with screens implementation. It will stick to the size of the first client and you override it at will in any other client or if you want to update the size (maybe you changed the size of the window).
Re:Getting started with Tmux by marcosdumay on Sunday September 16, 2018 @10:13PM (#18002658)
Oh, that's reasonable. Sorry.
Re:Getting started with Tmux by another-cuppa on Sunday September 16, 2018 @11:56AM (#17999513)
I'm curious about your setup and why you wouldn't want to detach smaller screens.
Re:Getting started with Tmux by tjoff on Sunday September 16, 2018 @12:15PM (#17999635)
I don't want to detach my desktop just because I want to check current status on my phone. Maybe I have two sessions on two computers and I, temporarily for a few commands, want to go fullscreen. With tmux I have to detach the other client(s), go fullscreen, and when done I have to reattach the client(s). This for something that takes a command to adapt and again recover in screen.

It is just an inconvenience, nothing huge, but big enough to obstruct my flow.

Re:Getting started with Tmux by aryamaan on Sunday September 16, 2018 @01:13PM (#17999906)
Curious. What do you do with tmux on phone?
Re:Getting started with Tmux by tjoff on Sunday September 16, 2018 @01:21PM (#17999944)
Anything I do on my desktop that the mobile keyboard allows for (conveniently), I attach to the same sessions. But the most common one is IRC. And for that I still use screen just because of this issue (I always have IRC attached on several clients).
Re:Getting started with Tmux by philsnow on Sunday September 16, 2018 @07:33PM (#18001919)
This still hasn't been fixed? I checked out tmux 7 or 8 years ago and this was the pain point that tipped the scale from "it's just as good as Screen and it doesn't have all the hardware terminal emulation code I will never use" to "it breaks a workflow for me, I'll check it out later".
Re:Getting started with Tmux by yjftsjthsd-h on Sunday September 16, 2018 @11:20AM (#17999324)
What should happen for the smaller client then? Just show a cropped part?
Re:Getting started with Tmux by tjoff on Sunday September 16, 2018 @11:22AM (#17999332)
Yes, anchored to the left-bottom. Still very usable for light work in many cases and you can follow along. And if it isn't a quick ctrl-a + F and you are all set.
Re:Getting started with Tmux by kurtisc on Sunday September 16, 2018 @07:37PM (#18001938)
This also prevents one session over multiple displays with different orientations/resolutions.