I would highly suggest to the author (or anyone else trying this) to install the Hacker's Keyboard [1]. It gives you a five row keyboard that makes living in a terminal so much easier.
1: https://play.google.com/store/apps/details?id=org.pocketwork...