Live data from Hacker News

GNU Screen - A Hacker's Ideal Terminal

ibm.com

31–40 of 103 posts

Re: GNU Screen - A Hacker's Ideal Terminal

#31

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.

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

#33
post #2

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

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

#34
post #8

Earlier quoted context omitted.

Better in what way?

For starters, it has built-in dwm/XMonad-style layouts, while screen has taken ages to even get vertically split windows.

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

#35
post #6

Earlier quoted context omitted.

Isn't C-w kill-region in emacs? I recently came up against this problem too, but what else to change it to .. ?

I like ` (just backtick, no control), though that clashes with Lisp a bit. (I don't usually use Lisp inside tmux, though.)

` 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

#37
post #33
post #2

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

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

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

#38

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

#39
post #35

Earlier quoted context omitted.

I like ` (just backtick, no control), though that clashes with Lisp a bit. (I don't usually use Lisp inside tmux, though.)

` 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.)
Post reply on HN