I saw some body split their window to 2x2, I just want to know how to do that? I know the 'split' command in Screen can only split the window horizontally.
The latest version of GNU screen allows you split the window vertically without any external patches. Here is one way to get it and use it:
- Checkout/clone/download the source
- Build it in an easy sequence of
install. I didn't have any problems with dependencies on Mountain Lion.
To get a vertical split use:
C-a | // Create a split C-a <Tab> // Move to the split C-a c // Create a new window within the split
I don't think this is a reason to switch to tmux any more like others have been suggesting.
Check out the video tutorial on Split Screen with Screen in Linux - BASH . At time 2:00 minute, there would be a solution.
Ctrl+A, S # Create another window
Ctrl+A, Tab # Moving from another window
Ctrl+A, c # Create new session
Ctrl+A, | # Splitting vertical (pipe symbol)
Ctrl+A, Shift+S # Splitting horizontal
Ctrl+A, X # Close a window
-v option to
split command in
screen. From the manpage:
Split the current region into two new ones. All regions on the display are resized to make room for the new region. The blank window is dis‐ played on the new region. Splits are made horizontally unless -v is used. Use the "remove" or the "only" command to delete regions. Use "focus" to toggle between regions.