I try to run a game in my terminal on Ubuntu 16.04, a game which was made using c ncurses library. At the time the game was finished, it had ran as I was expected in terminal. Then I've made some changes to a file (maybe .bashrc), such that I could use 256 color palette for my game.
Now, when I try to run the game I'm getting this error message:
Error opening terminal: xterm-256color.
TERM variable is set to
xterm-256color and tput colors output is 256. Is there a more appropriate method for testing if my terminal uses 256 colors with certainty and how can I solve the problem described above?