public inbox for cygwin@cygwin.com
 help / color / mirror / Atom feed
* Workaround to screen writing over restored buffer on detach/exit
@ 2019-04-09  5:37 Shaddy Baddah
  2019-04-09  6:07 ` *spoke to soon to a* " Shaddy Baddah
  0 siblings, 1 reply; 11+ messages in thread
From: Shaddy Baddah @ 2019-04-09  5:37 UTC (permalink / raw)
  To: cygwin

Hi,

So I've had an issue with screen for some years now. I do remember
noticing its introduction, but I no longer can remember when that
actually happened.

As per the subject, I find that when I detach or exit a screen session
the cursor ends up part way up the restored buffer, intermingled with
previous lines.

I'd resolved to try and get to the bottom of it ages ago, but lost the
initiative too easily. I noticed from ages ago that the terminal window
title bar would flash this message:

Utmp slot not found -> not removed

And this didn't surprise me, as I wouldn't expect Cygwin to have
conventional utmp implementation. But it looks like screen sending
xterm control sequences for this additional message (on detach/exit, a
final restoration of your buffer involves updating the terminal title
with previous message) causes havoc with the screen session.

I confirmed this by turning off the default "login" mode for a new
session, which averted attempts to manage utmp entries, and therefore
avoided the "utmp slot not found" message. I did this by launching a
session via:

screen -ln

You can also set login off in your .screenrc.

Doing this, screen session plays nicely now. Probably, the error in utmp
should be actually fixed, or permanently turned off if not workable in
Cygwin. But for now, I'm so relieved to be able to workaround a daily
pain in the proverbial.

-- 
Regards,
Shaddy

--
Problem reports:       http://cygwin.com/problems.html
FAQ:                   http://cygwin.com/faq/
Documentation:         http://cygwin.com/docs.html
Unsubscribe info:      http://cygwin.com/ml/#unsubscribe-simple

^ permalink raw reply	[flat|nested] 11+ messages in thread

end of thread, other threads:[~2019-04-11 23:50 UTC | newest]

Thread overview: 11+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2019-04-09  5:37 Workaround to screen writing over restored buffer on detach/exit Shaddy Baddah
2019-04-09  6:07 ` *spoke to soon to a* " Shaddy Baddah
2019-04-10  3:18   ` *cause of* " Shaddy Baddah
2019-04-10 15:04     ` Andrew Schulman
2019-04-10 17:12       ` Thomas Wolff
2019-04-11 12:12         ` Andrew Schulman
2019-04-11 17:24           ` Thomas Wolff
2019-04-10 20:03     ` Thomas Dickey
2019-04-10 21:51       ` Thomas Wolff
2019-04-11 23:06         ` Thomas Dickey
2019-04-11 23:50           ` Thomas Dickey

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).