Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
11 changes: 11 additions & 0 deletions src/agent/Scraper.cc
Original file line number Diff line number Diff line change
Expand Up @@ -271,7 +271,18 @@ void Scraper::resizeImpl(const ConsoleScreenBufferInfo &origInfo)
{
// Resize the buffer to the final desired size.
m_console.setFrozen(false);

// Workaround for the windows console crash if resizing screen so that
// the cursor is hidden on Windows 10.
// ( https://github.com/microsoft/terminal/issues/1976 )
const auto info = m_consoleBuffer->bufferInfo();
m_consoleBuffer->setCursorPosition(Coord(0, 0));

m_consoleBuffer->resizeBufferRange(finalBufferSize);

// Restore cursor position from the above workaround.
m_consoleBuffer->setCursorPosition(Coord(info.cursorPosition().X,
info.cursorPosition().Y));
}

{
Expand Down