Jump to content

[Armbian build PR] - Make the colorized build output readable on a light background


Recommended Posts

Posted

Description

This fixes the readability of colorized output of compile.sh when running on a terminal with a light background. It uses the COLORFGBG environment variable similarly to how the ip(8) command does.

Before:

Screenshot_20240204_171426

After:

Screenshot_20240204_171501

How Has This Been Tested?

Compile command: ./compile.sh BOARD=nanopim1 RELEASE=bookworm KERNEL_CONFIGURE=no BUILD_MINIMAL=yes PREFER_DOCKER=no BRANCH=edge BUILD_ONLY=u-boot

  • [X] Run in Konsole on a light background (COLORFGBG=0;15)
  • [X] Run in Konsole on a light background (COLORFGBG unset)
  • [X] Run in Konsole on a dark background (COLORFGBG=15;0)
  • [X] Run in Konsole on a dark background (COLORFGBG unset)
  • [X] Visually inspect the results

Checklist:

  • [X] My code follows the style guidelines of this project
  • [X] I have performed a self-review of my own code
  • [ ] I have commented my code, particularly in hard-to-understand areas N/A
  • [ ] I have made corresponding changes to the documentation N/A
  • [X] My changes generate no new warnings
  • [ ] Any dependent changes have been merged and published in downstream modules N/A

View the full article

×
×
  • Create New...

Important Information

Terms of Use - Privacy Policy - Guidelines