Well, I found some more information.  I thought I might be able to fix
the problem by fixing the term, but I don't think that's involved.
Here's what I did.

I symlinked the "screen" terminfo files to
/usr/share/terminfo/screen.xterm and screen.xterm-color, to no avail.
Also tried /lib/terminfo and even symlinking them into /etc/terminfo.
None of these options worked with a TERM of xterm-color.  So, I tried
using the -T option on screen to manually set the term to 'screen.xterm'
or 'xterm' (instead of TERM=xterm, for example) and that didn't work
either.

My terminfo folders look like this:
find /lib/terminfo/ /usr/share/terminfo/ | grep screen
/lib/terminfo/s/screen
/lib/terminfo/s/screen-bce
/lib/terminfo/s/screen-s
/lib/terminfo/s/screen-w
/lib/terminfo/s/screen.xterm-color
/usr/share/terminfo/s/screen
/usr/share/terminfo/s/screen-256color-s
/usr/share/terminfo/s/screen-bce
/usr/share/terminfo/s/screen.teraterm
/usr/share/terminfo/s/screen-256color-bce
/usr/share/terminfo/s/screen-16color
/usr/share/terminfo/s/screen.xterm-new
/usr/share/terminfo/s/screen-s
/usr/share/terminfo/s/screen-16color-bce
/usr/share/terminfo/s/screen-w
/usr/share/terminfo/s/screen.xterm-xfree86
/usr/share/terminfo/s/screen.xterm
/usr/share/terminfo/s/screen2
/usr/share/terminfo/s/screen-16color-bce-s
/usr/share/terminfo/s/screen.linux
/usr/share/terminfo/s/screen.xterm-r6
/usr/share/terminfo/s/screen-256color
/usr/share/terminfo/s/screen-256color-bce-s
/usr/share/terminfo/s/screen3
/usr/share/terminfo/s/screen-16color-s
/usr/share/terminfo/s/screen.xterm-color

I added a few symlinks as tests.

Currently, it seems like this is a terminfo issue, but I can't fix it
using any of the things I know about terminfo.

