News for hackers. Stuff that matters.
Re:GNU Screen - A Hacker's Ideal Terminal by silentbicycle on Monday September 28, 2009 @02:56PM (#848976)
You might want to consider tmux (http://tmux.sourceforge.net/) as an alternative. Its cleaner (and, incidentally, BSD-licensed) codebase means that it's getting features that have been gathering dust on screen's to-do list for ages. Most notably, its dwm/XMonad-style layouts (http://tmux.sourceforge.net/tmux6.png) are really nice. AFAICT, screen doesn't even officially have vertically split windows yet, it's still an unofficial patch.

Either way, if you use Unix, learn to use screen or tmux. They're tremendouslyuseful. (Also: Noisy wireless connections are the new flaky dialup, when it comes to resuming shell sessions.)

Re:GNU Screen - A Hacker's Ideal Terminal by pyre on Monday September 28, 2009 @03:02PM (#848986)
No offense, but how does it's BSD-licensed codebase mean that it 'gets more features'?
Re:GNU Screen - A Hacker's Ideal Terminal by silentbicycle on Monday September 28, 2009 @03:04PM (#848990)
I rephrased my comment - I think it's the cleaner codebase that makes the big difference. Its BSD license has some perks, though - for one thing, it's part of the OpenBSD base system now, which means security auditing and excellent maintainers. That will probably also lead to more features in the long run.

OpenBSD man page: http://www.openbsd.org/cgi-bin/man.cgi?query=tmux

Re:GNU Screen - A Hacker's Ideal Terminal by duskwuff on Tuesday September 29, 2009 @01:29AM (#849864)
I was able to make tmux hang in a matter of a few minutes of playing with it (and not even trying hard). It's definitely got promise, but it also still has a way to go.
Re:GNU Screen - A Hacker's Ideal Terminal by silentbicycle on Tuesday September 29, 2009 @08:05AM (#850182)
Can you reproduce it, or describe what you did? In a couple months of using it constantly on three systems, I've never had a single problem with it.
Re:GNU Screen - A Hacker's Ideal Terminal by duskwuff on Wednesday September 30, 2009 @11:41PM (#854279)
Started tmux, split the window a few times, ^B <space> a few times, and it hung. I've submitted a sample to the developer. (It's getting stuck somewhere around screen_write_copy.)
Re:GNU Screen - A Hacker's Ideal Terminal by JulianMorrison on Tuesday September 29, 2009 @10:00AM (#850374)
How does that compare to dvtm?

http://www.brain-dump.org/projects/dvtm/

Re:GNU Screen - A Hacker's Ideal Terminal by silentbicycle on Tuesday September 29, 2009 @10:57AM (#850489)
Interesting. I haven't heard of that before, I'll look into it. I doubt a comparison based on a first impression would be useful, though.
Re:GNU Screen - A Hacker's Ideal Terminal by soundphed on Monday September 28, 2009 @03:04PM (#848988)
Thanks, I will look at that, looks rad! I just thought the article covered some really key points about multiplexing terminals in general...
Re:GNU Screen - A Hacker's Ideal Terminal by blasdel on Monday September 28, 2009 @06:33PM (#849380)
tmux is not rad, just clean -- see http://caca.zoy.org/wiki/neercs for a truly radical screen replacement:

  Grab a process that you forgot to start inside neercs
  Great screensaver
  Real time thumbnails of your shells
  Special effects when closing a window
  Various window layouts...
Re:GNU Screen - A Hacker's Ideal Terminal by apotheon on Monday September 28, 2009 @09:48PM (#849633)
I rather like the fact it uses the WTFPL, too. It's not really a replacement for something like tmux, though, from what I've seen.
Re:GNU Screen - A Hacker's Ideal Terminal by mahmud on Monday September 28, 2009 @07:27PM (#849446)
How does any of this work when through putty or when connecting to X-less unices from the myriad of non-Unix boxes out there?
Re:GNU Screen - A Hacker's Ideal Terminal by cma on Monday September 28, 2009 @10:37PM (#849692)
At least click the link. It is all done in ascii art.
Re:GNU Screen - A Hacker's Ideal Terminal by jacquesm on Monday September 28, 2009 @05:37PM (#849285)
What does 'looks rad' mean ?
Re:GNU Screen - A Hacker's Ideal Terminal by pyre on Monday September 28, 2009 @05:45PM (#849305)
http://www.urbandictionary.com/define.php?term=rad

