Stories
Slash Boxes
Comments
NOTE: use Perl; is on undef hiatus. You can read content, but you can't post it. More info will be forthcoming forthcomingly.

All the Perl that's Practical to Extract and Report

use Perl Log In

Log In

[ Create a new account ]

gnat (29)

gnat
  (email not shown publicly)

Journal of gnat (29)

Wednesday March 17, 2004
04:05 AM

Things All Unix Hackers Should Know

[ #17932 ]
nth in the list of things every Unix hacker should know: screen. My tip for surviving screen is to configure it to use Ctrl-G instead of Ctrl-A. Here's my .screenrc:

defflow off
escape ^Gg
deflogin off

Why not Ctrl-A? Because I have thirteen years of neural wiring making me type Ctrl-A Ctrl-K if I want to go to the start of the line then kill to the end of the line (in both shell and emacs). This kills the window if you're using screen's default bindings. Think of it as a 1980s version of the problems caused by the proximity of Apple-Tab and Apple-Q ...

--Nat

The Fine Print: The following comments are owned by whoever posted them. We are not responsible for them in any way.
 Full
 Abbreviated
 Hidden
More | Login | Reply
Loading... please wait.
  • My screenrc:
    echo "reading screenrc"
    escape \034\034
    deflogin off
    termcapinfo xterm 'hs:ts=\E]2;:fs=\007:ds=\E]2;screen\007'
    hardstatus string "%H [screen %n%?: %t%?] %h"
    unsetenv SSH_TTY
    unsetenv SSH_CONNECTION
    unsetenv SSH_CLIENT
    --
    • Randal L. Schwartz
    • Stonehenge
  • I love screen too.

    I really suggest doing three things when using screen:

        1. Having a screen number -> task convention (screen 0 is
                editor, screen 1 is mail, etc..).

        2. Using screen's bindkey to let you jump easily between the
                various screens. I use the GTK-tabbed-view-compatible
                alt-# convention.

        3. Setting up a bindkey for MRU scr
    • Mary Poppins writes:

      really suggest doing three things when using screen:

      1. Having a screen number -> task convention (screen 0 is             editor, screen 1 is mail, etc..).
      2. Using screen's bindkey to let you jump easily between the             various screens. I use the GTK-tabbed-view-compatible             alt-# convention.
      3. Setting up a bindkey for MRU screen (I use alt-dash).

      Absolutely! It's the same f

      • One important difference between screen and a tabbed
        terminal window is the client-server nature of screen. You
        can have more than one screen client attach to a given
        screen daemon. I leave a screen daemon running on my
        machines for months, and detach when I leave the office,
        then later ssh in from home and reattach. No X forwarding,
        rdesktop, or VNC required -- just plain ssh, and I'm right
        where I left off.

        I browse use.perl.org from a w3m browser running inside a
        more-or-less-permanent screen daemon on the se
  • I have exactly the same problem with C-a C-k; C-g has a useful meaning in emacs too, though. I use "escape ^zz" instead; most of the times I'd have used job control before are now handled via a different or new screen instead, after all.