Taken from here:

$ python -m py_compile script.py
Posted early Monday morning, November 3rd, 2014 Tags:

When sshing into an android phone, using any available editor such as nano will produce an error like:

Error opening terminal: screen.

Running the following exports in the shell will fix the issue (thanks to original solution posted here):

export TERMINFO=/etc/terminfo
export TERM=linux

Add to /etc/profile on the phone to make the settings permanent.

Posted early Saturday morning, May 24th, 2014 Tags:


Older posts has been archived, view the archive or browse by tag to locate further content.