Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 18 Jul 2005 20:44:36 -0600
From:      Dan MacMillan <flowers@users.sourceforge.net>
To:        fte-devel@lists.sourceforge.net, freebsd-questions@freebsd.org, screen-users@gnu.org
Subject:   Weirdness with sfte, screen, and FreeBSD.
Message-ID:  <FGEIJLCPFDNMGDOKNBABGEFCDMAA.flowers@users.sourceforge.net>

next in thread | raw e-mail | index | archive | help
Hi,

When I run sfte (20050108) inside of GNU screen (4.00.02) in FreeBSD
(5.4-RELEASE-p2), I get some strange and irritating behaviour.  If I hit
"alt-f" to get the File menu, then press the right arrow key to move to the
next menu over ("Navigate" in the directory view), then that portion of the
screen that WAS covered by the file menu but IS NOT covered by the Navigate
menu has its colors screwed up.  What WAS high-intensity-white on dark blue
becomes black (or dark gray, hard to tell) on green.  What WAS
high-intensity-white on black becomes black (or dark gray) on dark blue.
What WAS light gray on black becomes dark gray on black.  And so on.  If I
then press the right-arrow-key again to move to the "Tools" menu, the
problem becomes progressively worse.  Dark gray becomes blue, blue becomes
light green, light green becomes cyan, etc. etc.  Eventually what was
covered by any of the menus becomes a real colourful mess.  In case this
description is not clear, I've uploaded a clip of a screen grab that
demonstrates the problem after pressing right-arrow a bunch of times with an
open menu:

http://members.shaw.ca/flowers.hidey.hole/ftemess.png

I have tried to understand terminals and consoles and termcap and terminfo
but I have to say, the concepts escape me.  The only other slang program I
generally use is Mutt, which works like gangbusters.  I don't even know
where to begin looking at this.  Here are some environment variables that
(may) be of interest:

COLORFGBG='lightgray;black'
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)0:\
        :li#60:co#132: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~: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:'

I don't know what other information to include.  I get the problem both
using Putty to SSH in and at the console.  Outside of GNU screen sfte works
like a charm.  Note that in order to get sfte to build on FreeBSD, I had to
link it to both libslang and libncurses (and perform other minor surgery on
the port, viz. comment out USE_XLIBS and change fte-unix.mak to build sfte
instead of xfte since I neither have nor want X installed).

Pardon the cross-post but I really don't know which piece of software might
be at fault.  Any information or pointers would be greatly appreciated.

--
Danny MacMillan




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?FGEIJLCPFDNMGDOKNBABGEFCDMAA.flowers>