4c47631bf4
* Fix for https://github.com/microsoft/terminal/issues/896 * Fixing spaces * Base Class destructor is virtual, derived class destructor shouldn't be declared vitual or override * Update src/terminal/adapter/termDispatch.hpp nit: remove space Co-Authored-By: Mike Griese <migrie@microsoft.com>
45 lines
1.3 KiB
C++
45 lines
1.3 KiB
C++
/*++
|
|
Copyright (c) Microsoft Corporation
|
|
Licensed under the MIT license.
|
|
|
|
Module Name:
|
|
- adaptDispatch.hpp
|
|
|
|
Abstract:
|
|
- This serves as the Windows Console API-specific implementation of the
|
|
callbacks from our generic Virtual Terminal Input parser.
|
|
|
|
Author(s):
|
|
- Mike Griese (migrie) 11 Oct 2017
|
|
--*/
|
|
#pragma once
|
|
|
|
#include "DispatchTypes.hpp"
|
|
#include "IInteractDispatch.hpp"
|
|
#include "conGetSet.hpp"
|
|
|
|
namespace Microsoft::Console::VirtualTerminal
|
|
{
|
|
class InteractDispatch : public IInteractDispatch
|
|
{
|
|
public:
|
|
|
|
InteractDispatch(ConGetSet* const pConApi);
|
|
|
|
~InteractDispatch() = default;
|
|
|
|
bool WriteInput(_In_ std::deque<std::unique_ptr<IInputEvent>>& inputEvents) override;
|
|
bool WriteCtrlC() override;
|
|
bool WriteString(_In_reads_(cch) const wchar_t* const pws, const size_t cch) override;
|
|
bool WindowManipulation(const DispatchTypes::WindowManipulationType uiFunction,
|
|
_In_reads_(cParams) const unsigned short* const rgusParams,
|
|
const size_t cParams) override; // DTTERM_WindowManipulation
|
|
bool MoveCursor(const unsigned int row,
|
|
const unsigned int col) override;
|
|
private:
|
|
|
|
std::unique_ptr<ConGetSet> _pConApi;
|
|
|
|
};
|
|
}
|