[*] BUG: OnPipePartialEvent wasn't sent during IOPipeProcessor ticks (common/all platforms)

[*] Build regression: Win32 clipboard-mode-switcher routines weren't ifdef'd out on non-nt pltforms
This commit is contained in:
Reece Wilson 2022-08-09 01:55:18 +01:00
parent 13480a0473
commit 03f072f8d6
2 changed files with 11 additions and 0 deletions

View File

@ -335,22 +335,26 @@ namespace Aurora::Console::ConsoleTTY
void EnterScrollMode()
{
#if defined(AURORA_IS_MODERNNT_DERIVED)
DWORD mode;
HANDLE stream = GetStdHandle(STD_INPUT_HANDLE);
GetConsoleMode(stream, &mode);
mode &= ~(ENABLE_QUICK_EDIT_MODE);
SetConsoleMode(stream, mode);
AuStaticCast<TTYConsole>(GetTTYConsole())->uxModeFlipped = true;
#endif
}
void LeaveScrollMode()
{
#if defined(AURORA_IS_MODERNNT_DERIVED)
DWORD mode;
HANDLE stream = GetStdHandle(STD_INPUT_HANDLE);
GetConsoleMode(stream, &mode);
mode |= ENABLE_QUICK_EDIT_MODE;
SetConsoleMode(stream, mode);
AuStaticCast<TTYConsole>(GetTTYConsole())->uxModeFlipped = true; // TODO?
#endif
}
void TTYConsole::NoncanonicalOnEnter()
@ -1956,6 +1960,7 @@ namespace Aurora::Console::ConsoleTTY
}
#else
void Init()
{

View File

@ -485,6 +485,12 @@ namespace Aurora::IO
}
this->bytesWritten_ += bytesProcessedTotal;
if (this->request.listener)
{
this->request.listener->OnPipePartialEvent(bytesProcessedTotal);
}
return bytesProcessedTotal;
}