Will's blog

purpose: Will Kahn-Greene's blog of Python, Linux, random content, PyBlosxom, Miro, and other projects mixed in there ad hoc, half-baked, and with a twist of lemon

Wed, 08 Dec 2004

Screen

screen is trippy. My friend says this is what you need to know about screen:

  1. $ screen
  2. $ (launch something)
  3. ctrl-a ctrl-d
  4. $ (do something else)
  5. $ screen -x
Posted by Marius Gedminas on Wed Dec 8 14:06:57 2004
And if you're too used to emacs-style key bindings (^A instead of Home), you'll want to put the following into ~/.screenrc and you'll be able to control screen with ^B:

  defescape ^bb
  escape ^bb

Another useful screen trick: if you want to keep your xterm scrollback buffer while in screen, add the following to .screenrc:

  termcapinfo xterm|xterms|xs ti=\E7\E[?47l

By the way, I've found that a Preview button is a very useful thing to have in a blog comment system.


Posted by will on Wed Dec 8 14:26:39 2004
Someone will code in a preview button eventually.  I'll make a note of the preview button status in the comment form.


Posted by bill mill on Wed Dec 8 14:52:10 2004
screen rocks. The command I use the most is ^aS, which splits the screen. I bound ^aj to switch between windows; I don't remember what it was by default.


Posted by Matthew Scott on Wed Dec 8 15:21:57 2004
My favorite screen incantation is "screen -D -R" -- detach if running in another term, and reattach here.  Starts a new screen process if one isn't yet running.


Posted by Chad Walstrom on Wed Dec 8 22:49:53 2004
screen was a godsend for me in college.  I refused to pay for computer lab fees only to sit on a fricking Windows 3.1 PC (I'm old) when there were plenty of Dec 420 amber terminals (see) in the "fish bowl".  I used to face two or three toward me, until a kind fellow showed me screen.  My world changed!  Now, I could go to the bathroom and not have to worry about some jerk rebooting the terminal so he could log in.  My locked session (yes, you can lock a session and walk away) would simply be waiting for me the next time I logged in.


Please keep comments appropriate. I reserve the right to remove anonymous comments, flames, spammy, inappropriate, and other comments that I deem to be worth removing.

Note: New comments get placed in a "draft" status and will NOT show up on the site until I explicitly approve it. Usually that happens within 24 hours, but sometimes I go away and it takes a day or two.

Note 2: There is now a preview button for those of you who want to see a preview! However, it doesn't quite work the way you'd think it should work. I'll look into adjusting it some day.

Note 3: If you can't for some reason post a comment, send me an email: willg at bluesock dot org.

Your name:


Your e-mail address (this doesn't get displayed to anyone--I use it to contact you if there are issues):


URL of your website (optional):


Comment:


Yes, I am a human!

pyblosxom::2.0 dev

All contents Copyright 1996 to 2008 Will Guaraldi.
Creative Commons License
This work is licensed under a Creative Commons Attribution-Noncommercial-Share Alike 3.0 United States License.