mastodon.uno è uno dei tanti server Mastodon indipendenti che puoi usare per partecipare al fediverso.
Mastodon.Uno è la principale comunità mastodon italiana. Con 77.000 iscritti è il più grande nodo Mastodon italiano: anima ambientalista a supporto della privacy e del mondo Open Source.

Statistiche del server:

6,2K
utenti attivi

#screen

8 post6 partecipanti0 post oggi

A friend complained on IRC earlier this evening:

I… just want the screen to clear when I detach

“just” 😹

Worse, it sometimes works for them and sometimes not, and it doesn’t work in PuTTY.

But turns out there is a solution.

First I asked what $TERM is set to by PuTTY. (Simple echo $TERM on a shell before starting GNU #screen will suffice to find this out.) For the following steps, we’ll assume it says simply xterm and nothing special.

Do: infocmp -C xterm

Look for the “te” key, for example:

        :te=\E[?1049l\E[23;0;0t:ti=\E[?1049h\E[22;0;0t:\

The string we’re looking for is from te= to the next (unescaped) colon, so: \E[?1049l\E[23;0;0t

Append to that: \E[;H\E[J (or whatever is a suitable CLS string (this one is the generic one nōn-termcap/terminfo-aware applications use) for your terminal… actually, probably should be using the one cl=\E[H\E[2J from the infocmp output, too… so we’ll be using that now)

Then, add a new line to the end of your ~/.screenrc which says:

termcapinfo xterm te=\E[?1049l\E[23;0;0t\E[H\E[2J

That is, termcapinfo, space, the $TERM value, space, te=, the original “te” value from termcap, and finally the “cl” value from termcap.

Enjoy!

Been reading Careless People over the holiday weekend, Sara Wynn-Williams' memoir about her time at Facebook — and it's full of fascinating nuggets.

We all know the people who run tech companies don’t let their own children use screens. But here’s a twist: even senior staff at Facebook apparently hate using the platform. They rarely post. Imagine building something you can't stand to use...