errant escape codes sent to stdout

Bill Janssen janssen at parc.com
Wed Jun 8 16:19:09 UTC 2016


John Lenton <john.lenton at canonical.com> wrote:

> 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.

Thanks for the info, and the suggestion, John, but I do many other
things with the Emacs shell, besides snapcraft.  I can't switch to Emacs
term just to fix this bit of clumsiness.

I'll see if I can file a bug report, though.

Bill

> 
> On 8 June 2016 at 03:03, Leo Arias <leo.arias at canonical.com> 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
> > Snapcraft at lists.ubuntu.com
> > Modify settings or unsubscribe at: https://lists.ubuntu.com/mailman/listinfo/snapcraft
> >
> 
> -- 
> Snapcraft mailing list
> Snapcraft at lists.ubuntu.com
> Modify settings or unsubscribe at: https://lists.ubuntu.com/mailman/listinfo/snapcraft




More information about the Snapcraft mailing list