[PR #13475] [MERGED] Add line breaks in the debug tap output #29567

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

📋 Pull Request Information

Original PR: https://github.com/microsoft/terminal/pull/13475
Author: @j4james
Created: 7/10/2022
Status: Merged
Merged: 7/11/2022
Merged by: @undefined

Base: mainHead: debugtap-linebreaks


📝 Commits (1)

  • 0b96328 Add line breaks in the debug tap output.

📊 Changes

1 file changed (+9 additions, -1 deletions)

View changed files

📝 src/cascadia/TerminalApp/DebugTapConnection.cpp (+9 -1)

📄 Description

Summary of the Pull Request

When the debug tap converts control characters into visible glyphs, it
ends up losing the structure of the output, and that can sometimes make
things difficult to read. This PR attempts to alleviate that problem by
reinjecting an actual line break in the debug stream whenever an LF
control is received.

PR Checklist

Validation Steps Performed

I've tested the updated debug tab with a number of different shells, and
also a couple of different apps. When there aren't many linefeeds in the
output, it's obviously not going to make much of a difference, but when
there are, I think it definitely improves the readability.


🔄 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/13475 **Author:** [@j4james](https://github.com/j4james) **Created:** 7/10/2022 **Status:** ✅ Merged **Merged:** 7/11/2022 **Merged by:** [@undefined](undefined) **Base:** `main` ← **Head:** `debugtap-linebreaks` --- ### 📝 Commits (1) - [`0b96328`](https://github.com/microsoft/terminal/commit/0b9632888739e765b439b647e83126244d34e6b0) Add line breaks in the debug tap output. ### 📊 Changes **1 file changed** (+9 additions, -1 deletions) <details> <summary>View changed files</summary> 📝 `src/cascadia/TerminalApp/DebugTapConnection.cpp` (+9 -1) </details> ### 📄 Description ## Summary of the Pull Request When the debug tap converts control characters into visible glyphs, it ends up losing the structure of the output, and that can sometimes make things difficult to read. This PR attempts to alleviate that problem by reinjecting an actual line break in the debug stream whenever an `LF` control is received. ## PR Checklist * [x] Closes #12312 * [x] CLA signed. * [ ] Tests added/passed * [ ] Documentation updated. * [ ] Schema updated. * [x] I've discussed this with core contributors already. Issue number where discussion took place: #12312 ## Validation Steps Performed I've tested the updated debug tab with a number of different shells, and also a couple of different apps. When there aren't many linefeeds in the output, it's obviously not going to make much of a difference, but when there are, I think it definitely improves the readability. --- <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:35:40 +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#29567