When I'm in a gnu screen I can split horizontally (or vertically) and start a terminal session in the new region. If I detach from this screen with
Ctrl-a,d and then resume, now I just see the second region of the split in the entire window. I know the first region is still there somewhere because if I type
exit in the second region then the first session shows up and I can type
exit again to actually close end the screen session.
How can I resume a screen with a split into regions and actually get my splits all visible at once?
An easy way to reproduce this issue:
$ screen -S splitresume $ export PS1="region 1$ " <Ctrl-a |>, <Ctrl-a TAB>, <Ctrl-a c> $ export PS1="region 2$ " <Ctrl-a d> $ screen -r splitresume
At least on my system, after
screen -r splitresume I only see the prompt with
region 2$. As I said above, If I exit that terminal session, I can now see the terminal with the
regsion 1$ PS1. I'd like to be able to resume and have the regions sredrawn in some visible space as well.
EDIT: I tried with the
resize command, but the response from screen is just a complaint:
resize: need more than one region.