bobappleyard/readline — pull request #8 by knuesel (2012-10-11 17:39:28+00:00)
Title: Auto resize on SIGWINCH, and cleanup on SIGINT unless CatchSigint=false

Resize is completely automatic while SIGINT is handled automatically by default but that can be disabled with CatchSigint=false. Note that there is a small possibility of a race condition if an application calls String() in one goroutine, if the call happens between the Cleanup() and os.Exit (or normal exit).