Exiting from Full Screen mode incorrectly restores window size #522

Open
opened 2026-01-30 21:54:16 +00:00 by claunia · 6 comments
Owner

Originally created by @alabuzhev on GitHub (Jan 17, 2019).

Version 10.0.17763.253

Start cmd.exe
Enter command mode 80, 25
Go to window menu - Properties - Layout
Check that Window Size is 80 x 25 indeed
Close Properties
Press Alt+Enter twice to enter and exit full screen
Go to window menu - Properties - Layout
Check Window Size again. This time it's not 80 x 25, but 78 x 24.

This happens because exiting full screen restores the original outer window size (with the title, borders etc., say, 802 x 532px), however:

  • Entering full screen increases the buffer size (which is fine)
  • Exiting full screen doesn't change the buffer size (which is also fine)
  • The console window now has to display scrollbars (also fine), but since it's outer size is the same it has to display them at the expense of console viewport area.

This causes an issue in an app that automatically syncs buffer size with window size - after every switch to full screen and back window size gets smaller, the app reduces the buffer size accordingly, eventually going down to nothing.
Also, even if an app doesn't do anything like that, reducing the viewport size can make some (potentially important) information invisible.

Please consider preserving the console viewport size and increasing the outer window size to make room for scrollbars.

Originally created by @alabuzhev on GitHub (Jan 17, 2019). Version 10.0.17763.253 Start cmd.exe Enter command `mode 80, 25` Go to window menu - Properties - Layout Check that Window Size is 80 x 25 indeed Close Properties Press Alt+Enter twice to enter and exit full screen Go to window menu - Properties - Layout Check Window Size again. This time it's not 80 x 25, but 78 x 24. This happens because exiting full screen restores the original **outer** window size (with the title, borders etc., say, 802 x 532px), however: - Entering full screen increases the buffer size (which is fine) - Exiting full screen doesn't change the buffer size (which is also fine) - The console window now has to display scrollbars (also fine), but since it's outer size is the same it has to display them at the expense of console viewport area. This causes an issue in an app that automatically syncs buffer size with window size - after every switch to full screen and back window size gets smaller, the app reduces the buffer size accordingly, eventually going down to nothing. Also, even if an app doesn't do anything like that, reducing the viewport size can make some (potentially important) information invisible. Please consider preserving the console viewport size and increasing the outer window size to make room for scrollbars.
Author
Owner

@boomsya commented on GitHub (Jan 18, 2019):

the same bug in Far 3 when exit from full screen mode
win 10 x64 1709.16299.309

@boomsya commented on GitHub (Jan 18, 2019): the same bug in Far 3 when exit from full screen mode win 10 x64 1709.16299.309
Author
Owner

@Riju-bak commented on GitHub (Jun 16, 2023):

Is anyone working on this? If not, can I try to fix it?

@Riju-bak commented on GitHub (Jun 16, 2023): Is anyone working on this? If not, can I try to fix it?
Author
Owner

@m3dbedb commented on GitHub (Sep 21, 2023):

How to exit full screen in FAR?

@m3dbedb commented on GitHub (Sep 21, 2023): How to exit full screen in FAR?
Author
Owner

@boomsya commented on GitHub (Sep 21, 2023):

alt+enter

@boomsya commented on GitHub (Sep 21, 2023): alt+enter
Author
Owner

@raman118 commented on GitHub (Aug 17, 2025):

Hi, I'm a new contributor and would like to work on this issue. Please let me know if it's okay to proceed.

@raman118 commented on GitHub (Aug 17, 2025): Hi, I'm a new contributor and would like to work on this issue. Please let me know if it's okay to proceed.
Author
Owner

@shivam-dhir commented on GitHub (Jan 22, 2026):

Hi, I would love to work on this issue

@shivam-dhir commented on GitHub (Jan 22, 2026): Hi, I would love to work on this issue
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: starred/terminal#522