Hello Alexander. ncurses-term is on both, but only on Stretch it contains the required terminal definition.
See below for a demonstration. This also creates interoperability issues with for example CentOS 7.2. root@admin:~# cat /etc/debian_version 9.0 root@admin:~# echo $TERM screen.xterm-256color root@admin:~# ssh ns1 Debian GNU/Linux 8 (jessie) Last login: Fri Feb 24 12:28:38 2017 from admin.demotuxdc.lab root@ns1:~# echo $TERM screen.xterm-256color root@ns1:~# dpkg -l | grep ncurses-term ii ncurses-term 5.9+20140913-1 all additional terminal type definitions root@ns1:~# cd /etc root@ns1:/etc# git diff WARNING: terminal is not fully functional root@ns1:/etc# N) root@ns1:/etc# root@ns1:/etc# cd root@ns1:~# dpkg -L ncurses-term | grep screen.xterm-256color root@ns1:~# Abgemeldet Connection to ns1 closed. root@admin:~# dpkg -L ncurses-term | grep screen.xterm-256color /usr/share/terminfo/s/screen.xterm-256color root@admin:~# Thanks, Martin