Skip to content

Real-time output from SteamCMD with Pseudo Console (ConPTY)

License

Notifications You must be signed in to change notification settings

WindowsGSM/SteamCMD.ConPTY

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

52 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

SteamCMD.ConPTY

Real-time output from SteamCMD with Pseudo Console (ConPTY)

Install the package

Find the package through NuGet Package Manager or install it with following command.

dotnet add package SteamCMD.ConPTY

SteamCMD.ConPTY

A library using ConPTY feature to get real-time output from SteamCMD.

using SteamCMD.ConPTY;
using SteamCMD.ConPTY.Interop.Definitions;

var steamCMDConPTY = new SteamCMDConPTY
{
    Arguments = "+login anonymous +app_update 232250 +quit",
};

steamCMDConPTY.TitleReceived += (sender, data) => { };

steamCMDConPTY.OutputDataReceived += (sender, data) => { };

steamCMDConPTY.Exited += (sender, exitCode) => { };

ProcessInfo processInfo = steamCMDConPTY.Start();

// Get SteamCMD PID by ProcessInfo
Console.WriteLine(processInfo.dwProcessId);

SteamCMD.WPF

A demo WPF application using the SteamCMD.ConPTY library. Requires .NET Core 3.1.

Download: https://github.com/WindowsGSM/SteamCMD.ConPTY/releases/latest

SteamCMD ConPTY Demo