Skip to content

Commit 7b8f931

Browse files
committed
Fixed cursor "disappearance" in the shortcut #719
1 parent 2c62aae commit 7b8f931

File tree

2 files changed

+9
-0
lines changed

2 files changed

+9
-0
lines changed

setup-powershellget/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-powershellget/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)