Hi,

On Tue, Sep 09, 2025 at 00:52 +0000, Dan Mahoney (Gushi) wrote:
> Hey there folks,
> 
> On a system which has otherwise not changed, I'm noticing that in alpine, 
> the former inverted colors status bar and menu options have become italic 
> when running under screen (they remain inverse when not).

I have a similar problem. For me it's "less". For example the search
results are displayed in "standout" which in the past was "reverse", but
now seems to be italic inside screen.

I have done some debugging. Screen is producing the following TERMCAP
environment variable:

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)0:li#24:co#80: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:so=\E[7m:se=\E[27m: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:Km=\E[M: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~:kb=^H:K2=\EOE:kB=\E[Z: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:

Please note the "so=\E[3m:se=\E[23m:so=\E[7m:se=\E[27m:" part. It
seems that screen seems to be confused what the correct standout
sequence is.

I tried different variations of

termcap * so=\E[7m:se=\E[27m:

in my .screenrc, but none of them seem to affect the result in $TERMCAP

For now, as a workaround I put the following in my .zshenv:

TERMCAP=${TERMCAP//so=\\E\[3m:/}

Which seems an acceptable woraround.

Any ideas why screen duplicates se/so and why I can't override it are
welcome.

Thanks,
    Sec
-- 
The problem with troubleshooting is that trouble shoots back.

Reply via email to