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-256colorIt is also advisable to add it to .bashrc:
echo "export TERM=xterm-256color" >> ~/.bashrcI found the solution to the error at this link: termux/termux-packages#1946 (comment)
Have a good day!