I just plug in a USB keyboard - my phone's a tiny PC now. Good enough for writing code on it on the go. Apt-get  Git and Emacs (with billion packages) work flawlessly (even ASCII roguelikes). In Emacs  I can also use touch commands when I feel like it - clicking  scrolling  pinch zooming. Using real PC apps makes even legit Play-Store apps feel like toys. Termux's user interface looks like it's well thought out for multiple use scenarios and is really useful. There are other terminal apps  but this is the one that gave me the least problems and that just works.
October 11 2016