Live data from Hacker News

GNU Screen - A Hacker's Ideal Terminal

ibm.com

51–60 of 103 posts

Re: GNU Screen - A Hacker's Ideal Terminal

#51
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

#52
post #49

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.

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

#53
post #49

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.

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.

I changed to C-\

Re: GNU Screen - A Hacker's Ideal Terminal

#55

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)

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

#56
post #35

Earlier quoted context omitted.

` 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 \

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.)

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

#57
post #50

Earlier quoted context omitted.

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 d…

Your second scenario can be handled with nohup from within a vanilla ssh session.

There's also disown, for that matter, but how can you re-connect to the process?

Re: GNU Screen - A Hacker's Ideal Terminal

#58
post #56

Earlier quoted context omitted.

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.)

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 `

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

#59
post #15

Earlier quoted context omitted.

I'm using C-z, but it's sort of an awkward key to use.

Changing caps lock to control helps. Switching to dvorak helps even more. I kid.

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

#60

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)

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).

Post reply on HN