DaemonForums  

Go Back   DaemonForums > Miscellaneous > General software and network

General software and network General OS-independent software and network questions, X11, MTA, routing, etc.

Reply
 
Thread Tools Display Modes
  #1   (View Single Post)  
Old 25th June 2009
Carpetsmoker's Avatar
Carpetsmoker Carpetsmoker is offline
Real Name: Martin
Tcpdump Spy
 
Join Date: Apr 2008
Location: Netherlands
Posts: 2,243
Default tmux disable automatic resize

I've been using tmux for some time now, and it's working great for me.

However, there is one annoyance: Every time I attach a session the windows is automatically resized.

I've tried using the aggressive-resize option, but that doesn't seem to have a lot of effect.

Anyone managed to figure this out?
__________________
UNIX was not designed to stop you from doing stupid things, because that would also stop you from doing clever things.
Reply With Quote
  #2   (View Single Post)  
Old 25th June 2009
DutchDaemon's Avatar
DutchDaemon DutchDaemon is offline
Real Name: Ben
Spam Refugee
 
Join Date: Jul 2008
Location: Rotterdam, The Netherlands
Posts: 336
Default

Screen has the exact same behaviour, unless the command is issued in a full-screen (maximised) terminal/putty/whatever session. I've never found out why it did that and how it could be prevented.. Moreover, if I compare two identical PuTTy sessions (only the hostnames differ in the config files), to almost identical FreeBSD 7.2-STABLE installations running the exact same versions of screen, only one session resizes. The other stays the same. Argh!
Reply With Quote
  #3   (View Single Post)  
Old 25th June 2009
phoenix's Avatar
phoenix phoenix is offline
Risen from the ashes
 
Join Date: May 2008
Posts: 696
Default

What do you mean by "resize"?

If I start a tmux session on my home computer, in a Konsole window at 1024x768, then connect to it from my work computer, in a Konsole window at 1280x1024, I get a 1024x768 "window" inside the tmux session, with ......... around the outside. ie, the tmux "window" stays the same size as when it started.
__________________
Freddie

Help for FreeBSD: Handbook, FAQ, man pages, mailing lists.
Reply With Quote
  #4   (View Single Post)  
Old 25th June 2009
BSDfan666 BSDfan666 is offline
Real Name: N/A, this is the interweb.
Banned
 
Join Date: Apr 2008
Location: Ontario, Canada
Posts: 2,223
Default

I don't understand the problem, what is resizing exactly? the terminal emulator?

Or are you talking about the status bar thing stealing a line?

Is this commit relevant?
http://marc.info/?l=openbsd-cvs&m=124587079424219&w=2
http://www.openbsd.org/cgi-bin/cvswe...?r1=1.5#rev1.5
Reply With Quote
  #5   (View Single Post)  
Old 25th June 2009
Carpetsmoker's Avatar
Carpetsmoker Carpetsmoker is offline
Real Name: Martin
Tcpdump Spy
 
Join Date: Apr 2008
Location: Netherlands
Posts: 2,243
Default

Quote:
What do you mean by "resize"?

If I start a tmux session on my home computer, in a Konsole window at 1024x768, then connect to it from my work computer, in a Konsole window at 1280x1024, I get a 1024x768 "window" inside the tmux session, with ......... around the outside. ie, the tmux "window" stays the same size as when it started.
I have a xterm, any size.
# tmux new centerim
[xterm resized]
[dettach tmux (^pd)]

I resize my xterm to any size
# tmux attach
[xterm resized again]

I have this with any program, including tcsh.

Quote:
Screen has the exact same behaviour, unless the command is issued in a full-screen (maximised) terminal/putty/whatever session. I've never found out why it did that and how it could be prevented.. Moreover, if I compare two identical PuTTy sessions (only the hostnames differ in the config files), to almost identical FreeBSD 7.2-STABLE installations running the exact same versions of screen, only one session resizes. The other stays the same. Argh!
I never had this problem with screen, I used screen since FreeBSD 5 orso -- Never even looked at screen configuration either.
__________________
UNIX was not designed to stop you from doing stupid things, because that would also stop you from doing clever things.
Reply With Quote
  #6   (View Single Post)  
Old 25th June 2009
DutchDaemon's Avatar
DutchDaemon DutchDaemon is offline
Real Name: Ben
Spam Refugee
 
Join Date: Jul 2008
Location: Rotterdam, The Netherlands
Posts: 336
Default

I guess CS and I mean the same thing. Suppose I open a PuTTY session in a 800 x 600 window, ssh into a box, and then issue the command 'screen something', that window resizes to something like 200 X 400. It seems that Terminal and xterm don't do that, only PuTTY. And not every PuTTY session behaves the same .. some keep the same window size. I seeem to remember it happened with SecureCRT too, but that's quite long ago.

Last edited by DutchDaemon; 25th June 2009 at 10:39 PM.
Reply With Quote
  #7   (View Single Post)  
Old 25th June 2009
Carpetsmoker's Avatar
Carpetsmoker Carpetsmoker is offline
Real Name: Martin
Tcpdump Spy
 
Join Date: Apr 2008
Location: Netherlands
Posts: 2,243
Default

I never had problems with screen in combination with Putty or SecureCRT either ... :-/
__________________
UNIX was not designed to stop you from doing stupid things, because that would also stop you from doing clever things.
Reply With Quote
  #8   (View Single Post)  
Old 25th June 2009
BSDfan666 BSDfan666 is offline
Real Name: N/A, this is the interweb.
Banned
 
Join Date: Apr 2008
Location: Ontario, Canada
Posts: 2,223
Default

I don't see the behaviour that C.S. describes, but it's probably related to this:

http://marc.info/?t=124165003900002&r=1&w=2
Reply With Quote
Reply

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Disable manual fsck on startup Malakim FreeBSD General 4 2nd September 2008 05:28 PM
Automatic launching of a script upon login. Help me figure this out EvilMonkeySlayer OpenBSD General 5 28th June 2008 03:27 PM
Automatic Mount for Devices/Filesystems vermaden FreeBSD General 11 12th June 2008 04:55 AM
Remove/disable a former system user anomie Guides 6 19th May 2008 12:37 AM
Automatic Thread Subscription When Posting? JMJ_coder Feedback and Suggestions 6 6th May 2008 03:20 AM


All times are GMT. The time now is 06:31 AM.


Powered by vBulletin® Version 3.8.4
Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Content copyright © 2007-2010, the authors
Daemon image copyright ©1988, Marshall Kirk McKusick