Skip to content

Commit 057728d

Browse files
committed
Merge pull request #1110 from stankovski/release-1.0.0-preview2
Fix for cursor in the old MSI
2 parents 31ba638 + 47597f5 commit 057728d

File tree

2 files changed

+9
-0
lines changed

2 files changed

+9
-0
lines changed

setup/Setup/CustomAction.cs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -78,6 +78,7 @@ private static void RunSTAThread(object sessionObject)
7878
powerShellShellLink.SetScreenBufferSize(120, 3000);
7979
powerShellShellLink.SetWindowSize(120, 50);
8080
}
81+
powerShellShellLink.SetFont();
8182
powerShellShellLink.Save();
8283
session.Log("UpdatePSShortcut: success");
8384
}

setup/Setup/ShellLink.cs

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -435,6 +435,14 @@ public void SetWindowSize(short x, short y)
435435
this.consoleProperties.dwWindowSize = c;
436436
}
437437

438+
public void SetFont()
439+
{
440+
this.consoleProperties.FaceName = "Lucida Console";
441+
this.consoleProperties.uFontFamily = 54;
442+
this.consoleProperties.uFontWeight = 400;
443+
this.consoleProperties.uCursorSize = 25;
444+
}
445+
438446
// This does more than console colors
439447
private void SetConsoleProperties()
440448
{

0 commit comments

Comments
 (0)