Take the 2-minute tour ×
Super User is a question and answer site for computer enthusiasts and power users. It's 100% free, no registration required.

I am currently using the GNU Screen tool. Now my question is whether there is a way to organize or rather change the order of the screens/ screen list displayed at the bottom of my console window. I haven't managed to do this however having my screens sorted would be a nice thing.

share|improve this question

migrated from stackoverflow.com Sep 6 '10 at 20:30

This question came from our site for professional and enthusiast programmers.

add comment

3 Answers 3

Open :windowlist move windows up and down with . (dot) and , (comma). I find it helpful to organize windows in groups. You can create a group with :screen -t mygrouptitle //group but for this you need Screen 4.1.0 which is unreleased yet, so it is necessary to get git version and compile. For sorting of windows there is screnum script but I find :windowlist -m (MRU list) much more useful.

share|improve this answer
add comment

hehe, if you need that, you're THE screen dude :-) Me, I never use more than 3 at the most.

Try creating them in the sorted order you want, and if you keep your screens below 9, you can access them directly using Ctrl-a screen_number

(Accessing by number demonstrates screen controll :-) ).

share|improve this answer
add comment

You might want to check out creating a custom .screenrc file to open windows specific to whatever project/environment you're working on when you startscreen. That way your windows will always be in the same order and named the same way, and you can even start up whatever programs you want in each window.

Here's my .screenrc.ror file, which I use when working on Ruby on Rails projects:

# to use this:
# screen -c $HOME/.screenrc.ror
# read normal .screenrc
source $HOME/.screenrc

screen -t shell
screen -t shell2
screen -t console
screen -t mongrel
screen -t log tail -f -n200 log/development_vm.log
screen -t mysql mysql -u www-rw -pwww-rw-pass
# start with main 'shell' window showing
select 0
share|improve this answer
add comment

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.