[PR #2191] [MERGED] Fix: "read -p" does not support color formatting #3479

Open
opened 2025-11-20 06:05:04 -05:00 by saavagebueno · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/community-scripts/ProxmoxVE/pull/2191
Author: @PhoenixEmik
Created: 2/9/2025
Status: Merged
Merged: 2/10/2025
Merged by: @MickLesk

Base: mainHead: main


📝 Commits (2)

  • 26a7f2f Fix: "read -p" does not support color formatting
  • 2a55ed3 Fix: "read -p" does not support color formatting

📊 Changes

1 file changed (+4 additions, -2 deletions)

View changed files

📝 misc/build.func (+4 -2)

📄 Description

✍️ Description

Fix #2190.
Use echo -ne here to print the message with colors and keep the cursor on the same line.



Prerequisites

The following steps must be completed for the pull request to be considered:

  • Self-review performed (I have reviewed my code to ensure it follows established patterns and conventions.)
  • Testing performed (I have thoroughly tested my changes and verified expected functionality.)

🛠️ Type of Change

Please check the relevant options:

  • Bug fix (non-breaking change that resolves an issue)
  • [] New feature (non-breaking change that adds functionality)
  • [] Breaking change (fix or feature that would cause existing functionality to change unexpectedly)
  • [] New script (a fully functional and thoroughly tested script or set of scripts)

📋 Additional Information (optional)

Provide any extra context or screenshots about the feature or fix here.

Test with my test branch:

bash -c "$(wget -qLO - https://github.com/PhoenixEmik/ProxmoxVE/raw/test/ct/forgejo.sh)"

screenshot


🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.

## 📋 Pull Request Information **Original PR:** https://github.com/community-scripts/ProxmoxVE/pull/2191 **Author:** [@PhoenixEmik](https://github.com/PhoenixEmik) **Created:** 2/9/2025 **Status:** ✅ Merged **Merged:** 2/10/2025 **Merged by:** [@MickLesk](https://github.com/MickLesk) **Base:** `main` ← **Head:** `main` --- ### 📝 Commits (2) - [`26a7f2f`](https://github.com/community-scripts/ProxmoxVE/commit/26a7f2f99a980bb5aafa32a2f8789728f356ff51) Fix: "read -p" does not support color formatting - [`2a55ed3`](https://github.com/community-scripts/ProxmoxVE/commit/2a55ed3970618c5251747a072a401fc5bd1f95e8) Fix: "read -p" does not support color formatting ### 📊 Changes **1 file changed** (+4 additions, -2 deletions) <details> <summary>View changed files</summary> 📝 `misc/build.func` (+4 -2) </details> ### 📄 Description ## ✍️ Description Fix #2190. Use `echo -ne` here to print the message with colors and keep the cursor on the same line. - - - - Related Issue: #2190 - - - ## ✅ Prerequisites The following steps must be completed for the pull request to be considered: - [x] Self-review performed (I have reviewed my code to ensure it follows established patterns and conventions.) - [x] Testing performed (I have thoroughly tested my changes and verified expected functionality.) ## 🛠️ Type of Change Please check the relevant options: - [x] Bug fix (non-breaking change that resolves an issue) - [] New feature (non-breaking change that adds functionality) - [] Breaking change (fix or feature that would cause existing functionality to change unexpectedly) - [] New script (a fully functional and thoroughly tested script or set of scripts) --- ## 📋 Additional Information (optional) Provide any extra context or screenshots about the feature or fix here. Test with my test branch: ``` bash -c "$(wget -qLO - https://github.com/PhoenixEmik/ProxmoxVE/raw/test/ct/forgejo.sh)" ``` ![screenshot](https://github.com/user-attachments/assets/cfa476f8-c0c0-4129-9355-5f34aa5b498b) --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
saavagebueno added the pull-request label 2025-11-20 06:05:04 -05:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: SVI/ProxmoxVE#3479