Skip to content

Instantly share code, notes, and snippets.

@Licenser
Created November 18, 2009 17:04
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save Licenser/edf803e0aa07ef2161eb to your computer and use it in GitHub Desktop.
Save Licenser/edf803e0aa07ef2161eb to your computer and use it in GitHub Desktop.
(defn shell-readln
[]
(loop [s ""]
(if (.ready *jsch-in-reader*)
(let [c (.read *jsch-in-reader*)]
(if (= \newline c)
s
(recur (str s c))))
s)))
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment