Skip to content

refactor(shell): replace ANSI escape sequences with tput #540

@kojiromike

Description

@kojiromike

Several shell scripts use hardcoded ANSI escape sequences for colored output:

echo -e "\033[30m===>\033[0m \033[32mChecking the target dir... \033[0m"

These should be replaced with tput for better portability and readability:

echo "$(tput setaf 0)===>$(tput sgr0) $(tput setaf 2)Checking the target dir...$(tput sgr0)"

Files affected:

  • utilities/openemr-env-migrator/openemr-env-migrator
  • utilities/openemr-env-installer/openemr-env-installer
  • utilities/openemr-monitor/monitor-installer

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions