When STDIN is tty, read only one line. If not, read all the lines.

Not all the replacements are needed now (just input_text= ones), but they do make getting text form STDIN consistent. This is for the piping new lines issue.

I don't use Github much (don't use it where I work) - so sorry if I am not using this correctly.