const auto h = std::max(0, sourceViewport.Height()); const auto a = static_cast<size_t>(w * h); if (a == 0) writer.BackupCursor(); if (gci.GetVtIo()->GetDeviceAttributes().test(Microsoft::Console::VirtualTerminal::DeviceAttribute::RectangularAreaOperations)) { return S_OK; /...