jline/jline2 — pull request #47 by trptcolin (2012-06-17 16:26:23+00:00)
Title: Handle TERM=dumb as an UnsupportedTerminal

When TERM=dumb, printing ANSI codes isn't well-handled by the underlying terminal, so sometimes they get printed out directly. Things generally don't work as expected with the `UnixTerminal` (presumably `WindowsTerminal` as well?) when that's the case.

While jline client code can fix this by setting the `jline.terminal` system property, it would be nice if this was built in to work automatically, since all clients will need an UnsupportedTerminal in that case. Note: I *think* that's the case for all clients on a dumb terminal - am I missing anything?

An example case where `$TERM` is `"dumb"` is in Emacs' `M-x shell` mode.