To avoid crowding at my table, I have the dev1 machine in another
room, and I'm trying to do the final config remotely from the Gentoo
machine. 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?
* I ssh from Gentoo machine to root @ Devuan machine
* issue the command "mc -a"
* exit mc (with {F10} key)
* vim .bashrc
xterm screengrab follows (the "|" are the panel separators in "mc")
# ~/.bashrc: executed by bash(1) for non-login shells. | Size |Modify time |
# see /usr/share/doc/bash/examples/startup-files (in the package bash-doc)26|
# for examples | 4096|Jan 9 17:44||/.cache | 4096|Jan 9 17:44|
export DISPLAY=:0 4096|Jan 9 17:44||/.config | 4096|Jan 9 17:44|
export EDITOR=/usr/bin/viman 9 17:44||/.local | 4096|Jan 9 17:44|
export LC_COLLATE=C 4096|Jan 9 13:01||/.ssh | 4096|Jan 9 13:01|
export MAILCHECK=0 7604|Jan 15 00:44|| .bash_history | 7604|Jan 15 00:44|
if [ -d ${HOME}/bin ] ; then 14 23:59|| .bash_profile | 410|Jan 14 23:59|
export PATH=${HOME}/bin:${PATH}0:12|| .bashrc | 1248|Jan 15 00:12|
fi.lesshst | 20|Jan 11 19:20|| .lesshst | 20|Jan 11 19:20|
umask 022e | 161|May 10 2023|| .profile | 161|May 10 2023|
| .select~editor| 66|Jan 15 00:39|| .select~_editor| 66|Jan 15 00:39|
# If running interactively, then:0:45|| .viminfo | 9814|Jan 15 00:45|
if [ "$PS1" ]; then 155|Jan 15 00:00|| .vimrc | 155|Jan 15 00:00|
| .xinitrc | 273|Jan 15 00:00|| .xinitrc | 273|Jan 15 00:00|
# don't put duplicate lines in the history. See bash(1) for more options01|
export HISTCONTROL=ignoredups0:01||*cpuspeed | 7503|Jan 15 00:01|
| | | || | | |
# You may uncomment the following lines if you want `ls' to be colorized: |
export LS_OPTIONS='--color=auto' || | | |
eval `dircolors` | || | | |
alias ls='ls $LS_OPTIONS' || | | |
alias ll='ls $LS_OPTIONS -al' || | | |
# alias l='ls $LS_OPTIONS -lA' || | | |
alias mc='mc -a' | || | | |
# | | || | | |
# Some more alias to avoid making mistakes: | | |
alias rm='rm -i' | || | | |
alias cp='cp -i' | || | | |
alias mv='mv -i' | || | | |
| | | || | | |
| | | || | | |
| # If this is an xterm set the title to user@host:dir | |
case $TERM in | || | | |
xterm*) | | || | | |
| PROMPT_COMMAND='echo -ne "\033]0;${USER}@${HOSTNAME}: ${PWD}\007"' |
| ;; | | || | | |
*) | | || | | |
| ;; | | || | | |
esac | | || | | |
| | | || | | |
| # enable programmable completion features (you don't need to enable |
# this, if it's already enabled in /etc/bash.bashrc). | |
#if [ -f /etc/bash_completion ]; then | | |
# . /etc/bash_completion || | | |
#fi | | || | | |
fi | | || | | |
--
There are 2 types of people in this world
1) Those who can extrapolate from incomplete data