[PR #9605] [MERGED] WriteCharsLegacy: Add some notes in comments and rename WC_ECHO #27652

Open
opened 2026-01-31 09:23:17 +00:00 by claunia · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/microsoft/terminal/pull/9605
Author: @DHowett
Created: 3/24/2021
Status: Merged
Merged: 3/24/2021
Merged by: @DHowett

Base: mainHead: dev/duhowett/wcl-comments


📝 Commits (3)

  • fc4f35a Add some notes to WriteCharsLegacy (comments only)
  • bc5b0ec WCL: Rename WC_ECHO to what it actually does: Printable Controls
  • 9e0672c OKAY MICHAEL

📊 Changes

8 files changed (+57 additions, -37 deletions)

View changed files

📝 src/host/CommandNumberPopup.cpp (+2 -2)
📝 src/host/_stream.cpp (+29 -9)
📝 src/host/_stream.h (+3 -3)
📝 src/host/cmdline.cpp (+12 -12)
📝 src/host/cmdline.h (+1 -1)
📝 src/host/misc.cpp (+4 -4)
📝 src/host/misc.h (+1 -1)
📝 src/host/readDataCooked.cpp (+5 -5)

📄 Description

This commit clarifies some things inside WriteCharsLegacy by adding
comments and renaming parameter and enum names. It does not change any
logic.

WC_ECHO was used extensively to mean only one thing: whether to print
a control character like \x18 (Ctrl+X) as ^X. It's been
renamed to make that abundantly clear.


🔄 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/microsoft/terminal/pull/9605 **Author:** [@DHowett](https://github.com/DHowett) **Created:** 3/24/2021 **Status:** ✅ Merged **Merged:** 3/24/2021 **Merged by:** [@DHowett](https://github.com/DHowett) **Base:** `main` ← **Head:** `dev/duhowett/wcl-comments` --- ### 📝 Commits (3) - [`fc4f35a`](https://github.com/microsoft/terminal/commit/fc4f35a8ab8dc15ec92b417ae856075fdc8aa081) Add some notes to WriteCharsLegacy (comments only) - [`bc5b0ec`](https://github.com/microsoft/terminal/commit/bc5b0ecc98453fbdd32d7ed41b1611b09e167748) WCL: Rename WC_ECHO to what it actually does: Printable Controls - [`9e0672c`](https://github.com/microsoft/terminal/commit/9e0672c2ab31d6164c7cb645dc07c284148e41be) OKAY MICHAEL ### 📊 Changes **8 files changed** (+57 additions, -37 deletions) <details> <summary>View changed files</summary> 📝 `src/host/CommandNumberPopup.cpp` (+2 -2) 📝 `src/host/_stream.cpp` (+29 -9) 📝 `src/host/_stream.h` (+3 -3) 📝 `src/host/cmdline.cpp` (+12 -12) 📝 `src/host/cmdline.h` (+1 -1) 📝 `src/host/misc.cpp` (+4 -4) 📝 `src/host/misc.h` (+1 -1) 📝 `src/host/readDataCooked.cpp` (+5 -5) </details> ### 📄 Description This commit clarifies some things inside WriteCharsLegacy by adding comments and renaming parameter and enum names. It does not change any logic. `WC_ECHO` was used extensively to mean only one thing: whether to print a control character like `\x18` (<kbd>Ctrl+X</kbd>) as `^X`. It's been renamed to make that abundantly clear. --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
claunia added the pull-request label 2026-01-31 09:23:17 +00:00
Sign in to join this conversation.
No Label pull-request
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: starred/terminal#27652