News: 1725374708

  ARM Give a man a fire and he's warm for a day, but set fire to him and he's warm for the rest of his life (Terry Pratchett, Jingo)

GNU screen 5 proves it's still got game even after 37 years

(2024/09/03)


GNU screen is included in most Linux distros, but newer, fancier tools such as tmux often outshine it.

[1]GNU screen 5.0.0 is the latest version of a tool that's been around since early 1987. This release has multiple tweaks to its (admittedly basic) user interface, much improved color handling, and better authentication support, including the ability to password-protect screen sessions.

This is only the second major release this century. Screen, which we will capitalize for clarity, is old enough that the history of its releases is obscure, but initial [2]release notes were published in 1987. A possibly unofficial version 4 appeared around 2004, replaced by a more official 4.2.0 in 2014. The last point release, 4.9, was two years ago.

GNU screen showing two different types of system monitor. From Solaris to Xenix, screen is very similar

Screen is a terminal multiplexer, or a sort of call-forwarding service for the Unix command line. There are newer ones, which we'll get to, but Screen can do most of what they do.

For those who aren't habitual command line jockeys, we'll try to explain with a parallel. Imagine you are sitting at home on a laptop and you open a terminal window on your computer, then use that window to SSH into a different computer at the office and start some long, complicated process that will take hours. This doesn't have to be anything arcanely technical. Let's say you're writing a book and have several files open, one with the list of contents, another with a scratchpad, and the main draft document.

[3]

If you use a simple connection and accidentally close the window, you've lost that terminal session with three files open. Even if you saved all your documents and haven't lost any work, it will take some time to reopen them and find where you were. Screen puts a rerouting layer between your terminal window and the computers you're talking to. So, before you connect, you run Screen, then connect. If your laptop's battery suddenly runs out, no problem.

[4]

[5]

The next day, you retrieve the power lead, open Screen, and reconnect to yesterday's session with screen -r – and there are your files, exactly where you left them. Or you could switch to your desktop, open Screen and attach to that waiting session by name. Screen is capable enough that the different sessions can be on different computers, so a single terminal can manage multiple connections at once.

[6]Zen Browser is a no-Google zone that offers tiling nirvana

[7]'Uncertainty' drives LinkedIn to migrate from CentOS to Azure Linux

[8]Linux Deepin 23: A polished distro from China that Western desktops could learn from

[9]LibreOffice 24.8: Handy even if you're happy with Microsoft

There are more modern terminal multiplexers around, such as [10]tmux or the simpler [11]dvtm , which only handles local sessions but works with the separate [12]abduco to handle remote ones. A fancy modern equivalent, written in Rust, is [13]Zellij . The most visible difference is that these all are tiling environments. Separate sessions appear side-by-side, or any other arrangement you prefer, on screen – all in text mode, without any graphical environment, including on the system console. However, Screen can do that as well. Pressing Ctrl+a , S splits the screen horizontally, or Ctrl+a , | splits it vertically.

As you might expect for a non-obvious program that's been around for decades, there are [14]lots of [15]tutorials for Screen around. It may take a while for them to pick up the new features in this release – and it will doubtless take most distros a while to incorporate version 5 too – but that doesn't reduce their helpfulness.

The biggest advantage of Screen over its younger rivals is its ubiquity. It runs on more or less every Unix-like OS out there, and has few dependencies. ®

Get our [16]Tech Resources



[1] https://savannah.gnu.org/news/?id=10668

[2] https://groups.google.com/g/net.sources/c/5V9QWdIynTY/m/nrJLMWpznEUJ

[3] https://pubads.g.doubleclick.net/gampad/jump?co=1&iu=/6978/reg_software/applications&sz=300x50%7C300x100%7C300x250%7C300x251%7C300x252%7C300x600%7C300x601&tile=2&c=2ZtcyoWUkEvAauRRhUbQn4AAAAMw&t=ct%3Dns%26unitnum%3D2%26raptor%3Dcondor%26pos%3Dtop%26test%3D0

[4] https://pubads.g.doubleclick.net/gampad/jump?co=1&iu=/6978/reg_software/applications&sz=300x50%7C300x100%7C300x250%7C300x251%7C300x252%7C300x600%7C300x601&tile=4&c=44ZtcyoWUkEvAauRRhUbQn4AAAAMw&t=ct%3Dns%26unitnum%3D4%26raptor%3Dfalcon%26pos%3Dmid%26test%3D0

[5] https://pubads.g.doubleclick.net/gampad/jump?co=1&iu=/6978/reg_software/applications&sz=300x50%7C300x100%7C300x250%7C300x251%7C300x252%7C300x600%7C300x601&tile=3&c=33ZtcyoWUkEvAauRRhUbQn4AAAAMw&t=ct%3Dns%26unitnum%3D3%26raptor%3Deagle%26pos%3Dmid%26test%3D0

[6] https://www.theregister.com/2024/09/02/zen_firefox_fork_alpha/

[7] https://www.theregister.com/2024/08/28/linkedin_azure_linux/

[8] https://www.theregister.com/2024/08/23/deepin_23/

[9] https://www.theregister.com/2024/08/23/libreoffice_24_8/

[10] https://github.com/tmux/tmux/wiki

[11] https://www.brain-dump.org/projects/dvtm/

[12] https://github.com/martanne/abduco

[13] https://github.com/zellij-org/zellij

[14] https://opensource.com/article/17/3/introduction-gnu-screen

[15] https://linuxize.com/post/how-to-use-linux-screen/

[16] https://whitepapers.theregister.com/



Ace2

Are there online resources for screen? It’s the canonical example of a tool with a name that makes it almost impossible to search for on the open internet.

Ace2 - try here….

itsthemonkey

https://lists.gnu.org/archive/html/info-gnu/2024-08/msg00004.html

Re: Ace2 - try here….

Gene Cash

Wow. That's a great example of the unfriendliness of GNU... just a link to a bare FTP directory of source tarballs, with no documentation whatsoever or any other useful resources.

Android client?

Gene Cash

Is there a version for Android?

I have the same problem in that it's impossible to search for it.

The only name I've found that's worse is "dia" for a visio clone.

First major version in two decades years is worth getting to know

itsthemonkey

Two decades years? Does anyone proof read anymore (even if LLMs cannot get the facts straight at least they can string a coherent headline together)!!!

Re: First major version in two decades years is worth getting to know

Liam Proven

Whoops! That may be my fault. Fixed now.

Technical Adept

Goodness I remember that at university on a VT100 terminal in the early 90s. Use case was switching between chat and news.

Genius is ten percent inspiration and fifty percent capital gains.