322989d017
<!-- Enter a brief description/summary of your PR here. What does it fix/what does it change/how was it tested (even manually, if necessary)? --> ## Summary of the Pull Request - Enables auditing of Virtual Terminal libraries (input, adapter, parser) <!-- Please review the items on the PR checklist before submitting--> ## PR Checklist * [x] Rolls audit out to more things * [x] I work here * [x] Tests should still pass * [x] Am core contributor * [x] Closes #3957 <!-- 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 This is turning on the auditing of these projects (as enabled by the heavier lifting in the other refactor) and then cleaning up the remaining warnings. <!-- Describe how you validated the behavior. Add automated tests wherever possible, but list manual validation steps taken as well --> ## Validation Steps Performed - [x] Built it - [x] Ran the tests
33 lines
1 KiB
C++
33 lines
1 KiB
C++
// Copyright (c) Microsoft Corporation.
|
|
// Licensed under the MIT license.
|
|
|
|
/*
|
|
Module Name:
|
|
- ITerminalOutputConnection.hpp
|
|
|
|
Abstract:
|
|
- Provides an abstraction for writing to the output pipe connected to the TTY.
|
|
In conpty mode, this is implemented by the VtRenderer, such that other
|
|
parts of the codebase (the state machine) can write VT sequences directly
|
|
to the terminal controlling us.
|
|
*/
|
|
|
|
#pragma once
|
|
|
|
namespace Microsoft::Console
|
|
{
|
|
class ITerminalOutputConnection
|
|
{
|
|
public:
|
|
#pragma warning(push)
|
|
#pragma warning(disable : 26432) // suppress rule of 5 violation on interface because tampering with this is fraught with peril
|
|
virtual ~ITerminalOutputConnection() = 0;
|
|
|
|
[[nodiscard]] virtual HRESULT WriteTerminalUtf8(const std::string_view str) = 0;
|
|
[[nodiscard]] virtual HRESULT WriteTerminalW(const std::wstring_view wstr) = 0;
|
|
};
|
|
|
|
inline Microsoft::Console::ITerminalOutputConnection::~ITerminalOutputConnection() {}
|
|
#pragma warning(pop)
|
|
}
|