Uploaded image for project: 'Bitbucket Cloud'
  1. Bitbucket Cloud
  2. BCLOUD-13091

Render text using ANSI colour codes

    XMLWordPrintable

Details

    • Our product teams collect and evaluate feedback from a number of different sources. To learn more about how we use customer feedback in the planning process, check out our new feature policy.

    Description

      In the pipelines output, ANSI codes aren't interpreted, so they're rendered as text:

      It would be nice for the ANSI codes to be interpreted and text rendered in colour:

      Here's some of the raw output:

      
      + for crate in $(ls crate); do rust_build/build.sh "crate/${crate}"; done
      \e[1;36m[INFO ] \e[0;36mVerifying source meets code formatting standards\e[0m
      \e[1;36m[INFO ] \e[0;36mRunning: ! TERM=dumb cargo fmt -- --config-path="rust_build" --write-mode=diff | grep -e "^\(+\|-\)\|\(Rustfmt failed\)" -m 1 > /dev/null\e[0m
      error: 
      \e[1;32m[NTICE] \e[0;32mCode format check successful\e[0m
      \e[1;36m[INFO ] \e[0;36mCompiling project\e[0m
      \e[1;36m[INFO ] \e[0;36mRunning: cargo build\e[0m
      (B   Compiling(B rust_runnables v0.1.0 (file:///opt/atlassian/bitbucketci/agent/build/crate/rust_runnables)
      (B   Compiling(B application v0.1.0 (file:///opt/atlassian/bitbucketci/agent/build/crate/application)
      \e[1;32m[NTICE] \e[0;32mCompilation successful\e[0m
      

      Attachments

        1. 1586552306-output_msysgit.png
          1586552306-output_msysgit.png
          16 kB
        2. 2542355621-Capture.JPG
          2542355621-Capture.JPG
          133 kB
        3. 3765201436-Capture.JPG
          3765201436-Capture.JPG
          159 kB
        4. 930838589-output_pipeline.png
          930838589-output_pipeline.png
          14 kB
        5. output_msysgit.png
          output_msysgit.png
          16 kB
        6. output_pipeline.png
          output_pipeline.png
          14 kB

        Activity

          People

            Unassigned Unassigned
            db138bbbcd2d azriel
            Votes:
            10 Vote for this issue
            Watchers:
            6 Start watching this issue

            Dates

              Created:
              Updated: