Visit Jeremy's Blog.
Go Back > Forums > Linux Forums > Linux - Software
User Name
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.


  Search this Thread
Old 02-24-2014, 09:57 AM   #1
Registered: Apr 2013
Distribution: Gentoo
Posts: 79

Rep: Reputation: Disabled
/usr/bin/screen disable auto fit.

Is there a way to get the screen program to disable the auto fit feature?

I find that the program called Screen can be very helpful when admining a system from multiple locations. I use Screen in a way that it contains multiple windows while being attached to multiple virtual terminals. I recently started working on a script that will start screen detached in the background. The script creates a set of labeled windows some of which will have programs running inside.

The problem I am running into now more often than in the past is, I sometimes access it from terms with different geometry, causing important parts of the window to be hidden. This happens because sometimes an individual windows get multiply attached. As it happens, Screen will automatically fit the window to the first terminal that attaches to it. I have found that I can use the fit command to help out and set it to match the smaller terminal geometry.

Rather than a piecemeal solution, I would rather pick a size (80x25) and have all windows stay at that size. Any term with a larger display would have a some "dead space", but all attached terminals with at least 80x25 would be able to display the whole workspace.

I searched the man page but I did not see the right command. Any help would be appreciated.
Old 03-17-2014, 07:49 AM   #2
LQ Newbie
Registered: Feb 2014
Distribution: CentOS
Posts: 9

Rep: Reputation: Disabled


I found using kitty (putty) that it is this client that does the resize.
You may have to look to the client you are connecting with rather than screen itself.

In kitty under window - set size of window - forbid resizing.
When setting this the client remains at the size i have drawn the window out to when connecting to screens.

Hope this helps.
Old 06-03-2015, 04:56 PM   #3
Registered: Apr 2013
Distribution: Gentoo
Posts: 79

Original Poster
Rep: Reputation: Disabled

I've come up with a work-around that I would classify as a kludge. What I did was, run two instances of screen servers in detached mode, one I call active and the other I call shadow. Then I open the number of needed pages in both active and shadow. Then, set size on with "screen -S {name} -p {0-4} -X height 23 80" in both. Then inside of shadow, I start a client screen and link it to a page in active. I use a command like "screen -S shadow -p 0 -X stuff 'screen -x -r {name} -p 0'" "screen -S shadow -p 0 -X digraph 0015. I make sure that I only attach to the active screen using -x -S active

It is all done with a script, but it defiantly seams like a "bag on the side". However it works because the each page is always attached to the screen client inside shadow and that has the desired screen geometry. The geometry never changes no mater which computer I log on from.


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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 Off
HTML code is Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
Error: Cannot find 'ssh-keygen' in '/sbin:/bin:/usr/sbin:/usr/bin:/usr/X11R6/bin' venu.navat Linux - Software 3 03-08-2012 04:00 AM
[SOLVED] bash: /usr/local/bin/xdsi: /usr/bin/wish: bad interpreter: No such file or directory Berwhale Linux - Newbie 2 09-15-2011 02:59 PM
echo $PATH = /home/g3rc4n/bin:/usr/local/bin:/usr/bin:/bin:/usr/games ? i_heart_pandas Linux - Software 7 09-18-2009 08:33 AM
Failed to chck remot comnd executin using shells /usr/bin/ssh and /usr/bin/rsh farnaw4u Linux - Software 2 04-06-2009 12:08 AM
path in services wrong for clamav updated frm 0.75 to 0.80 usr/bin vs usr/local/bin Emmanuel_uk Linux - Newbie 3 04-22-2005 01:02 AM > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 01:45 PM.

Main Menu
Write for LQ is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration