Swallowed InterruptedException with jline.internal.TerminalLineSettings stty method
Reset history position on user interrupt

When the user presses ctrl-C, the history position should be
reset to the end in order to match the behavior of readline.
Make history-search-backward/forward similar to readline's version.

This more closely matches the behavior you get with bash/readline.
There is currently a small difference: bash will move the cursor to the
end of the line when you haven't typed any characters and invoke
history-search-backward.  Readline will then remember you haven't typed
anything and continue to do the equivalent of previous-history.

This version leaves the cursor at the beginning of the line since it
would require extra state to determine whether or not characters have
been input or the cursor has been moved manually since the last
history-search-backward/forward.

For those that have history-search-backward and history-search-forward
in their ~/.inputrc files, this more closely matches the expected
behavior.
Avoid passing null as the appName to ConsoleKeys.

The code above default this.appName to "JLine", but then appName is
passed directly to ConsoleKeys.  Instead, pass this.appName so that
ConsoleKeys can make use of the default "JLine" application name when
processing a user's ~/.inputrc file.
Merge pull request #118 from jszakmeister/history-search-backward

Make history-search-backward/forward similar to readline's version.
Merge pull request #119 from jszakmeister/pass-correct-appname

Avoid passing null as the appName to ConsoleKeys.
preserve stty settings

 * saves and restores stty settings instead of overwriting them with
   sane
Merge pull request #125 from ryantm/preserve

preserve stty settings
Merge pull request #111 from vietj/swallowed-interruptedException

Swallowed InterruptedException with jline.internal.TerminalLineSettings ...
Merge pull request #112 from electrum/master

Reset history position on user interrupt