-
Notifications
You must be signed in to change notification settings - Fork 8.5k
/
Copy path_stream.h
31 lines (23 loc) · 1.02 KB
/
_stream.h
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
/*++
Copyright (c) Microsoft Corporation
Licensed under the MIT license.
Module Name:
- _stream.h
Abstract:
- Process stream written content into the text buffer
Author:
- KazuM Jun.09.1997
Revision History:
- Remove FE/Non-FE separation in preparation for refactoring. (MiNiksa, 2014)
--*/
#pragma once
#include "writeData.hpp"
void WriteCharsLegacy(SCREEN_INFORMATION& screenInfo, const std::wstring_view& str, til::CoordType* psScrollY);
void WriteCharsVT(SCREEN_INFORMATION& screenInfo, const std::wstring_view& str);
// NOTE: console lock must be held when calling this routine
// String has been translated to unicode at this point.
[[nodiscard]] NTSTATUS DoWriteConsole(_In_reads_bytes_(pcbBuffer) const wchar_t* pwchBuffer,
_Inout_ size_t* const pcbBuffer,
SCREEN_INFORMATION& screenInfo,
bool requiresVtQuirk,
std::unique_ptr<WriteData>& waiter);