Ejemplo n.º 1
0
        public async Task HandleOutputAsync()
        {
            var bufferInfo = _kernel32Api.GetConsoleScreenBufferInfo();

            ClearPreviousBufferIfNecessary(bufferInfo.Size);
            var outputData      = GetOutputData(bufferInfo);
            var isOutputChanged = await _outputPipe.WriteAsync(outputData, true, _processService.CancellationToken);

            await Sleep(isOutputChanged);
        }