New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Content disappears after resizing to smaller size #1164

Closed
delold opened this Issue Jun 14, 2017 · 9 comments

Comments

Projects
None yet
4 participants
@delold

delold commented Jun 14, 2017

Versions

ConEmu build: 170605 alpha x64
OS version: Windows 10 1703 x64 (build 15063.413)
Used shell version (Far Manager, git-bash, cmd, powershell, cygwin, whatever): cmd

Problem description

When resizing the terminal window to a size smaller than the width of the output, the output disappears entirely. Seems like an issue with ConEmu, as cmd is working fine.

Steps to reproduce

  1. Type a command with huge output (eg tree)
  2. Resize the window to a smaller size
  3. The output disappears

Actual results

Expected results

Additional info

In case it helps, here is my settings of the cmd window. If I recall correctly, I've installed in the past the WSLBridge, before upgrading to Creators Update.

image

@Maximus5

This comment has been minimized.

Show comment
Hide comment
@Maximus5

Maximus5 Jun 14, 2017

Owner

This looks like a conhost bug. I've seen that several times, but without 100% repro.
You may try to turn "legacy console mode" on.

/cc @miniksa

Owner

Maximus5 commented Jun 14, 2017

This looks like a conhost bug. I've seen that several times, but without 100% repro.
You may try to turn "legacy console mode" on.

/cc @miniksa

@delold

This comment has been minimized.

Show comment
Hide comment
@delold

delold Jun 14, 2017

Tried it with legacy console mode on, the text doesn't disappear this time, but it's cropped after resizing the window back. cmd still works fine (without wrapping though).

ezgif-1-60ae244819

delold commented Jun 14, 2017

Tried it with legacy console mode on, the text doesn't disappear this time, but it's cropped after resizing the window back. cmd still works fine (without wrapping though).

ezgif-1-60ae244819

@Maximus5

This comment has been minimized.

Show comment
Hide comment
@Maximus5

Maximus5 Jun 14, 2017

Owner

Yep, that's expected...
I consider this as external issue. Regardless the fact you can't reproduce it in bare conhost, because different API are used. ConEmu is allowed to change console buffer size programmatically only.

Owner

Maximus5 commented Jun 14, 2017

Yep, that's expected...
I consider this as external issue. Regardless the fact you can't reproduce it in bare conhost, because different API are used. ConEmu is allowed to change console buffer size programmatically only.

@miniksa

This comment has been minimized.

Show comment
Hide comment
@miniksa

miniksa Jun 14, 2017

I've filed MSFT:12339782 to take a look at this when I get a chance to see if there is anything I can do.

miniksa commented Jun 14, 2017

I've filed MSFT:12339782 to take a look at this when I get a chance to see if there is anything I can do.

@Maximus5

This comment has been minimized.

Show comment
Hide comment
@Maximus5

Maximus5 Jun 15, 2017

Owner

@miniksa Just reproduced. And I realized that contents did not disappear. In fact, text foreground color was set to the same value as background.
So, if you try to select text in ConEmu you'll see hidden contents. RealConsole looks like empty one, even after text selection, but Ctrl+C do copy hidden text too.

Owner

Maximus5 commented Jun 15, 2017

@miniksa Just reproduced. And I realized that contents did not disappear. In fact, text foreground color was set to the same value as background.
So, if you try to select text in ConEmu you'll see hidden contents. RealConsole looks like empty one, even after text selection, but Ctrl+C do copy hidden text too.

@miniksa

This comment has been minimized.

Show comment
Hide comment
@miniksa

miniksa Jun 20, 2017

Did a little bit of digging around. There was an issue MSFT: 11561936 where resizing the console window smaller while in traditional mode (word wrap/resize is set to OFF) would lose some of the color attributes. I fixed that one a few weeks ago and it is on its way out to Insiders.

miniksa commented Jun 20, 2017

Did a little bit of digging around. There was an issue MSFT: 11561936 where resizing the console window smaller while in traditional mode (word wrap/resize is set to OFF) would lose some of the color attributes. I fixed that one a few weeks ago and it is on its way out to Insiders.

@delold

This comment has been minimized.

Show comment
Hide comment
@delold

delold Jul 10, 2017

Seems to be fixed in Insider build 16237, closing

ezgif-2-99b4166093

delold commented Jul 10, 2017

Seems to be fixed in Insider build 16237, closing

ezgif-2-99b4166093

@delold delold closed this Jul 10, 2017

Maximus5 added a commit that referenced this issue Aug 19, 2017

@asolopovas

This comment has been minimized.

Show comment
Hide comment
@asolopovas

asolopovas Oct 9, 2017

Same problem for me on Windows 10 x64 even in preview versions.
problem

asolopovas commented Oct 9, 2017

Same problem for me on Windows 10 x64 even in preview versions.
problem

@Maximus5

This comment has been minimized.

Show comment
Hide comment
@Maximus5
Owner

Maximus5 commented Oct 9, 2017

Maximus5 added a commit that referenced this issue Oct 20, 2017

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment