Skip to content

Perhaps a note in README.rdoc about raw mode and newlines with gets? #1

Open
seanohalpin opened this Issue Oct 1, 2011 · 0 comments

1 participant

@seanohalpin

Hi,

It might be helpful to point out that

hidden = STDIN.raw(&:gets)

will not return until you enter a newline (\n), e.g. by pressing Ctrl-J, and that Return and Enter usually generate \r not \n in raw mode (at least on *nix - I can't remember what Windows does). Might save some head scratching.

Regards,
Sean

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Something went wrong with that request. Please try again.