Custom Search

Monday, February 10, 2014

How to Linux Terminal Split Screen and Color Split bar or border with Screen

1)
#sudo apt-get install screen

2)
Change color of split bar (border)
Edit ~/.screenrc and add following lines
#vim ~/.screenrc
#White text in Red border/bar
sorendition wr
#or
#White Text in Yellow border
sorendition wy

3)
#screen
Then press enter



4)
Split the Window
Horizontally
Ctrl + a, Then Press Shift + s
or
Vertically
Ctrl + a, Then Press Shift + \

5)
Switch between spilted windows
Ctrl + a, Then Press Tab
or
Ctrl + a, Then Type :focus
* Here :focus is a command

6)
In the spited window use following command to open existing session
Ctrl + a, Then Press 0-9
or
Ctrl + a, Then Press n or p
or
Ctrl + a, Then Press Shift + '
or
Ctrl + a, Then Presss c

7)
Remove current splitted window/region
Ctrl + a, Then Type :remove
* Here :remove is a command
or
Ctrl + a, Then Press Shift + x

8)
Remove all spiltted windows/regions except the current one.
Ctrl + a, Then Type :only
* Here :only is a command
or
Ctrl + a, Then Press Shift +q

9)
Close the screen and all regions
Ctrl + a, Then Press \

No comments:

Post a Comment