bug-gettext
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Terminal type term-256color is not defined


From: Bruno Haible
Subject: Re: Terminal type term-256color is not defined
Date: Mon, 10 Aug 2020 08:38:04 +0200
User-agent: KMail/5.1.3 (Linux/4.4.0-186-generic; KDE/5.18.0; x86_64; ; )

Hi,

Jeffrey Walton wrote:
>    $ ssh 172.16.4.138
>    Last login: Sun Aug  9 23:39:18 2020 from 172.16.2.10
>    unknown terminal "xterm-256color"
>    unknown terminal "xterm-256color"

TERM, like LANG and a couple of other environment variables, are
passed through 'ssh'.

> and
> 
>     $ emacs test.txt
>     emacs: Terminal type term-256color is not defined.
> 
> There's one mention of xterm-256color in /etc
> 
>    # grep -IR xterm-256color /etc
>    /etc/termcap:#    * add xterm-88color and xterm-256color -TD
> 
> However, xterm-256color shows up frequently in /usr/local. I think the
> xterm-256color may be coming from libtextstyle.

libtextstyle does not set the TERM variable. However, you may have set
TERM=xterm-256color in order to get a more pleasant user experience with
libtextstyle-enabled programs [1].

As a workaround against what ssh does, you can, on the remote system,
modify the .bashrc to include statements like this:

case "$TERM" in
  xterm-256color)
    case `uname -n` in
      oldmachine1 | oldmachine2 )
        TERM=xterm ;;
    esac
    ;;
esac

Bruno

[1] 
https://www.gnu.org/software/gettext/libtextstyle/manual/html_node/Terminal-emulators.html




reply via email to

[Prev in Thread] Current Thread [Next in Thread]