Live data from Hacker News

GNU Screen 5.0 Released

savannah.gnu.org

101–110 of 126 posts

Re: GNU Screen 5.0 Released

#101
post #21

Earlier quoted context omitted.

Why did you switch to tmux? It seems to me that screen is more ubiquitous, and has more features. Having a modem is a pretty handy thing built into it.

> Having a modem is a pretty handy thing built into it. in what way?

Connecting to serial devices. You can for example get a USB uart dongle, and then connect cables to some device where you have uart pins. Most recently I was doing something like that for an esp32 board, and used screen.

Re: GNU Screen 5.0 Released

#102

Looks like a few QoL improvements and bug fixes. Nothing disruptive that would normally come with a major release version. Looks like you can set a password on it now, which is cool (though I personally like having linux perms govern access to my screen/tmux). Multiinput sounds interesting as well, though in the past that was a feature I thought I'd love to have, but once I had I never use. I'm glad to see Screen is…

I wonder how many people are using the default b key binding in tmux

> I wonder how many people are using the default b key binding in tmux

I do not use C-b as the tmux prefix key because it interferes with my muscle memory for Emacs where C-b invokes backward-char (i.e., move the cursor back by character(s)).

So I use C-j instead as the prefix key. While C-j also happens to be a useful Emacs key-binding, I use it quite rarely in Emacs. As a result, I do not have strong muscle memory for C-j and I can use it as the prefix key in tmux quite comfortably.

Here is my tiny .tmux.conf: https://github.com/susam/dotfiles/blob/main/.tmux.conf

Re: GNU Screen 5.0 Released

#103
post #75

Earlier quoted context omitted.

C-f moves forward a character which is also useful. The easiest to type character that had the least impact I could find was to remap to C-j. Works well in both Dvorak and Qwerty layouts and that's the one emacs shortcut I use so infrequently that I can live with having to type it twice.

C-Space here

C-o here. And C-x or C-p on a few rare nested screens in one particular screen session that I always have open. Those are identified by differently colored tabs in the hardstatus bar which is always visible.

Re: GNU Screen 5.0 Released

#104
post #81

Earlier quoted context omitted.

I wonder how many people are using the default b key binding in tmux

I use back-tick `. For nested, it becomes `` or ````. For twice nested and I'm writing a shell script with ` instead of $( .. ) It's ```````` (I'm an emacs user, I need all the control characters :)

I also use backticks, and in 99.9% of cases it works like a charm. But then one day you paste a large file, and the gates of hell open. Tmux randomly opens windows, kills sessions, and launches nuclear missiles while processing all the backticks in the text.

Re: GNU Screen 5.0 Released

#105

Earlier quoted context omitted.

Screen does connect to serial ports. Just open the device and append the line parameters you want to run on the port. Unlike modem dialers like Minicom, you don't have to screw around with on-hook off-hook distinctions or an intrusive TUI.

Ha, I have only ever used screen for serial comms and only learned about Minicom from this thread

Exactly the other way around for me! I've been using screen since forever, and had no idea it could do that. Minicom I still know from the dialup dark ages.

Re: GNU Screen 5.0 Released

#106

Looks like a few QoL improvements and bug fixes. Nothing disruptive that would normally come with a major release version. Looks like you can set a password on it now, which is cool (though I personally like having linux perms govern access to my screen/tmux). Multiinput sounds interesting as well, though in the past that was a feature I thought I'd love to have, but once I had I never use. I'm glad to see Screen is…

I wonder how many people are using the default b key binding in tmux

I use emacs so that meant practically every prefix character would annoy me at some point. I ended up using C-\ since that almost never gets used by anything (I was surprised it could even be detected by terminals).

Re: GNU Screen 5.0 Released

#107

Looks like a few QoL improvements and bug fixes. Nothing disruptive that would normally come with a major release version. Looks like you can set a password on it now, which is cool (though I personally like having linux perms govern access to my screen/tmux). Multiinput sounds interesting as well, though in the past that was a feature I thought I'd love to have, but once I had I never use. I'm glad to see Screen is…

true color support is a big deal. I've been waiting for that for years.

Re: GNU Screen 5.0 Released

#108

To anyone to perhaps who has used both a lot: * Are there particular pros and cons to using screen or tmux ? (I'm generally on macOS for work, but never really go into using iTerm2, so that integration isn't a big thing for me personally.) Edit: I mean why use one over the other. I generally use something on the destination host I'm SSHing to in case the network goes sideways.

Long ago i decided to train myself on a lightweight development environment available on all platforms so i can carry it around easily in my head. I came up with GNU Screen + dvtm tiling window manager(as needed within each screen window) + Vim (with Cscope + GNU Global/Ctags). I generally leave this running on a central server/my local desktop/laptop, connect from anywhere anytime (detach/reattach) and continue working. From this central screen session i can connect to various other machines (including embedded devices via serial/USB/Network) allocating one screen window running dvtm (allows me to run multiple shell sessions) to each machine. This keeps everything clean and nicely organized in my head thus allowing me to carry it to any needed platform.

Re: GNU Screen 5.0 Released

#109
post #33
post #22

Earlier quoted context omitted.

Yeah maddening! But you can remap it. I use this in my .screenrc to make it C-f: escape ^Ff

I map mine to C^] which I find to be a good balance between easy to type and not conflicting with other tools

This is actually a very handy readline shortcut to search for a character. Useful when editing long command lines. Granted, I use Ctrl-Shift-] more often (searches backwards).

Re: GNU Screen 5.0 Released

#110
post #104
post #81

Earlier quoted context omitted.

I use back-tick `. For nested, it becomes `` or ````. For twice nested and I'm writing a shell script with ` instead of $( .. ) It's ```````` (I'm an emacs user, I need all the control characters :)

I also use backticks, and in 99.9% of cases it works like a charm. But then one day you paste a large file, and the gates of hell open. Tmux randomly opens windows, kills sessions, and launches nuclear missiles while processing all the backticks in the text.

I think this can be avoided if you enable “bracketed paste” in your terminal.
Post reply on HN