emacs-layout: send input and wait for the next prompt
Rewrite some js to cljs, part 3