you could also stick this in ssh config, generally makes terminals work with ancient systems...:
SetEnv TERM=xterm-256color
Ancient systems like Debian 12?
Ancient systems like Debian 12?