On 2017-07-13 11:30 +0200, Axel Beckert wrote:

> Hi Sven,
>
> Sven Joachim wrote:
>> On 2017-07-13 10:44 +0200, Axel Beckert wrote:
>> > Another suggestion which is probably worth documenting comes from
>> > https://savannah.gnu.org/bugs/?48848#comment0 despite it seems labeled
>> > as non-working there: Using "term screen" inside .screenrc. At least
>> > "term screen-256color-bce" worked for me so well that I never noticed
>> > this issue.
>> 
>> I can confirm that "term screen" in ~/.screenrc does not help, screen
>> still sets $TERM to screen.xterm-256color then.
>
> Meh, indeed. But why?
>
> I've digged through the code to try to figure out why "term screen"
> does not work while "term screen-256color-bce" does work. But so far I
> didn't find the reason.

There is no screen-256color-bce.xterm-256color terminfo entry, so
screen will not set $TERM to that value.  You can create one and test for
yourself:

$ mkdir -p ~/.terminfo/s
$ cp /lib/terminfo/s/screen-256color-bce 
~/.terminfo/s/screen-256color-bce.xterm-256color

Cheers,
       Sven

Reply via email to