Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

GNU screen auto re-size with screen -x

Tags:

Is there a way to auto re-size screen windows, along with screen -x option? I know we can do this by using the screen fit command, once the shared screen session is open, but is there a way to do this automatically? (just like with screen -r -d, the window is re-sized automatically). I am trying to open a shared screen session automatically, when a new ssh session is opened (by using the screen -x command in .bash_profile), this works; but the window is not re sized. Any suggestions would help.

like image 562
Rand Avatar asked Apr 17 '13 00:04

Rand


People also ask

How do I resize my screen in Linux?

Press Alt + F7 to move a window or Alt + F8 to resize. Use the arrow keys to move or resize, then press Enter to finish, or press Esc to return to the original position and size. Maximize a window by dragging it to the top of the screen.

How do I unsplit GNU screen?

Just use ctrl a Q (given that a is your screen-command key) to close all splits.

How does GNU screen work?

GNU Screen is a terminal multiplexer, a software application that can be used to multiplex several virtual consoles, allowing a user to access multiple separate login sessions inside a single terminal window, or detach and reattach sessions from a terminal.

What is the command used for simple use of GNU screen?

Log files of current screen sessions can be started with the Ctrl+a H command, which will make a file called screenlog. X where X is the number of your screen session. A screenshot of what is currently in your screen window can be invoked with Ctrl+a h, creating a file called hardcopy.


1 Answers

From http://www.gnu.org/software/screen/manual/screen.html

C-a F (fit) Resize the window to the current region size. See Window Size.

Note this is a capital F, so for me, it's ctrl+a shift+f

like image 182
J K Avatar answered Oct 08 '22 23:10

J K