Progress bar in console app to show download progress
Wanting to create a very simple console application (.NET 7) which downloads a few files and installs them on the user's machine (less "install" and moreso "place a self-contained executable in a directory they choose").
What're my options to create a progress bar for the download process?
9 Replies
depends on your framework, iirc WPF has a built in
<ProgressBar/>
control
as for how to wire it up, look into the IProgress<T>
interfaceconsole app
oh, that's what i get for not reading 🙂
seems like something spectreconsole would offer?
never messed with it, i really need to check it out
$spectre
Spectre.Console is a .NET library that allows for easy creation of console UIs, text formatting in the console, and command-line argument parsing.
https://spectreconsole.net/
Spectre.Console - Welcome!
Spectre.Console is a .NET Standard 2.0 library that makes it easier to create beautiful console applications.
Unknown User•3y ago
Message Not Public
Sign In & Join Server To View
I'm honestly not super sure how to even do this with downloading a file...
Not to mention that another file I'm downloading is a zip of fonts, which I'll have to unzip and install, all preferably in memory
So uh, probably just not possible
Unknown User•3y ago
Message Not Public
Sign In & Join Server To View
can i force a specific "terminal" to open when a user opens my console app? asking because i wanna do something in spectre, and obviously not everything works in cmd that does in the modern terminal