command "mode CON: cols=c lines=n" dosn't work properly #14965

Closed
opened 2026-01-31 04:24:32 +00:00 by claunia · 4 comments
Owner

Originally created by @ImmortalTerror on GitHub (Aug 25, 2021).

Windows Terminal version (or Windows build number)

Microsoft Windows [Version 10.0.18362.1256]

Other Software

No response

Steps to reproduce

Open Windows Terminal and try resizing the window with mode CON: cols=c lines=n .

Expected Behavior

It should resize to the size you entered like it would in regular command prompt.
example:
Command prompt after running mode CON: cols=50 lines=50
cmd_ystiP641rC

Actual Behavior

Windows Terminal does not resize but any text inside acts if it did.
example:
Windows terminal after running mode CON: cols=50 lines=50
WindowsTerminal_jMur1DJyOw

And when there is text in the window after it has been resized
WindowsTerminal_zmvrBtOcDq

Originally created by @ImmortalTerror on GitHub (Aug 25, 2021). ### Windows Terminal version (or Windows build number) Microsoft Windows [Version 10.0.18362.1256] ### Other Software _No response_ ### Steps to reproduce Open Windows Terminal and try resizing the window with `mode CON: cols=c lines=n` . ### Expected Behavior It should resize to the size you entered like it would in regular command prompt. example: Command prompt after running `mode CON: cols=50 lines=50` ![cmd_ystiP641rC](https://user-images.githubusercontent.com/81569750/130713563-73731d56-9a8b-4f61-9134-a506f72645c6.png) ### Actual Behavior Windows Terminal does not resize but any text inside acts if it did. example: Windows terminal after running `mode CON: cols=50 lines=50` ![WindowsTerminal_jMur1DJyOw](https://user-images.githubusercontent.com/81569750/130713700-63523d1c-813f-472d-995a-764245b19f7a.png) And when there is text in the window after it has been resized ![WindowsTerminal_zmvrBtOcDq](https://user-images.githubusercontent.com/81569750/130713844-c2c4b236-e8ee-45f0-82e6-ce8ce1d17571.png)
claunia added the Resolution-Duplicate label 2026-01-31 04:24:32 +00:00
Author
Owner

@j4james commented on GitHub (Aug 25, 2021):

I believe this will be covered by issue #5094.

@j4james commented on GitHub (Aug 25, 2021): I believe this will be covered by issue #5094.
Author
Owner

@zadjii-msft commented on GitHub (Aug 26, 2021):

Yea, I think that'll cover it. Thanks!

/dup #5094

@zadjii-msft commented on GitHub (Aug 26, 2021): Yea, I think that'll cover it. Thanks! /dup #5094
Author
Owner

@ghost commented on GitHub (Aug 26, 2021):

Hi! We've identified this issue as a duplicate of another one that already exists on this Issue Tracker. This specific instance is being closed in favor of tracking the concern over on the referenced thread. Thanks for your report!

@ghost commented on GitHub (Aug 26, 2021): Hi! We've identified this issue as a duplicate of another one that already exists on this Issue Tracker. This specific instance is being closed in favor of tracking the concern over on the referenced thread. Thanks for your report!
Author
Owner

@Joachim-Otahal commented on GitHub (Jun 16, 2025):

Just subscribing since I cannot use the new Terminal just because of this.
A simple mode con cols=50 fails... Or a simple
$host.UI.RawUI.BufferSize = @{Width=50;Height=$Host.UI.RawUI.BufferSize.Height}
$host.UI.RawUI.WindowSize = @{Width=50;Height=$Host.UI.RawUI.WindowSize.Height}

@Joachim-Otahal commented on GitHub (Jun 16, 2025): Just subscribing since I cannot use the new Terminal just because of this. A simple mode con cols=50 fails... Or a simple $host.UI.RawUI.BufferSize = @{Width=50;Height=$Host.UI.RawUI.BufferSize.Height} $host.UI.RawUI.WindowSize = @{Width=50;Height=$Host.UI.RawUI.WindowSize.Height}
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: starred/terminal#14965