Live data from Hacker News

A guide to GNU Screen

redhatmagazine.com

21–26 of 26 posts

Re: A guide to GNU Screen

#21
post #17

screen is the best thing to happen to greenscreens since the buckling spring [1]. and FTW: try "nethack on" in your .screenrc [2] [1] http://en.wikipedia.org/wiki/Buckling_spring [2] http://dotfiles.org/~manoogs/.screenrc

"since the buckling spring"

I am the proud owner of an IBM Model M keyboard. Way superior to modern alternatives.

Re: A guide to GNU Screen

#22
I use ` as my command prefix, works well with emacs and is only one key. the only issue comes if you cut and paste lines with back ticks, which disconnects your screen session, but since its screen its trivial to reattach.

Re: A guide to GNU Screen

#23
Thank you guys for the CTL+] and CTL+\ excape sequences... I had been struggling with CTL+A, I tend to like "go to the beginning of the command line" a lot so this was my main beef with the default sequence.

One of the major uses of screen for me has been teaching. You can have multiple users attach to the same screen -- just follow this guide: http://slaptijack.com/system-administration/multiuser-gnu-sc...

Imagine doing a conference demo and allowing everyone to "attach" to your screen session and watch you code \buzzword using \buzzword :)

Re: A guide to GNU Screen

#25
post #20
post #13

IMO, if screen had... (1) more sensible defaults: key bindings that didn't clash with emacs/bash and an always-visible status line (2) a more distinctive, search-friendly name ...interest, discussion, and usage would be many multiples higher. Anyone want to collaborate on a fork called 'zcreen'? :)

I use C-\ for the escape sequence. I'd add: (3) Easier-to-use shift-pgup/pgdn equivalent My .screenrc: escape ^\\ hardstatus alwayslastline hardstatus string '%{= kG}[ %{G}%H %{g}][%= %{=kw}%?%-Lw%?%{r}(%{W}%n*%f %t%?(%u)%?%{r})%{w}%?%+Lw%?%?%= %{g}][%{B}%Y-%m-%d %{W}%c %{g}]' shell /bin/bash defflow off startup_message off defscrollback 1024 'defflow off' lets C-s work. The status line lists the current shells, comp…

So long as we are sharing .screenrcs, this is the way I like my hardstatus string:

  hardstatus string '%{gb}[%{W}%H%{g}] [%= %?%-w%?%{Y}(%{W}%n %t%?(%u)%?%{Y})%{g}%?%+w%= ] [%{W}%D %M %d %c%{g}]'

Re: A guide to GNU Screen

#26
post #19
post #13

IMO, if screen had... (1) more sensible defaults: key bindings that didn't clash with emacs/bash and an always-visible status line (2) a more distinctive, search-friendly name ...interest, discussion, and usage would be many multiples higher. Anyone want to collaborate on a fork called 'zcreen'? :)

Something like: hardstatus on hardstatus alwayslastline "%{rk}%H %{gk}%c %{yk}%M%d %{wk}%?%-Lw%?%{bw}%n*%f %t%?(%u)%?%{wk}%?%+Lw%?" in ~/.screenrc gives an always-visible status line.

I've found that using caption lets my shell update the xterm window title.

    caption always
    caption string "..."
Post reply on HN