Basically short for 'radical' and a replacement for 'awesome' or 'cool.'

Re:GNU Screen - A Hacker's Ideal Terminal by soundphed on Monday September 28, 2009 @05:45PM (#849303)
pardon me, I meant to say that it (tmux) looks neat and useful!
Re:GNU Screen - A Hacker's Ideal Terminal by jacquesm on Monday September 28, 2009 @05:59PM (#849327)
Ah :)

Sorry, I felt a little old there for a second.

Re:GNU Screen - A Hacker's Ideal Terminal by apotheon on Monday September 28, 2009 @09:49PM (#849635)
"Rad" hasn't really been in widespread use since the '80s.
Re:GNU Screen - A Hacker's Ideal Terminal by Hackbrot on Tuesday October 27, 2009 @07:31AM (#905221)
Nice piece of software.
Re:GNU Screen - A Hacker's Ideal Terminal by mdakin on Monday September 28, 2009 @03:47PM (#849076)
It also gives OSX RS-232 terminal emulation capability. As far as I know OSX ships with no other such program. Once you get your USB dongle's driver situation under control you just:

screen device baud

ex:

screen /dev/tty.usbserial-FTDPZOEJ 115200

Very useful for embedded system hackers and others who still need to speak RS-232.

Re:GNU Screen - A Hacker's Ideal Terminal by blasdel on Monday September 28, 2009 @06:28PM (#849371)
I have not used a single other serial console since I accidentally discovered this feature in screen a few years ago. Hyperterminal, minicom, gtkterm, et. al. were the bane of my existence.
Re:GNU Screen - A Hacker's Ideal Terminal by mmagin on Monday September 28, 2009 @11:48PM (#849763)
Actually, OS X includes "cu" -- not that feature-rich, but it's been sufficient for me.
Re:GNU Screen - A Hacker's Ideal Terminal by mcantor on Monday September 28, 2009 @03:31PM (#849045)
I often use idiosyncratic screen setups with very specifically-purposed windows. I support this behavior with a special config file that launches screen with certain windows pre-loaded for certain uses:

  source /home/mcantor/.screenrc
  chdir $SANDBOX/src
  screen 0:svn
  screen 1:lib
  screen 2:nosetests
  stuff "activate_environment\015"
  screen 3:ipython
  stuff "activate_environment\015ipython\015"
  screen 4:
  select 0
I use stuff because it's the most straightforward way to send commands with carriage returns (015 in octal) to a window.

I make this even more effortless by using a special alias in my .bashrc:

  alias scd='screen -c /home/mcantor/.screenrc-dev'
I also use a few other aliases to support common uses:

  alias scr='screen -rd'
  alias scx='screen -x'
  alias lsc='screen -list'
Also, don't forget the very useful -S switch:

  screen -S someproject
Or, you can use Ctrl-a :sessionname, if you're already within a session, to rename it. That way, screen -list and screen -r can use your sessionnames, and you don't have to parse or remember the process ID's.
Re:GNU Screen - A Hacker's Ideal Terminal by pyre on Monday September 28, 2009 @05:49PM (#849311)
I really wish there was a way to use the sessionname in the hard status line formatting.
Re:GNU Screen - A Hacker's Ideal Terminal by mcantor on Tuesday November 10, 2009 @03:53PM (#933913)
You're probably never going to read back this far in time, but, it's coming in the next version.
Re:GNU Screen - A Hacker's Ideal Terminal by dryicerx on Monday September 28, 2009 @01:56PM (#848858)
I don't think I can live without it anymore.

There is no reason why you shouldn't use screen when ssh'ing in and working on remote machines, it will save you tons of time in case the connection goes down, plus allows your to keep a persistent working environment on remote boxes.

    ssh -t user@host screen -rx
That will drop you immediately to a running screen on connect
Re:GNU Screen - A Hacker's Ideal Terminal by mooism2 on Monday September 28, 2009 @03:14PM (#849011)
My remote `.bash_profile` ends

    screen -d -R
    logout
