sudo apt install foot-terminfo helps to solve all the issues with my Raspberry Pis and my terminal, foot.