Quantcast
Channel: /r/powershell – How to Code .NET
Viewing all articles
Browse latest Browse all 8793

Change the console font programmatically

$
0
0

I’ve developed a console application (think ncurses) using PowerShell. I’d like to provide the ability for the user to change the font type and size.

I’ve found the following module that works nicely for changing the font size: https://gallery.technet.microsoft.com/scriptcenter/cb72e4e6-4a68-4a2e-89b7-cc43a860349e

Please note – I had to remove the line continuation at the end of the module in order for it to import. This article provides a step-by-step detailing how to import the module: https://4sysops.com/archives/change-powershell-console-font-size-with-cmdlet/

Unfortunately the module doesn’t have the ability to change the font type (Eg to Consolas or Lucida Console).

Does anyone know of a technique to change the font type programmatically?

Edit: Previously referenced the wrong technet page – now corrected.

submitted by /u/fitzroy87
[link] [comments]

The post Change the console font programmatically appeared first on How to Code .NET.


Viewing all articles
Browse latest Browse all 8793

Latest Images

Trending Articles



Latest Images