On the rare occasions that I don't want to run under screen, I run `ssh -t user@host bash`.
Re:GNU Screen - A Hacker's Ideal Terminal by pyre on Monday September 28, 2009 @03:21PM (#849031)
I hope you mean on the server. IIRC, some things like GNOME will source .profile or .bash_profile so that you can have globally customized $PATH,etc variables.
Re:GNU Screen - A Hacker's Ideal Terminal by mooism2 on Monday September 28, 2009 @07:11PM (#849427)
On remote servers, yes.
Re:GNU Screen - A Hacker's Ideal Terminal by jazzychad on Monday September 28, 2009 @03:29PM (#849044)
I use screen every day for administering multiple remote servers. I don't know how I functioned before I used screen. One of the coolest things are "backtick" commands you can put in the caption string. Here is a pastie of my screenrc and one of the backtick files which displays the free RAM of the system in the caption line, updating every 30 seconds (ymmv on the free RAM command depending on how your distro's `free` command displays its output)

http://pastie.org/633808

Re:GNU Screen - A Hacker's Ideal Terminal by barrkel on Monday September 28, 2009 @06:18PM (#849361)
The difficulty of scrolling back in the buffer (C-a ESC PgUp is a longer and more tedious key sequence than Shift+PgUp), and lack of full terminal support (e.g. man, less, etc. don't restore screen contents on exit) mean I strictly only use screen on ssh connections.

Perhaps the terminal support issue could be worked out with better termcap etc. settings, but I haven't found the answers. I asked questions here:

http://superuser.com/questions/23144/how-to-make-screen-term...

... but no luck.

Re:GNU Screen - A Hacker's Ideal Terminal by decklin on Monday September 28, 2009 @06:26PM (#849369)
try "altscreen on". (see also the -a option, and http://www.gnu.org/software/screen/manual/html_node/Window-T...).
Re:GNU Screen - A Hacker's Ideal Terminal by barrkel on Monday September 28, 2009 @07:54PM (#849490)
The -a option didn't work, but altscreen on in my ~/.screenrc seems to have worked. Thanks!
Re:GNU Screen - A Hacker's Ideal Terminal by pyre on Monday September 28, 2009 @07:10PM (#849426)
> (C-a ESC PgUp is a longer and more tedious key sequence than Shift+PgUp)

Try entering Copy Mode ('C-a ['). Once in Copy Mode you can page up and down without any modifiers. Just hit ']' to exit Copy Mode. You can also use the up and down arrows in Copy Mode. It's mostly meant for selecting regions of text to yank, but I find it's the easiest way to access the scrollback buffer.

Re:GNU Screen - A Hacker's Ideal Terminal by barrkel on Monday September 28, 2009 @07:39PM (#849468)
C-a ESC is copy mode, as far as I am aware. At least that's what it says down the bottom of the screen when I do it.

To be clear, C-a ESC puts me in a mode where I can then freely page through the scrollback buffer with PgUp and PgDn, but the problem is that's 4 key presses required for something that only needs 2 in a normal terminal, and Ctrl (with A), Esc, and PgUp are about as far apart as you can get on a keyboard, which doesn't make for efficiency.

Re:GNU Screen - A Hacker's Ideal Terminal by pyre on Monday September 28, 2009 @08:02PM (#849499)
Well, I always just used C-a [ to get into copy mode. Another thing to consider is that once you are in copy mode you don't have to hit or continue to hold down the shift key along with PgUp/PgDn.

I personally don't find that to be an annoyance, though. Especially not when stacked up against all of the other benefits you get from using screen.

Re:GNU Screen - A Hacker's Ideal Terminal by barrkel on Monday September 28, 2009 @08:28PM (#849536)
I understand. The primary benefits of screen to me is disconnect / reconnect, and as such it's useful for servers, but local terminals, not so much.

The other advantage of "rich" support is mousewheel combined with selection: with Cygwin rxvt, I can scroll up, begin a selection with the mouse, and scroll down with the mouse wheel and thereby copy multiple pages of scrollback buffer into the Windows clipboard, ready for e.g. paste in to blog article.

The advantage of keyboard-free casual scrollback when I'm writing such articles, checking what I did earlier, is something you learn to take for granted, and is quite obviously missing with screen.

Re:GNU Screen - A Hacker's Ideal Terminal by noonespecial on Monday September 28, 2009 @03:02PM (#848985)
Many thanks for posting this. This is exactly the kind of thing I come to HN to find. I use screen on occasion but never really had it in my mind that I should be using it as a productivity tool.

I have once again found minor enlightenment and am already more productive because of it. Its nice when procrastinating on HN turns into a net win!

Re:GNU Screen - A Hacker's Ideal Terminal by chwahoo on Monday September 28, 2009 @08:52PM (#849571)
Screen is great. I wish there were an analogous tool that let me group several running X apps into a long-running session that I could connect to/disconnect from locations. Any idea if this is possible today?
Re:GNU Screen - A Hacker's Ideal Terminal by pyre on Friday October 23, 2009 @09:25PM (#899978)
I realize that this is really old, but I came back searching for something in the comments, and I now have something to add to this. I came across something (that is no longer maintained) called xmove which was describe as 'screen for X11'. http://en.wikipedia.org/wiki/Xmove
Re:GNU Screen - A Hacker's Ideal Terminal by fhars on Tuesday September 29, 2009 @02:01AM (#849904)
NX is supposedly able to do this, but last time I looked (which, admittedly, was two or three years ago) you had to expect serious problems if the set of available fonts on the different display servers was different (i.e. in all realistic scenarios). Oh, and it only worked on x86-32.
Re:GNU Screen - A Hacker's Ideal Terminal by abhijithoskeri on Tuesday September 29, 2009 @09:28AM (#850324)
Re:GNU Screen - A Hacker's Ideal Terminal by tlrobinson on Monday September 28, 2009 @03:07PM (#848995)
I've been satisfied with just using multiple tabs in Terminal.app in OS X, but I'm curious if anyone has switched from that solution to screen and wouldn't go back? (for local use in particular)
Re:GNU Screen - A Hacker's Ideal Terminal by potatolicious on Monday September 28, 2009 @03:24PM (#849033)
I use screen constantly and would never go back. The detachability is incredibly useful. Say I had to go to a meeting - I shut my laptop and it goes to sleep. This would normally kill any SSH session (and thus leave vim swap files lying about in my case)... but with screen I can just pick up where I left off last time.

It's also great if you want to run something big - say a job that would take 5 hours. I'm free to do whatever I want without fear that killing my ssh session will also kill the job.

Re:GNU Screen - A Hacker's Ideal Terminal by scott_s on Monday September 28, 2009 @03:40PM (#849063)
Your second scenario can be handled with nohup from within a vanilla ssh session.
Re:GNU Screen - A Hacker's Ideal Terminal by graywh on Monday September 28, 2009 @04:45PM (#849199)
There's also disown, for that matter, but how can you re-connect to the process?
Re:GNU Screen - A Hacker's Ideal Terminal by silentbicycle on Monday September 28, 2009 @03:26PM (#849037)
> run something big - say a job that would take 5 hours

The monitor function can also notify you when there's activity or 30 sec. silence in a window, too. :)

Re:GNU Screen - A Hacker's Ideal Terminal by sofal on Monday September 28, 2009 @05:15PM (#849239)
I've switched from Terminal.app tabs to screen for a couple of reasons:

1) It's obvious why you'd want this for remote sessions, and I want a consistent feel whether I'm sshing into remote machines or just on my local machine.

2) I like to allocate a different screen session for each project. I can use the Terminal.app tabs to differentiate between these and between remote sessions on other machines. I could technically use multiple Terminal.app windows instead, but meh.

One thing I've found to be annoying: I can't get gnuplot to work from within a screen window (using the default AquaTerm output).

Re:GNU Screen - A Hacker's Ideal Terminal by pyre on Monday September 28, 2009 @05:52PM (#849314)
I know that there was a patch (a long time ago ~2006) for gnome-terminal that made it 'screen aware' so that each screen 'window' was a gnome-terminal tab.
Re:GNU Screen - A Hacker's Ideal Terminal by EAMiller on Monday September 28, 2009 @04:17PM (#849143)
I got frustrated with tabs in Terminal.app because of the keyboard shortcuts : Shift+Apple+arrows

In screen I use ^a, " to get a list of screens, then j/k to pick a screen. That may not seem like a win, but it keeps my fingers on the home keys, and feels smoother.

That and the fact that I split windows in screen fairly often means I won't go back to terminal tabs...

Re:GNU Screen - A Hacker's Ideal Terminal by sjs on Monday September 28, 2009 @03:35PM (#849054)
You can copy and paste between terminals with the keyboard. This alone should be reason enough.
Re:GNU Screen - A Hacker's Ideal Terminal by hugothefrog on Monday September 28, 2009 @02:44PM (#848946)
I've been using Screen for a number of years now, but I've recently come across Ubuntu's repackaging of it - https://help.ubuntu.com/9.04/serverguide/C/screen-profiles.h.... This seems like a fantastic way to introduce screen to new users, who are probably intimidated by screen's default bare-bones config.
Re:GNU Screen - A Hacker's Ideal Terminal by elbenshira on Monday September 28, 2009 @02:27PM (#848909)
Screen uses C-a as its "command" character. Unfortunately, C-a means "go to start of line" in emacs and terminals. The solution?

In your .screenrc file:

    escape ^Ww
This will default C-w as the command character.
Re:GNU Screen - A Hacker's Ideal Terminal by tome on Monday September 28, 2009 @02:46PM (#848952)
You can start screen with -e to pass the control character in. I use

% screen -e^]]

