code format!
This commit is contained in:
parent
925ede61ff
commit
56d148e9f4
|
@ -380,9 +380,9 @@ void CommandListPopup::_drawList()
|
|||
WriteCoord.X = _region.Left + 1i16;
|
||||
|
||||
LOG_IF_FAILED(api->WriteConsoleOutputCharacterAImpl(_screenInfo,
|
||||
{ CommandNumberPtr, CommandNumberLength },
|
||||
WriteCoord,
|
||||
CommandNumberLength));
|
||||
{ CommandNumberPtr, CommandNumberLength },
|
||||
WriteCoord,
|
||||
CommandNumberLength));
|
||||
|
||||
// write command to screen
|
||||
auto command = _history.GetNth(i);
|
||||
|
@ -418,9 +418,9 @@ void CommandListPopup::_drawList()
|
|||
WriteCoord.X = gsl::narrow<SHORT>(WriteCoord.X + CommandNumberLength);
|
||||
size_t used;
|
||||
LOG_IF_FAILED(api->WriteConsoleOutputCharacterWImpl(_screenInfo,
|
||||
{ command.data(), lStringLength },
|
||||
WriteCoord,
|
||||
used));
|
||||
{ command.data(), lStringLength },
|
||||
WriteCoord,
|
||||
used));
|
||||
|
||||
// write attributes to screen
|
||||
if (i == _currentCommand)
|
||||
|
|
|
@ -189,7 +189,6 @@ void VtApiRoutines::GetConsoleOutputModeImpl(SCREEN_INFORMATION& context,
|
|||
const DWORD controlWakeupMask,
|
||||
DWORD& controlKeyState) noexcept
|
||||
{
|
||||
|
||||
const auto hr = m_pUsualRoutines->ReadConsoleWImpl(context, buffer, written, waiter, initialData, exeName, readHandleState, clientHandle, controlWakeupMask, controlKeyState);
|
||||
// If we're about to tell the caller to wait, let's synchronize the cursor we have with what
|
||||
// the terminal is presenting in case there's a cooked read going on.
|
||||
|
@ -201,7 +200,6 @@ void VtApiRoutines::GetConsoleOutputModeImpl(SCREEN_INFORMATION& context,
|
|||
(void)m_pVtEngine->RequestCursor();
|
||||
}
|
||||
return hr;
|
||||
|
||||
}
|
||||
|
||||
[[nodiscard]] HRESULT VtApiRoutines::WriteConsoleAImpl(IConsoleOutputObject& context,
|
||||
|
@ -485,8 +483,8 @@ void VtApiRoutines::GetLargestConsoleWindowSizeImpl(const SCREEN_INFORMATION& co
|
|||
}
|
||||
|
||||
extern HRESULT _ConvertCellsToWInplace(const UINT codepage,
|
||||
gsl::span<CHAR_INFO> buffer,
|
||||
const Viewport& rectangle) noexcept;
|
||||
gsl::span<CHAR_INFO> buffer,
|
||||
const Viewport& rectangle) noexcept;
|
||||
|
||||
[[nodiscard]] HRESULT VtApiRoutines::WriteConsoleOutputAImpl(SCREEN_INFORMATION& context,
|
||||
gsl::span<CHAR_INFO> buffer,
|
||||
|
|
|
@ -160,7 +160,7 @@ VtIo::VtIo() :
|
|||
case VtIoMode::XTERM_256:
|
||||
{
|
||||
auto xterm256Engine = std::make_unique<Xterm256Engine>(std::move(_hOutput),
|
||||
initialViewport);
|
||||
initialViewport);
|
||||
if (_passthroughMode)
|
||||
{
|
||||
auto vtapi = new VtApiRoutines();
|
||||
|
|
|
@ -170,9 +170,9 @@ void Popup::_DrawPrompt(const UINT id)
|
|||
|
||||
size_t used;
|
||||
LOG_IF_FAILED(ServiceLocator::LocateGlobals().api->WriteConsoleOutputCharacterWImpl(_screenInfo,
|
||||
text,
|
||||
WriteCoord,
|
||||
used));
|
||||
text,
|
||||
WriteCoord,
|
||||
used));
|
||||
}
|
||||
|
||||
// Routine Description:
|
||||
|
|
Loading…
Reference in a new issue