PromptPlus 6.0.0-rc2
dotnet add package PromptPlus --version 6.0.0-rc2
NuGet\Install-Package PromptPlus -Version 6.0.0-rc2
<PackageReference Include="PromptPlus" Version="6.0.0-rc2" />
<PackageVersion Include="PromptPlus" Version="6.0.0-rc2" />
<PackageReference Include="PromptPlus" />
paket add PromptPlus --version 6.0.0-rc2
#r "nuget: PromptPlus, 6.0.0-rc2"
#:package PromptPlus@6.0.0-rc2
#addin nuget:?package=PromptPlus&version=6.0.0-rc2&prerelease
#tool nuget:?package=PromptPlus&version=6.0.0-rc2&prerelease
PromptPlus
A modern .NET library that delivers polished, interactive console experiences - text input, searchable lists, masked fields, date/time pickers, file browsers, progress bars, charts and more - all through one sleek fluent API.
PromptPlus transforms your console apps with 20+ interactive controls and 6 output-only widgets, configured through a readable fluent API. It supports two-layer configuration (global defaults + per-control overrides), abort-anywhere with IsAborted flag, history persistence, terminal resize detection, and 11 built-in locales.
PromptPlus is built on top of ConsolePlus and shares the same
IConsoledriver for styled output.
Key Features
- 20+ interactive controls - from key-press to multi-column tables and tree browsers
- 6 output-only widgets - sliders, calendars, banners, charts without blocking
- Fluent API - every control configured with readable method chains
- Two-layer config - set defaults with
PromptPlus.Config, override per control with.Options() - Abort anywhere - Esc aborts any control; result carries an
IsAbortedflag - History persistence - last confirmed value saved and pre-loaded automatically
- Terminal-safe - auto-detects size, re-renders on resize, enforces 80x10 minimum
- Localization - 11 built-in locales selected from current culture
- Cross-platform - Windows, Linux, macOS; .NET 8, 9 and 10
Installation
dotnet add package PromptPlus
Or via the Package Manager Console:
Install-Package PromptPlus
Supported frameworks: .NET 8, .NET 9, .NET 10
Quick Start
using PromptPlusLibrary;
// Ask for a name
var nameResult = PromptPlus.Controls.Input("Your name").Run();
if (nameResult.IsAborted) return;
// Choose a color
var colorResult = PromptPlus.Controls
.Select<string>("Favorite color")
.AddItems(["Red", "Green", "Blue"])
.Run();
// Deconstruct result
var (color, aborted) = colorResult;
if (!aborted)
PromptPlus.Console.WriteLine($"Hello {nameResult.Content}, you chose {color}!");
Tip: Every control returns
ResultPrompt<T>. Use.Contentfor the value,.IsAbortedto detect Esc, or deconstruct withvar (value, aborted) = result.
Two-Layer Configuration
// Layer 1 - global defaults applied to all controls
PromptPlus.Config.PageSize = 8;
PromptPlus.Config.HideAfterFinish = true;
// Layer 2 - per-control override always wins
PromptPlus.Controls
.Input("Notes")
.Options(o => o.HideAfterFinish(false).ShowTooltip(false))
.Run();
Controls
Input, Secret, KeyPress, Confirm, Select / MultiSelect, Table / MultiTable, Tree / MultiTree, File / MultiFile, Calendar, Slider, Switch, Time, ProgressBar, Task / MultiTasks, ChartBar and a full family of Mask editors (string, integer, long, decimal, double, currency, date, time, DateOnly, TimeOnly).
Widgets (output-only)
Slider, Calendar, Switch, Banner, Dash separator, ChartBar.
Localization
11 built-in locales: English (default), pt-BR, de-DE, es-ES, fr-FR, it-IT, ja-JP, ko-KR, nl-BE, ru-RU, zh-CN. Custom locales supported via satellite resource files.
Documentation & Samples
The full documentation, control reference, keyboard bindings, styling guide and runnable samples are available in the project repository.
Full README and docs on GitHub
License
MIT (c) PromptPlus contributors
| Product | Versions Compatible and additional computed target framework versions. |
|---|---|
| .NET | net8.0 is compatible. net8.0-android was computed. net8.0-browser was computed. net8.0-ios was computed. net8.0-maccatalyst was computed. net8.0-macos was computed. net8.0-tvos was computed. net8.0-windows was computed. net9.0 is compatible. net9.0-android was computed. net9.0-browser was computed. net9.0-ios was computed. net9.0-maccatalyst was computed. net9.0-macos was computed. net9.0-tvos was computed. net9.0-windows was computed. net10.0 is compatible. net10.0-android was computed. net10.0-browser was computed. net10.0-ios was computed. net10.0-maccatalyst was computed. net10.0-macos was computed. net10.0-tvos was computed. net10.0-windows was computed. |
-
net10.0
- ConsolePlus.net (>= 1.0.0-rc2)
- System.IO.Abstractions (>= 22.2.0)
-
net8.0
- ConsolePlus.net (>= 1.0.0-rc2)
- System.IO.Abstractions (>= 22.2.0)
-
net9.0
- ConsolePlus.net (>= 1.0.0-rc2)
- System.IO.Abstractions (>= 22.2.0)
NuGet packages (1)
Showing the top 1 NuGet packages that depend on PromptPlus:
| Package | Downloads |
|---|---|
|
PromptPlusCommandDotNet
Integration with the Command DotNet package with interactive command-line for toolkit for C# with powerful controls and commands. |
GitHub repositories (1)
Showing the top 1 popular GitHub repositories that depend on PromptPlus:
| Repository | Stars |
|---|---|
|
chinese-liliths-throne/BDCCChineseLocalization
|