FWIW, "tput colors" might be what you want to do to check (unless you want to talk to terminfo from python itself). In gnome-terminal: $ tput colors 256 linux console: $ tput colors 8 emacs shell: $ tput colors -1 emacs term: $ tput colors 8
Bill, as a workaround instead of M-x shell, do M-x term. On 8 June 2016 at 03:03, Leo Arias <[email protected]> wrote: > Hello! > > On 2016-06-07 19:46, Bill Janssen wrote: >> When I run "snapcraft init" in an Emacs shell, I get this: >> >> ~$ snapcraft init >> [0;32mCreated snapcraft.yaml. [0m >> ~$ >> >> TERM is "dumb". >> >> Seems sub-optimal and hard to read. Some way to turn this off? >> >> Interestingly, "snapcraft --help" doesn't do this. > > Those are the colors we display on step messages. We should remove the > fancy stuff if the terminal doesn't support it. > Can you please report a bug in https://bugs.launchpad.net/snapcraft ? > > Thank you! > > > > -- > Snapcraft mailing list > [email protected] > Modify settings or unsubscribe at: > https://lists.ubuntu.com/mailman/listinfo/snapcraft > -- Snapcraft mailing list [email protected] Modify settings or unsubscribe at: https://lists.ubuntu.com/mailman/listinfo/snapcraft