Then Ctrl-] is my escape.

Re:GNU Screen - A Hacker's Ideal Terminal by cschep on Monday September 28, 2009 @02:32PM (#848923)
Isn't C-w kill-region in emacs? I recently came up against this problem too, but what else to change it to .. ?
Re:GNU Screen - A Hacker's Ideal Terminal by warp on Monday September 28, 2009 @05:26PM (#849262)
I used ctrl-z, when I'm in screen I rarely need to push something to the background (prefer to just start a new vc in screen), and ofcourse I can still background something with ctrl-z z.

A screen within a screen gets ctrl-v, just because it seems mostly unused and is next to z on a dvorak keyboard :)

(And no, I don't ever nest them any deeper).

Re:GNU Screen - A Hacker's Ideal Terminal by fhars on Tuesday September 29, 2009 @02:15AM (#849916)
I use C-z as escape in screen. This would be "send process to background" in a vanilla shell, which I don't need that often in screen.
Re:GNU Screen - A Hacker's Ideal Terminal by silentbicycle on Monday September 28, 2009 @03:12PM (#849005)
I like ` (just backtick, no control), though that clashes with Lisp a bit. (I don't usually use Lisp inside tmux, though.)
Re:GNU Screen - A Hacker's Ideal Terminal by surki on Monday September 28, 2009 @03:18PM (#849022)
` cannot be used since in terminal C + ` or C + SPC or C + @ translates into same thing(only allowed characters are @ [ \ ] ^ and _ ). I personally prefer using \
Re:GNU Screen - A Hacker's Ideal Terminal by silentbicycle on Monday September 28, 2009 @03:24PM (#849034)
Oh, I'm using just ` , not C-`. It's like hitting ESC in vi. (I also noticed that space and shift-space are indistinguishable, which is a bit annoying because in Emacs I use S-spc for languages with lots_of_soft_spacing or-several-words-joined-with-dashes.)
Re:GNU Screen - A Hacker's Ideal Terminal by cturner on Monday September 28, 2009 @04:26PM (#849163)
Readers - I found the .screenrc change for this not-entirely-obvious. You need to say escape ``

whereas you'd have thought it would be just escape `

Re:GNU Screen - A Hacker's Ideal Terminal by silentbicycle on Monday September 28, 2009 @04:52PM (#849205)
The second character doesn't have to be another ` - that option controls what you type for an unescaped version of your meta key. I use

  escape `~
and reserve `` for switching to the most recently used window. (It looks like I didn't need to specify that explicitly.)
Re:GNU Screen - A Hacker's Ideal Terminal by sjs on Monday September 28, 2009 @02:44PM (#848944)
You could try C-o (open-line by default) or C-z (suspend/minimize by default). I use C-z as a personal command prefix. Emacs really puts those ctrl shortcuts to work, it's damn near impossible to find one that I don't use at least semi-regularly.

edit: You could maybe try C-9 or use a symbol. I was only thinking in letters.

Re:GNU Screen - A Hacker's Ideal Terminal by steveklabnik on Monday September 28, 2009 @03:04PM (#848989)
I'd suggest changing it to vim.

But no, seriously, screen is one of the more useful programs I've ever used. I have a screen session running on a server somewhere, and just log into it from whatever terminal I happen to be using at the time. It's pretty much the best.

Re:GNU Screen - A Hacker's Ideal Terminal by philh on Tuesday September 29, 2009 @07:35AM (#850153)
I bound my left winkey to @, and use ^@. I wanted to bind it directly to NUL, but I couldn't get that to work for some reason.
Re:GNU Screen - A Hacker's Ideal Terminal by jherdman on Monday September 28, 2009 @02:40PM (#848940)
I'm using C-z, but it's sort of an awkward key to use.
Re:GNU Screen - A Hacker's Ideal Terminal by sjs on Monday September 28, 2009 @02:45PM (#848951)
Changing caps lock to control helps. Switching to dvorak helps even more. I kid.
Re:GNU Screen - A Hacker's Ideal Terminal by tomjen2 on Monday September 28, 2009 @05:10PM (#849229)
You may be kidding, but you are right on both counts. Emacs is so much better when your control key is next to 'a'. Your hands prefer it when 'aoeu' is right under your left hand. You will prefer it when your colleagues can't figure out how to type on you computer.
Re:GNU Screen - A Hacker's Ideal Terminal by sjs on Tuesday September 29, 2009 @01:41PM (#850883)
I was serious in that Ctrl-Z is easier to hit with dvorak, and with caps lock as control it becomes even easier, but I don't expect anyone to switch for that reason.
Re:GNU Screen - A Hacker's Ideal Terminal by twism on Monday September 28, 2009 @02:46PM (#848953)
I use

escape ^^^

Ctrl+Shift 6

Re:GNU Screen - A Hacker's Ideal Terminal by hazzen on Monday September 28, 2009 @03:12PM (#849006)
You can also just hit "C-a a", which screen will interpret as "send C-a to the terminal".
Re:GNU Screen - A Hacker's Ideal Terminal by pbhjpbhj on Monday September 28, 2009 @02:44PM (#848945)
Which is word delete in bash &c..

Ctrl+T is the menu access character in aptitude, is there any convention around that?

Re:GNU Screen - A Hacker's Ideal Terminal by JeremyChase on Monday September 28, 2009 @02:34PM (#848925)
Screen is an amazingly useful tool. If you aren't using it or something like it, you are really making life more difficult for yourself.

If you want something that isn't GNU or GPL'd, take a look at `tmux`.

Re:GNU Screen - A Hacker's Ideal Terminal by e1ven on Monday September 28, 2009 @02:53PM (#848967)
I'm just curious- Why would you want to specifically avoid the GPL?
Re:GNU Screen - A Hacker's Ideal Terminal by steveklabnik on Monday September 28, 2009 @03:05PM (#848992)
If you look at it through the eyes of the GNU people, you're making an active choice any time you use software. By using GNU software, you're supporting the FSF and the GNU project.

Some people would rather support the BSD license instead.

Other people just don't care at all.

Re:GNU Screen - A Hacker's Ideal Terminal by pyre on Monday September 28, 2009 @03:06PM (#848993)
The same way there are people that want their entire software usage to be GPL/MIT/BSD/etc, there are people that want everything to be non-GPL. Unless you are going to be hacking on GNU Screen and feel the need to do something that the GPL forbids, there's really no reason to stop yourself from using a software package just because it's GPL-licensed.
Re:GNU Screen - A Hacker's Ideal Terminal by tedunangst on Monday September 28, 2009 @03:34PM (#849049)
I think it's ironic that your argument is remarkably similar to "nothing stops you from using a closed source program unless you planned to start hacking on the source." Sometimes you don't know when you start using something what amount of hacking may be required.
Re:GNU Screen - A Hacker's Ideal Terminal by pyre on Monday September 28, 2009 @07:26PM (#849444)
Yes, but you can contribute to GPL-licensed projects. It's just specific things that you are limited in. We're talking orders of magnitude. 'closed-source and GPL' and 'MIT/BSD and GPL' aren't even in the same ballpark.
Re:GNU Screen - A Hacker's Ideal Terminal by apotheon on Monday September 28, 2009 @09:57PM (#849641)
One thing you can't do with a GPLed application -- and something I do all the time -- is try to support copyfree licensing rather than copyleft licensing.
Re:GNU Screen - A Hacker's Ideal Terminal by apotheon on Monday September 28, 2009 @09:55PM (#849639)
Re:GNU Screen - A Hacker's Ideal Terminal by Keyframe on Monday September 28, 2009 @02:50PM (#848960)
I use screen for bazillion of years already. When doing stuff with django I like to C-a c to make a new screen, then C-a :resize 10 so that I have two screens on one (you can switch between them with C-a TAB). So in the smaller one I run server and in larger whatever I need to. Excellent when having two or more monitors with one being dedicated to full screen terminal setup like that.
Re:GNU Screen - A Hacker's Ideal Terminal by TallGuyShort on Monday September 28, 2009 @03:35PM (#849052)
This IS a hacker's ideal Terminal - a while ago I set out to write my own shell with all the features I wanted. A huge portion of the functionality I intended to implement is accomplished with GNU Screen. Since I found Screen - I haven't felt enough need to keep developing my own shell!
Re:GNU Screen - A Hacker's Ideal Terminal by soundphed on Monday September 28, 2009 @04:17PM (#849141)
I found this link on how to patch/compile Screen 4.0.3 on Snow Leopard...the one out of the box is kind of buggy, and does not support 256 colors...

http://trac.macports.org/ticket/20862

Re:GNU Screen - A Hacker's Ideal Terminal by garply on Monday September 28, 2009 @03:38PM (#849059)
In the same vein, if you use a repl on a remote machine you should check out detachtty if you're not already using it. It's particularly nice for use within emacs because it doesn't eat the whole screen and it doesn't eat ^A.
Re:GNU Screen - A Hacker's Ideal Terminal by jazzychad on Monday September 28, 2009 @03:49PM (#849080)
fwiw, screen doesn't "eat ^A"

You can send ^a to a window in screen by typing "^a a" - I do this everyday using emacs inside of screen. It becomes second nature.

Re:GNU Screen - A Hacker's Ideal Terminal by coryrc on Monday September 28, 2009 @04:11PM (#849124)
I changed to C-\
Re:GNU Screen - A Hacker's Ideal Terminal by Luyt on Monday September 28, 2009 @06:15PM (#849356)
'dtach' is a nice utility too, a kind of lightweight-screen. It's in the BSD ports.
Re:GNU Screen - A Hacker's Ideal Terminal by wglb on Monday September 28, 2009 @02:05PM (#848871)
Re:GNU Screen - A Hacker's Ideal Terminal by btw0 on Monday September 28, 2009 @02:27PM (#848910)
I recently found BSD implementation -- tmux better than GNU screen.
Re:GNU Screen - A Hacker's Ideal Terminal by tome on Monday September 28, 2009 @02:39PM (#848936)
Better in what way?
Re:GNU Screen - A Hacker's Ideal Terminal by silentbicycle on Monday September 28, 2009 @03:02PM (#848987)
For starters, it has built-in dwm/XMonad-style layouts, while screen has taken ages to even get vertically split windows.
Re:GNU Screen - A Hacker's Ideal Terminal by pyre on Monday September 28, 2009 @03:17PM (#849016)
In general, one should probably know their way around GNU screen in addition to tmux just because you'll probably encounter it on more installations. Much in the same way that it's really to your benefit to know a bit about vi even if you are an Emacs user.
Re:GNU Screen - A Hacker's Ideal Terminal by silentbicycle on Monday September 28, 2009 @03:29PM (#849043)
Agreed. They're both incredibly handy, and even if you only learn the common feature subset, it's still a huge win.
Re:GNU Screen - A Hacker's Ideal Terminal by tome on Monday September 28, 2009 @02:41PM (#848942)
All my rxvts run screen automatically. This means if I then leave my workstation and need to access one of the terminals remotely I can just duplicate it with screen -x.

[Edited for clarity]

Re:GNU Screen - A Hacker's Ideal Terminal by surki on Monday September 28, 2009 @03:20PM (#849028)
I posted my config sometime back. http://news.ycombinator.com/item?id=843630
Re:GNU Screen - A Hacker's Ideal Terminal by bdotdub on Monday September 28, 2009 @03:13PM (#849008)
anyone care to share their screenrc? heres mine: http://github.com/bdotdub/dotfiles/blob/master/screenrc
Re:GNU Screen - A Hacker's Ideal Terminal by silentbicycle on Monday September 28, 2009 @03:31PM (#849047)
The most notable part of mine is

   # Set up my status line at the bottom of every frame
   caption always "%{gb}  %{ck}%m-%d %C %{gb}  %{gb}%?%-Lw%?%{ck}%n*%f %t%?(%u)%?%{gb}%?%+Lw%?"
I use tmux now, though. (it has a statusbar similar to the above by default)
Re:GNU Screen - A Hacker's Ideal Terminal by DannoHung on Monday September 28, 2009 @03:24PM (#849036)
Re:GNU Screen - A Hacker's Ideal Terminal by apotheon on Monday September 28, 2009 @09:44PM (#849627)
I prefer tmux.
Re:GNU Screen - A Hacker's Ideal Terminal by lanaer on Monday September 28, 2009 @10:38PM (#849694)
I installed tmux, but have not yet played with it. I know I want to, simply because it supports vertical splits…