The Computer Oracle

Unix: How to unsplit in screen

--------------------------------------------------
Rise to the top 3% as a developer or hire one of them at Toptal: https://topt.al/25cXVn
--------------------------------------------------

Music by Eric Matyas
https://www.soundimage.org
Track title: Fantascape Looping

--

Chapters
00:00 Unix: How To Unsplit In Screen
00:30 Answer 1 Score 46
00:47 Accepted Answer Score 106
01:28 Answer 3 Score 18
01:59 Answer 4 Score 1
02:13 Thank you

--

Full question
https://superuser.com/questions/243459/u...

--

Content licensed under CC BY-SA
https://meta.stackexchange.com/help/lice...

--

Tags
#unix #gnuscreen

#avk47



ACCEPTED ANSWER

Score 106


ctrl-a,X doesn't work on my distribution either.

If you go into the help by pressing ctrl-a,?, you may notice that there is no remove command listed. (This is the case on my distribution, for some reason). Note that this means there is no keybinding for the command, but the command should still work using the "long form" that maxelost suggested.

Don't worry, you can still remove the current split using "long form": ctrl-a:removeenter.

In addition, you can bind the remove command to X by putting this line in your ~/.screenrc file (and then restarting screen so the changes take effect, of course):

bind X remove



ANSWER 2

Score 46


Just use ctrlaQ (given that a is your screen-command key) to close all splits. ctrlaX closes only active window, as maxelot commented.

For example this page documents screen splitting, and other useful keys for screen.




ANSWER 3

Score 18


CTRL a + Q unsplits and lets you remain on the current window

whereas

CTRL a + X unsplits and puts you on the following available window

The first one with Q is great as you may want to remain on the current window when you need bigger space :)

Of course after that, should you need to revert to split screen, you will have to do again the CTRL a + S and CTRL a + Tab with CTRL a + Space to get back but that's ok... That would be nice if there was a way to toggle simply back and forth.




ANSWER 4

Score 1


If you want to unsplit the currently focused split to a window, Ctrl + a + ! will do the trick (tested on OSX, or check the shortcut by running Ctrl + a + ?)