Live data from Hacker News

GNU Screen: an introduction and beginner's tutorial

kuro5hin.org

21–30 of 44 posts

Re: GNU Screen: an introduction and beginner's tutorial

#21
post #19
post #10

While we are talking about screen - I'd really like to be able to highlight text in VIM (using the visual mode) and then be able to paste that into another screen. Does anyone know how to do this?

ScreenShell. It leverages screen to create a viable REPL-buffer for vim, for any language that has an interactive interpreter. http://www.vim.org/scripts/script.php?script_id=2711 Here's an article describing how to use it with lisp: http://www.ktaylor.name/2009/11/vim-screen-lisp-programming-... And finally, some key mappings to bind to sending the current paragraph or selection to the interpreter, from any mode. ht…

Thanks!

Re: GNU Screen: an introduction and beginner's tutorial

#22
post #10

While we are talking about screen - I'd really like to be able to highlight text in VIM (using the visual mode) and then be able to paste that into another screen. Does anyone know how to do this?

You could just copy into the global system buffer instead of vim's buffer. Highlight, then "+y (or d, p, etc.) (Yes you type the quotation mark and plus.) (And vim needs to be built with xterm, I think.)

Re: GNU Screen: an introduction and beginner's tutorial

#23

Stop using Screen. Switch to Tmux ( http://tmux.sourceforge.net/ ). Screen is voodoo. Tmux isn't. EDIT: Compare my tmux.conf ( http://pastebin.com/m2394d7a2 ) and my screenrc ( http://pastebin.com/d7bb649a5 ). It was much easier for me to set up tmux the way I wanted from reading the manpage, than it was to configure screen. My screenrc is a hotchpotch of cut-and-paste from lots of different sources, but I never real…

Screen has a very large chunk of the potential market share for this sort of utility app. Tmux is going to have to be 10 times better to get people to switch. ("Screen" also has a name that's easy to remember, and to spell.)

Is tmux 10 times better than screen? Cause that's what it's going to take to get people to switch at this point.

Re: GNU Screen: an introduction and beginner's tutorial

#24

Earlier quoted context omitted.

Care to clarify "screen is voodoo. tmux isn't."? That's pretty meaningless. The overall design to tmux is quite a bit cleaner, and (having poked around in their respective sources), I know which I'd be more likely to contribute patches to. It took screen forever to get vertical splits (are they still an unofficial patch?), whereas tmux already has dwm/XMonad-style layouts. tmux is also included in the standard OpenBS…

Compare my tmux.conf ( http://pastebin.com/m2394d7a2 ) and my screenrc ( http://pastebin.com/d7bb649a5 ). Granted, my screenrc is a hotchpotch of cut-and-paste and default stuff from lots of places, but that's actually the point: I could read through the tmux manpage and set up tmux the way I wanted, without cobbling a conf file together from the blog posts and mailing list emails of wiser people.

Not being familiar with tmux at all I tried to simply drop in your config (changing only the default path) but all I get is syntax errors at every turn (unknown option status-justify at line 4).

    tmux 0.8 (20090604-0818)
Which is in the Ubuntu 9.10 repos. I'll take any suggestions, but I'm happy with screen :)

Re: GNU Screen: an introduction and beginner's tutorial

#25

Earlier quoted context omitted.

Compare my tmux.conf ( http://pastebin.com/m2394d7a2 ) and my screenrc ( http://pastebin.com/d7bb649a5 ). Granted, my screenrc is a hotchpotch of cut-and-paste and default stuff from lots of places, but that's actually the point: I could read through the tmux manpage and set up tmux the way I wanted, without cobbling a conf file together from the blog posts and mailing list emails of wiser people.

Not being familiar with tmux at all I tried to simply drop in your config (changing only the default path) but all I get is syntax errors at every turn (unknown option status-justify at line 4). tmux 0.8 (20090604-0818) Which is in the Ubuntu 9.10 repos. I'll take any suggestions, but I'm happy with screen :)

my tmux is cvs. You can just comment out the options that fail, but I recommend getting a newer release. It builds really painlessly.

Re: GNU Screen: an introduction and beginner's tutorial

#27

Earlier quoted context omitted.

Not being familiar with tmux at all I tried to simply drop in your config (changing only the default path) but all I get is syntax errors at every turn (unknown option status-justify at line 4). tmux 0.8 (20090604-0818) Which is in the Ubuntu 9.10 repos. I'll take any suggestions, but I'm happy with screen :)

my tmux is cvs. You can just comment out the options that fail, but I recommend getting a newer release. It builds really painlessly.

Yea, noticed the newest is 1.1... I'd prefer to find a debian package for it rather than building it though, I often need to rebuild machines and I always regret adding steps like this (I can just stick with screen since it's everywhere for free). I'll see what I can find... Thanks.

Edit: 1.1 package: http://ftp.us.debian.org/debian/pool/main/t/tmux/tmux_1.1-1_...

Some commands are still not working (pane-active-border-bg and capture-pane, it seems) but I can take a closer look at those after playing with it for a while and getting comfortable.

Re: GNU Screen: an introduction and beginner's tutorial

#28
post #23

Stop using Screen. Switch to Tmux ( http://tmux.sourceforge.net/ ). Screen is voodoo. Tmux isn't. EDIT: Compare my tmux.conf ( http://pastebin.com/m2394d7a2 ) and my screenrc ( http://pastebin.com/d7bb649a5 ). It was much easier for me to set up tmux the way I wanted from reading the manpage, than it was to configure screen. My screenrc is a hotchpotch of cut-and-paste from lots of different sources, but I never real…

Screen has a very large chunk of the potential market share for this sort of utility app. Tmux is going to have to be 10 times better to get people to switch. ("Screen" also has a name that's easy to remember, and to spell.) Is tmux 10 times better than screen? Cause that's what it's going to take to get people to switch at this point.

Not having used either program, I'm more inclined to try tmux just because it seems to give some visual cues about what's happening. Gnu-screen seems oriented entirely towards remembering commands, something that doesn't appeal to me.

That said, I think both programs more explanation concerning what they do.

Re: GNU Screen: an introduction and beginner's tutorial

#29
post #23

Stop using Screen. Switch to Tmux ( http://tmux.sourceforge.net/ ). Screen is voodoo. Tmux isn't. EDIT: Compare my tmux.conf ( http://pastebin.com/m2394d7a2 ) and my screenrc ( http://pastebin.com/d7bb649a5 ). It was much easier for me to set up tmux the way I wanted from reading the manpage, than it was to configure screen. My screenrc is a hotchpotch of cut-and-paste from lots of different sources, but I never real…

Screen has a very large chunk of the potential market share for this sort of utility app. Tmux is going to have to be 10 times better to get people to switch. ("Screen" also has a name that's easy to remember, and to spell.) Is tmux 10 times better than screen? Cause that's what it's going to take to get people to switch at this point.

Not 10 times, no. On the other hand, tmux is improving quickly; if not every day, at least every week. screen, on the other hand, seems pretty stagnant.

Re: GNU Screen: an introduction and beginner's tutorial

#30

Earlier quoted context omitted.

my tmux is cvs. You can just comment out the options that fail, but I recommend getting a newer release. It builds really painlessly.

Yea, noticed the newest is 1.1... I'd prefer to find a debian package for it rather than building it though, I often need to rebuild machines and I always regret adding steps like this (I can just stick with screen since it's everywhere for free). I'll see what I can find... Thanks. Edit: 1.1 package: http://ftp.us.debian.org/debian/pool/main/t/tmux/tmux_1.1-1_... Some commands are still not working (pane-active-bord…

yeah, I built from cvs specifically for those commands.
Post reply on HN