termcap regression: screen not restored after screen(1) detachment

Jukka Salmi j+urxvt at 2009.salmi.ch
Thu Feb 5 11:55:59 CET 2009


Hello,

since rev. 1.17 of doc/etc/rxvt-unicode.termcap I notice a regression:
when detaching a screen(1) session (C-a d), the screen contents are not
restored anymore. Previously (with rev. 1.16) this worked fine.

To reproduce the problem I

  o open a new urxvt window
  o start screen(1)
  o type a command to produce some lines of output
  o detach screen(1) using `C-a d'

The cursor now jumps to the correct position, but the screen contents
are not restored.  This means I can still see the output of the command
I entered inside screen(1).

The culprit seems to be the terminal initialisation string which was
changed in rev. 1.17:

$ cvs diff -r1.16 -r1.17 doc/etc/rxvt-unicode.termcap
[...]
-	:is=\E[r\E[m\E[2J\E[H\E[?7h\E[?1;3;4;6l\E[4l:\
[...]
+	:is=\E[m\E[?7;25h\E[?1;3;4;5;6;7;9;66;1000;1001;1049l\E[4l:\
[...]

I have no idea what these sequences mean, but reverting the change fixes
the problem for me.

This is on NetBSD/i386, running the latest rxvt-unicode (and libev) from
CVS and screen 4.0.3, BTW.

Any hints?


Regards, Jukka

-- 
bashian roulette:
$ ((RANDOM%6)) || rm -rf ~




More information about the rxvt-unicode mailing list