Use golang.org/x/crypto/ssh/terminal

Other: minor cleanup