Skip to content

Commit 527fb43

Browse files
committed
Merge pull request #134 from rkeithhill/rkeithhill/is129_increase_dbgcon_width
Fix for issue 129 - increase default dbg console to 120
2 parents 03b31d1 + 506d713 commit 527fb43

File tree

1 file changed

+6
-3
lines changed

1 file changed

+6
-3
lines changed

src/PowerShellEditorServices/Session/SessionPSHostRawUserInterface.cs

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff 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>

0 commit comments

Comments
 (0)