If you have an error "Error opening terminal: vt220.
" in Termux, then I have found a solution for you
Just run this command in the terminal:
export TERM=xterm-256color
It is also advisable to add it to .bashrc
:
echo "export TERM=xterm-256color" >> ~/.bashrc
I found the solution to the error at this link: termux/termux-packages#1946 (comment)
Have a good day!