Whenever I try to use the curses module for my robot(raspberry pi 3), I keep getting the error "setupterm: could not find terminal". What can I do to solve this? Please bear in mind I am new to Python and self taught.
import curses
def initialise():
screen = curses.initscr()
curses.noecho()
curses.cbreak
screen.keypad(True)
def loop():
while True:
char = screen.getch()
if char == ord('q'):
break
elif char == curses.KEY_UP:
print("up")
if __name__ == '__main__':
while True:
initialise()
loop()
`