File tree Expand file tree Collapse file tree 1 file changed +6
-3
lines changed
src/PowerShellEditorServices/Session Expand file tree Collapse file tree 1 file changed +6
-3
lines changed Original file line number Diff line number Diff line change @@ -19,7 +19,10 @@ internal class ConsoleServicePSHostRawUserInterface : PSHostRawUserInterface
1919 {
2020 #region Private Fields
2121
22- private Size currentBufferSize = new Size ( 80 , 100 ) ;
22+ private const int DefaultConsoleHeight = 100 ;
23+ private const int DefaultConsoleWidth = 120 ;
24+
25+ private Size currentBufferSize = new Size ( DefaultConsoleWidth , DefaultConsoleHeight ) ;
2326
2427 #endregion
2528
@@ -140,15 +143,15 @@ public override bool KeyAvailable
140143 /// </summary>
141144 public override Size MaxPhysicalWindowSize
142145 {
143- get { return new Size ( 80 , 20 ) ; }
146+ get { return new Size ( DefaultConsoleWidth , DefaultConsoleHeight ) ; }
144147 }
145148
146149 /// <summary>
147150 /// Gets the maximum size of the console window.
148151 /// </summary>
149152 public override Size MaxWindowSize
150153 {
151- get { return new Size ( 80 , 20 ) ; }
154+ get { return new Size ( DefaultConsoleWidth , DefaultConsoleHeight ) ; }
152155 }
153156
154157 /// <summary>
You can’t perform that action at this time.
0 commit comments