Subject: color OOPS in screen
To: None <netbsd-users@netbsd.org>
From: George Georgalis <george@galis.org>
List: netbsd-users
Date: 07/21/2006 15:13:03
I had posted this in the tech-pkg list (sorry)
assuming a package was missing or corrupted, but I
guess it is more of a netbsd-users, question...
I'm having a strange terminal problem within screen.
Apparently color control sequences are replaced by
"OOPS" eg
$ colorls -G /
.cshrc boot OOPSetc OOPSlib OOPSnetbsd OOPSrescue OOPSsbin OOPSusr
OOPSaltroot OOPScommand OOPShome OOPSlibexec OOPSpackage OOPSroot OOPSstand OOPSvar
OOPSbin OOPSdev OOPSkern OOPSmnt OOPSproc OOPSsandbox OOPSOOPStmp
vim with syntax highlighting is impossible to use in screen.
This a fairly fresh 2006Q2 netbsd amd64 machine being used for
development - terminal colors works fine outside of screen, and no
other problems have been observed. The .profile and .screenrc work
fine on similar 32 bit machines. I've tried adjusting the TERM and
various configs but I cannot identify the source of the problem.
Below is my env (from a default csh env) and .screenrc, any
suggestions to try?
// George
rocket# env
STY=10568.ttyp2.rocket
TERM=screen
TERMCAP=SC|screen|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(B:\
:li#53:co#120: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:G0: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:
WINDOW=0
SHELL=/bin/csh
USER=root
LOGNAME=root
HOME=/root
PATH=/sbin:/usr/sbin:/bin:/usr/bin:/usr/pkg/sbin:/usr/pkg/bin:/usr/X11R6/bin:/usr/local/sbin:/usr/local/bin:/root/bin
MAIL=/var/mail/root
SSH_CLIENT=10.0.1.1 49901 22
SSH_CONNECTION=10.0.1.1 49901 10.0.1.37 22
SSH_TTY=/dev/ttyp2
PWD=/root
EDITOR=vi
PAGER=less
BLOCKSIZE=1k
shell -$SHELL
autodetach on
startup_message off
pow_detach_msg "Screen session of \$USER \$:cr:\$:nl:ended."
caption always "${USER}@%H: %w"
nethack off
--
George Georgalis, systems architect, administrator <IXOYE><