Before I go into the detail of my problem there is a debian mailing list which seem to explain the cause- https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=854414
After installing Debian 9, logging into remote shells results in the the error message
"screen.xterm-256color: unknown terminal type". In some instances typing
export TERM=xterm-256color fixes the issue.
When I log into a remote console and run some commands like
apt-get xxx the error message
WARNING: terminal is not fully functional comes up and apt also adds
- (press RETURN)WARNING: apt does not have a stable CLI interface yet. Use with caution in scripts.
What I notice is that when I press
Ctrl-Alt F1 to execute those commands directly the problems are not there, so I assume that there is something wrong or missing in the default
Konsole configuration of Debian 9 may be the problem and my other research seems to support that.
The problem comes up more with
bash but I assume that some change I made to the
.bashrc configuration years ago may be fixing it.
I thought of making some changes to
.screenrc but read some where because Konsole is the terminal that is where the changes have to be made.
What could the flaws in my Konsole setup be, and could they be coming from defaults which are set in the X11 configuration?