I have a window called 'Codes' in window 1, and I want to move it to window 7, is it possible?
-
1What are you talking about - do you mean move a x-window to a different virtual desktop? What X windows manager are you using?– Adrian CornishDec 13, 2011 at 4:27
-
1nope, I mean the window in GNU Screen. Thanks for asking.– RockyDec 13, 2011 at 7:46
1 Answer
Yes, it is possible. Go to window 1, type the command character (e.g. CTRL-A
) and then type: :number 7
. If there is already a window at 7, then the two windows will be swapped (window 7 will become window 1). From the manpage:
Change the current windows number. If the given number n is already
used by another window, both windows exchange their numbers. If no
argument is specified, the current window number (and title) is shown.
-
10@Arcege , Thanks for this answer. Following your answer I figured out from screen's manual that it is possible to provide the target window number with relative values. For example:
:number +1
would swap current window with the one just right to it. I find this option useful with key binding that controls the current window location (where one does not know the absolute index of the windows to swap).– ElazarRAug 28, 2017 at 13:44