~linaro-pm-wg/linaro-powerdebug/master

Viewing all changes in revision 227.

  • Committer: Lisa Nguyen
  • Author(s): Thara Gopinath
  • Date: 2017-09-19 19:56:31 UTC
  • Revision ID: git-v1:569054ea21aee41d84e9b864c0c381ab9b988541
Check if terminal supports changing color definitions.

This patch adds the check whether the terminal supports colors
and allows changing color definitions before actually attempting to
redifine the color definitions. Without this check, attempting to
change color definitions in a color not supported terminal
causes a hang.

Signed-off-by: Thara Gopinath <thara.gopinath@linaro.org>

expand all expand all

Show diffs side-by-side

added added

removed removed

Lines of Context: