microsoft / microsoft/terminal

Add an option to disable reflow on window resize

Open
#14,291 0 comments 5 reactions 0 assignees View on GitHub
Area-Output Issue-Feature Product-Conpty
Dominant language
C++
Stars
105k
Forks
9.6k
Avg merge
3d 17h
Merged PRs (30d)
29

Description

# Description of the new feature/enhancement

There is an issue with zsh and powerlevel10k with some configuration. When you use ruler or/and right segment in powerlevel10k and you resize the window, the content is reflowed and a mess happen in the terminal [as described in the powerlevel10k README](https://github.com/romkatv/powerlevel10k#horrific-mess-when-resizing-terminal-window).

![Before resizing](https://user-images.githubusercontent.com/4648342/197822300-8904b905-e5d5-4dd6-835c-4a211a488218.png)

![After resizing](https://user-images.githubusercontent.com/4648342/197822322-68b17a92-bfef-4907-adcf-17cf5ac62956.png)

# Proposed technical implementation details (optional)

An option that allow the user to choose between reflowing or truncating (the buffer or on display) the terminal content will solve this problem.

Contributor guide

Open the contributing guide

Research direction

Start by reproducing the resize behavior with zsh and powerlevel10k, using the linked powerlevel10k README for context. Trace the terminal's resize and reflow handling, then determine how an option could select reflowing or truncation; done means the selected behavior is preserved when the window is resized.

Written by the indexing model from the issue text.

Assessment

Tech stack
cpp, zsh
Domain
cli
Issue type
Feature
Difficulty
5/5
Estimated time
Over a week
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.