aboutsummaryrefslogtreecommitdiff
path: root/.gitmodules
diff options
context:
space:
mode:
authorBen Liblit <liblit@cs.wisc.edu>2017-04-01 07:23:27 +0300
committerBen Liblit <liblit@cs.wisc.edu>2017-04-01 07:23:27 +0300
commit9444e4c0c6d1d9949ec59710dbf1a0dc561b6670 (patch)
treeccd803fd94adc9a352a9c8b873abc22c165e7353 /.gitmodules
parentfa21d8fbc99c4a88334f877c686407dd27ac09a3 (diff)
Gracefully handle `echotc Co` failure
In Emacs, `M-x shell` creates a shell buffer with very rudimentary terminal capabilities. `$TERM` is set to `dumb`, and `echotc Co` fails after printing `echotc: no such capability: Co` to standard error. If our goal was to determine whether the terminal supports 256 colors, we really have no information to go on. I recommend that we trust the user and hope for the best. That means we should (1) discard any `echotc Co` error output, and (2) forego the warning message about having fewer than 256 colors if `echotc Co` failed.
Diffstat (limited to '.gitmodules')
0 files changed, 0 insertions, 0 deletions