[PR #1148] [CLOSED] Dev/austdi/new cooked read #24499

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

📋 Pull Request Information

Original PR: https://github.com/microsoft/terminal/pull/1148
Author: @ChristophePichaud
Created: 6/5/2019
Status: Closed

Base: dev/austdi/NewCookedReadHead: dev/austdi/NewCookedRead


📝 Commits (2)

  • ca50f77 CommandHistory becomes a std::shared_ptr. Minor changes.
  • 1fd8ee4 CommandHistory becomes a std::shared_ptr. Minor changes in code and unit tests.

📊 Changes

74 files changed (+1399 additions, -172 deletions)

View changed files

📝 src/buffer/out/lib/bufferout.vcxproj (+30 -0)
📝 src/buffer/out/ut_textbuffer/TextBuffer.Unittests.vcxproj (+30 -0)
📝 src/cascadia/TerminalCore/lib/terminalcore-lib.vcxproj (+29 -8)
📝 src/cascadia/UnitTests_TerminalCore/UnitTests.vcxproj (+30 -0)
📝 src/cascadia/WindowsTerminal/WindowsTerminal.vcxproj (+20 -4)
📝 src/host/CommandListPopup.cpp (+28 -28)
📝 src/host/CommandListPopup.hpp (+2 -2)
📝 src/host/CommandNumberPopup.cpp (+1 -1)
📝 src/host/CopyToCharPopup.cpp (+1 -1)
📝 src/host/cmdline.cpp (+6 -6)
📝 src/host/cookedRead.cpp (+3 -3)
📝 src/host/cookedRead.hpp (+3 -3)
📝 src/host/exe/Host.EXE.vcxproj (+30 -0)
📝 src/host/ft_host/Host.FeatureTests.vcxproj (+30 -0)
📝 src/host/history.cpp (+33 -33)
📝 src/host/history.h (+4 -4)
📝 src/host/lib/hostlib.vcxproj (+28 -0)
📝 src/host/lib/hostlib.vcxproj.filters (+18 -12)
📝 src/host/readDataCooked.cpp (+1 -0)
📝 src/host/stream.cpp (+1 -1)

...and 54 more files

📄 Description

Summary of the Pull Request

CommandHistory becomes a std::shared_ptr. Minor changes in code and unit tests.
Some ctor has been modified.
There is not weak_ptr usage. Every times a shared_ptr is passed, its using the ref counter of the = operator. It prevents unexpected behaviour and hangs.

References

PR Checklist

  • Closes Fix AuditMode for BufferOut project (#1058)
  • CLA signed. If not, go over here and sign the CLA
  • Tests added/passed
    No yet, I need to configure it.
  • Requires documentation to be updated
  • I've discussed this with core contributors already. If not checked, I'm ready to accept this work might be rejected in favor of a different grand plan. Issue number where discussion took place: #1058
    It is under discussion.

Detailed Description of the Pull Request / Additional comments

Previous commit was a mistake, it involves the migration to vs2019 and platform toolset v142. Forget about that.
Just take the H/CPP modifications.

Validation Steps Performed

Manuel test of running tab and ask for cmd and type command, and ask for history...


🔄 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/1148 **Author:** [@ChristophePichaud](https://github.com/ChristophePichaud) **Created:** 6/5/2019 **Status:** ❌ Closed **Base:** `dev/austdi/NewCookedRead` ← **Head:** `dev/austdi/NewCookedRead` --- ### 📝 Commits (2) - [`ca50f77`](https://github.com/microsoft/terminal/commit/ca50f773a0b73d23648603a8117621a059648d37) CommandHistory becomes a std::shared_ptr<CommandHistory>. Minor changes. - [`1fd8ee4`](https://github.com/microsoft/terminal/commit/1fd8ee4cee1325f45ee247596cef56dc01730f6e) CommandHistory becomes a std::shared_ptr<CommandHistory>. Minor changes in code and unit tests. ### 📊 Changes **74 files changed** (+1399 additions, -172 deletions) <details> <summary>View changed files</summary> 📝 `src/buffer/out/lib/bufferout.vcxproj` (+30 -0) 📝 `src/buffer/out/ut_textbuffer/TextBuffer.Unittests.vcxproj` (+30 -0) 📝 `src/cascadia/TerminalCore/lib/terminalcore-lib.vcxproj` (+29 -8) 📝 `src/cascadia/UnitTests_TerminalCore/UnitTests.vcxproj` (+30 -0) 📝 `src/cascadia/WindowsTerminal/WindowsTerminal.vcxproj` (+20 -4) 📝 `src/host/CommandListPopup.cpp` (+28 -28) 📝 `src/host/CommandListPopup.hpp` (+2 -2) 📝 `src/host/CommandNumberPopup.cpp` (+1 -1) 📝 `src/host/CopyToCharPopup.cpp` (+1 -1) 📝 `src/host/cmdline.cpp` (+6 -6) 📝 `src/host/cookedRead.cpp` (+3 -3) 📝 `src/host/cookedRead.hpp` (+3 -3) 📝 `src/host/exe/Host.EXE.vcxproj` (+30 -0) 📝 `src/host/ft_host/Host.FeatureTests.vcxproj` (+30 -0) 📝 `src/host/history.cpp` (+33 -33) 📝 `src/host/history.h` (+4 -4) 📝 `src/host/lib/hostlib.vcxproj` (+28 -0) 📝 `src/host/lib/hostlib.vcxproj.filters` (+18 -12) 📝 `src/host/readDataCooked.cpp` (+1 -0) 📝 `src/host/stream.cpp` (+1 -1) _...and 54 more files_ </details> ### 📄 Description ## Summary of the Pull Request CommandHistory becomes a std::shared_ptr<CommandHistory>. Minor changes in code and unit tests. Some ctor has been modified. There is not weak_ptr usage. Every times a shared_ptr is passed, its using the ref counter of the = operator. It prevents unexpected behaviour and hangs. ## References <!-- Please review the items on the PR checklist before submitting--> ## PR Checklist * [X] Closes #1058 * [X] CLA signed. If not, go over [here](https://cla.opensource.microsoft.com/microsoft/Terminal) and sign the CLA * [ ] Tests added/passed No yet, I need to configure it. * [ ] Requires documentation to be updated * [X] I've discussed this with core contributors already. If not checked, I'm ready to accept this work might be rejected in favor of a different grand plan. Issue number where discussion took place: #1058 It is under discussion. <!-- Provide a more detailed description of the PR, other things fixed or any additional comments/features here --> ## Detailed Description of the Pull Request / Additional comments Previous commit was a mistake, it involves the migration to vs2019 and platform toolset v142. Forget about that. Just take the H/CPP modifications. <!-- Describe how you validated the behavior. Add automated tests wherever possible, but list manual validation steps taken as well --> ## Validation Steps Performed Manuel test of running tab and ask for cmd and type command, and ask for history... --- <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:03:39 +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#24499