i already have cider working doing something similar, so now i have both common lisp and clojure working like this!
this is cool as heck, seeing that getting either of those working in plain termux is a pain of monumental proportions (especially since clojure just like...pins my cpu when not in a proot for some reason)
(oh, i should mention that emacs isn't in the proot, which is why i was happy with how transparent my scripts are acting)