$sub -> $DB::sub to make things clearer and more explicit.
Merge commit '277b570' into IntelliSurvey
TTY protocol uses IO::Pty