microsoft/Terminal

Alternate console buffers of different sizes confuse ConPTY (and therefore Windows Terminal)

Open

#4,389 建立於 2020年1月28日

在 GitHub 查看
 (2 留言) (0 反應) (0 負責人)C++ (3,212 fork)batch import
Area-OutputArea-RenderingHelp WantedIssue-BugPriority-2Product-Conpty

倉庫指標

Star
 (35,764 star)
PR 合併指標
 (平均合併 27天 19小時) (30 天內合併 24 個 PR)

描述

Environment

Microsoft Windows [Version 10.0.18362.535]
Version: 0.8.10261.0

Steps to reproduce

  1. Open a TUI application in Windows Terminal.
  2. Resize the Terminal Window
  3. Close the TUI application

The resulting terminal window acts like it is the original size before resizing, but the resized area remains visible.

For reference, the TUI application I was testing is a command line 2048 game: https://github.com/jwlodek/py_cui_2048 It can be installed with pip for python3:

pip install py_cui_2048
py2048

Expected behavior

When performing the same steps in cmd the terminal is resized back to its original size after resize and TUI application closed. This is also the case for a standalone powershell window.

Actual behavior

The window does seem to internally resize, but the extra space is still drawn. Please see video below for visual example:

TUIResizeBug

貢獻者指南