Here's the working (TERM=xterm) dumped terminfo file:
SC|screen.xterm|VT 100/ANSI X3.64 virtual terminal:\
        :DO=\E[%dB:LE=\E[%dD:RI=\E[%dC:UP=\E[%dA:bs:bt=\E[Z:\
        :cd=\E[J:ce=\E[K:cl=\E[H\E[J:cm=\E[%i%d;%dH:ct=\E[3g:\
        :do=^J:nd=\E[C:pt:rc=\E8:rs=\Ec:sc=\E7:st=\EH:up=\EM:\
        :le=^H:bl=^G:cr=^M:it#8:ho=\E[H:nw=\EE:ta=^I:is=\E)0:\
        :li#66:co#275:am:xn:xv:LP:sr=\EM:al=\E[L:AL=\E[%dL:\
        :cs=\E[%i%d;%dr:dl=\E[M:DL=\E[%dM:dc=\E[P:DC=\E[%dP:\
        :im=\E[4h:ei=\E[4l:mi:IC=\E[%d@:ks=\E[?1h\E=:\
        :ke=\E[?1l\E>:vi=\E[?25l:ve=\E[34h\E[?25h:vs=\E[34l:\
        :ti=\E[?1049h:te=\E[?1049l:us=\E[4m:ue=\E[24m:so=\E[3m:\
        :se=\E[23m:mb=\E[5m:md=\E[1m:mr=\E[7m:me=\E[m:ms:\
        :Co#8:pa#64:AF=\E[3%dm:AB=\E[4%dm:op=\E[39;49m:AX:\
        :vb=\Eg:G0:as=\E(0:ae=\E(B:\
        
:ac=\140\140aaffggjjkkllmmnnooppqqrrssttuuvvwwxxyyzz{{||}}~~..--++,,hhII00:\
        :po=\E[5i:pf=\E[4i:k0=\E[10~:k1=\EOP:k2=\EOQ:k3=\EOR:\
        :k4=\EOS:k5=\E[15~:k6=\E[17~:k7=\E[18~:k8=\E[19~:\
        :k9=\E[20~:k;=\E[21~:F1=\E[23~:F2=\E[24~:F3=\EO2P:\
        :F4=\EO2Q:F5=\EO2R:F6=\EO2S:F7=\E[15;2~:F8=\E[17;2~:\
        :F9=\E[18;2~:FA=\E[19;2~:kb=:K2=\EOE:kB=\E[Z:\
        :*4=\E[3;2~:*7=\E[1;2F:#2=\E[1;2H:#3=\E[2;2~:#4=\E[1;2D:\
        :%c=\E[6;2~:%e=\E[5;2~:%i=\E[1;2C:kh=\E[1~:@1=\E[1~:\
        :kH=\E[4~:@7=\E[4~:kN=\E[6~:kP=\E[5~:kI=\E[2~:kD=\E[3~:\
        :ku=\EOA:kd=\EOB:kr=\EOC:kl=\EOD:km:

Here's the non-working version :
SC|screen.xterm-color|VT 100/ANSI X3.64 virtual terminal:\
        :DO=\E[%dB:LE=\E[%dD:RI=\E[%dC:UP=\E[%dA:bs:bt=\E[Z:\
        :cd=\E[J:ce=\E[K:cl=\E[H\E[J:cm=\E[%i%d;%dH:ct=\E[3g:\
        :do=^J:nd=\E[C:pt:rc=\E8:rs=\Ec:sc=\E7:st=\EH:up=\EM:\
        :le=^H:bl=^G:cr=^M:it#8:ho=\E[H:nw=\EE:ta=^I:is=\E)0:\
        :li#66:co#275:am:xn:xv:LP:sr=\EM:al=\E[L:AL=\E[%dL:\
        :cs=\E[%i%d;%dr:dl=\E[M:DL=\E[%dM:dc=\E[P:DC=\E[%dP:\
        :im=\E[4h:ei=\E[4l:mi:IC=\E[%d@:ks=\E[?1h\E=:\
        :ke=\E[?1l\E>:vi=\E[?25l:ve=\E[34h\E[?25h:vs=\E[34l:\
        :ti=\E[?1049h:te=\E[?1049l:us=\E[4m:ue=\E[24m:so=\E[3m:\
        :se=\E[23m:md=\E[1m:mr=\E[7m:me=\E[m:ms:\
        :Co#8:pa#64:AF=\E[3%dm:AB=\E[4%dm:op=\E[39;49m:AX:\
        :as=\E(0:ae=\E(B:\
        
:ac=\140\140aaffggjjkkllmmnnooppqqrrssttuuvvwwxxyyzz{{||}}~~..--++,,hhII00:\
        :k0=\E[10~:k1=\EOP:k2=\EOQ:k3=\EOR:k4=\EOS:k5=\E[15~:\
        :k6=\E[17~:k7=\E[18~:k8=\E[19~:k9=\E[20~:k;=\E[21~:\
        :F1=\E[23~:F2=\E[24~:F3=\E[25~:F4=\E[26~:F5=\E[28~:\
        :F6=\E[29~:F7=\E[31~:F8=\E[32~:F9=\E[33~:FA=\E[34~:\
        :kb=^H:kh=\E[1~:@1=\E[1~:kH=\E[4~:@7=\E[4~:kN=\E[6~:\
        :kP=\E[5~:kI=\E[2~:kD=\E[3~:ku=\EOA:kd=\EOB:kr=\EOC:\
        :kl=\EOD:km:

Sorry, wish I could be more help.

-- 
Screen missing terminfo entries for 'xterm'
https://bugs.launchpad.net/bugs/190852
You received this bug notification because you are a member of Ubuntu
Bugs, which is the bug contact for Ubuntu.

-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs

Reply via email to