[*] 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:
parent
13480a0473
commit
03f072f8d6
@ -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()
|
||||
{
|
||||
|
||||
|
@ -485,6 +485,12 @@ namespace Aurora::IO
|
||||
}
|
||||
|
||||
this->bytesWritten_ += bytesProcessedTotal;
|
||||
|
||||
if (this->request.listener)
|
||||
{
|
||||
this->request.listener->OnPipePartialEvent(bytesProcessedTotal);
|
||||
}
|
||||
|
||||
return bytesProcessedTotal;
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user