A more powerful C# console API.
Typically, C# code interacts with the console using the System.Console
class. System.Console
was designed for ease-of-use, and does not expose many commonly desired console features (ex. color, writing regions of text, mouse support, etc). Drexel.Terminal
is intended for these more advances console uses.
- Supports console mouse input (if the target platform supports it)
- Supports console colors
- Supports performantly writing blocks of characters
- Event-driven architecture using
System.IObserver<T>
- Add a reference to the
Drexel.Terminal.*
NuGet package for your target platform:
Drexel.Terminal.Win32
, to target the Windows Win32 Console API.Drexel.Terminal.Ansi
, to target multi-platform ANSI escape codes.
- Use
TerminalInstance.GetInstanceAsync(...)
to retrieve aTerminalInstance
- Use the
TerminalInstance
. If you'd like, you can also leverage:
Drexel.Terminal.Text
, so that you don't need to convertSystem.String
s to character arrays with your bare handsDrexel.Terminal.Layout
, to create GUI-like applications