Subject: color OOPS in screen
To: None <tech-pkg@netbsd.org>
From: George Georgalis <george@galis.org>
List: tech-pkg
Date: 07/21/2006 12:53:30
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
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.
Doubt it is an issue, but as with similar machines, I have some
control sequences in my PS1:
PS1=^E^M$PS1^E'$(echo -ne "\033]0;${USER}@`hostname`:${PWD}\007")'^E
alias screen='echo -ne "\033]0;${USER}@`hostname` screen\007" && env PS1=${USER}@`hostname`:${PWD} screen'
Below is my env and .screenrc, any suggestions to try?
// George
_=/usr/bin/env
SSH_CONNECTION=10.0.1.1 49896 10.0.1.37 22
PATH=/sbin:/usr/sbin:/bin:/usr/bin:/usr/pkg/sbin:/usr/pkg/bin:/usr/local/sbin:/usr/local/bin:/usr/X11/bin:/usr/X11R6/bin:/usr/games
SHELL=/bin/ksh
USER=root
MAIL=/var/mail/root
HOME=/root
SSH_CLIENT=10.0.1.1 49896 22
VIM=/usr/pkg/share/vim
TERM=screen
WINDOW=0
STY=23463.ttyp3.rocket
LOGNAME=root
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#44:co#140: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:
SSH_TTY=/dev/ttyp3
VIMRUNTIME=/usr/pkg/share/vim/vim70
MYVIMRC=/root/.vimrc
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><