from curses import * stdscr = initscr() noecho() cbreak() mvaddstr(2, 1, 'Hello, world') refresh() getch() endwin()
Выдает следующее:
/usr/bin/python3.5 /home/vapekreng/PycharmProjects/Test/Main.py
Traceback (most recent call last):
File “/home/vapekreng/PycharmProjects/Test/Main.py”, line 3, in <module>
stdscr = initscr()
File “/usr/lib/python3.5/curses/__init__.py”, line 30, in initscr
fd=_sys.__stdout__.fileno())
_curses.error: setupterm: could not find terminal
Process finished with exit code 1