[Pkg-urxvt-maintainers] Bug#618332: rxvt-unicode: screen contents not restored when detaching a "screen" session
Marc Lehmann
schmorp at schmorp.de
Mon Mar 14 20:27:29 UTC 2011
On Mon, Mar 14, 2011 at 04:07:18PM +0100, Emanuele Giaquinta <emanuele.giaquinta at gmail.com> wrote:
> On Mon, Mar 14, 2011 at 03:51:21PM +0100, Vincent Lefevre wrote:
> > On 2011-03-14 15:22:27 +0100, Emanuele Giaquinta wrote:
> > Thanks for the information.
> >
> > Isn't there any standard about is2?
Well, the terminfo manpage says it initialises the terminal, and that is2
usually does most of that work, but that doesn't matter, as they are all
taken together (there are multiple ones so you can split very long init
sequences, there is no semantic difference between is1, is2 etc.).
> > Is it a bug in rxvt-unicode, ncurses-base (which provides
> > /lib/terminfo/r/rxvt-unicode, but perhaps following recommendations
> > by rxvt-unicode developers) or screen (which sends "is2")?
Almost certainly screen - ncurses programs do the right thing and don't
reset the terminal *after* configuring it.
I don't know what screen tries to accomplish, but if it wants a clean
state, then it needs to output all the intiialisation sequences *before*
configuring the terminal, as obviously configuration can be lost when
intiialisaing the terminal.
And if screen outputs is2 but not the other sequences as required by
terminfo, that's an even bigger wtf. There is no reason to do so, and that
*will* break things.
> > Even if one considers that screen does something bad and should be
> > fixed, the incompatibility between rxvt-unicode and other terminals
> > (xterm, gnome-terminal) can be annoying.
Hmm, which incompatibility is there?
> Marc changed is2 in 9.06 with the following rationale
>
> "redundantly clear mouse reporting and a few other states in tput
> init/tput reset, for older urxvts"
>
> but I cannot remember what exactly prompted this change.
"tput init" is the canonical way to bring your terminal into a clean state
after a curses program (or screen, which loves to crash...) crashed. The
change just implemented that.
--
The choice of a Deliantra, the free code+content MORPG
-----==- _GNU_ http://www.deliantra.net
----==-- _ generation
---==---(_)__ __ ____ __ Marc Lehmann
--==---/ / _ \/ // /\ \/ / schmorp at schmorp.de
-=====/_/_//_/\_,_/ /_/\_\
More information about the Pkg-urxvt-maintainers
mailing list