:: Re: [DNG] Terminal type mismatch?
Page principale
Supprimer ce message
Répondre à ce message
Auteur: Didier Kryn
Date:  
À: dng
Sujet: Re: [DNG] Terminal type mismatch?
Le 15/01/2025 à 07:23, Walter Dnes a écrit :
> Problem... the terminal (xterm) is not clearing the screen
> when I start a new program. This makes vim and other pseudo-textmode
> programs virtually unusable. I've checked and at the true text console
> command prompt (not GUI) on both machines "echo $TERM" gives "linux".
> When I ssh to the Devuan machine, "echo $TERM" gives "xterm". Example
> follows; any ideas for a solution?


    You might check you have ncurses library and the package
ncurses-base installed. Then list /lib/ncurses/x to see which version of
xterm fits best your needs (I would bet some version of xterm-color).

    Then check that ssh is forwarding your TERM variable: this is
parameter SendEnv in /etc/ssh/ssh_config, and , on the server side, that
parameter AcceptEnv in /etc/ssh/sshd_config also lists the TERM variable.

     Note the two different config files ssh_config on client side and
sshd_config on server side.

    Hope that helps.

--     Didier