A set of utilities to make designing Textual User Interfaces a little more simple. https://code.foxhollow.cc/terminal-ui/
  • C# 98.4%
  • Shell 1.6%
Find a file
Repository files (latest commit first)
Filename Latest commit message Latest commit date
Steve Cross 3d9eb06bac
- Change default status bar color scheme
- Change default selected menu item color scheme
- Add ability to show help text in header during menu selection
2022-10-07 14:15:02 -04:00
.vscode Made numerous improvements across the library 2021-09-16 13:41:09 -04:00
docs Added project links to readme files 2021-09-25 14:38:30 -04:00
Examples Started adding example projects 2021-09-20 13:44:01 -04:00
scripts add build scripts 2021-09-24 16:35:37 -04:00
src - Change default status bar color scheme 2022-10-07 14:15:02 -04:00
TestCLI Changed namespace to FoxHollow.TerminalUI 2021-09-20 11:03:12 -04:00
.gitignore update .gitignore 2021-09-24 16:35:31 -04:00
.woodpecker.yml Attempting to fix issue with generating release zip 2021-09-25 14:30:50 -04:00
Directory.Build.props Attempting to fix issue with generating release zip 2021-09-25 14:30:50 -04:00
LICENSE Renamed LICENSE file 2021-09-12 12:10:29 -04:00
README.md Added project links to readme files 2021-09-25 14:38:30 -04:00
RELEASE_NOTES.md Attempting to fix issue with generating release zip 2021-09-25 14:30:50 -04:00
TerminalUI.sln Added TestCLI and TerminalPointMove 2021-09-16 10:39:52 -04:00

TerminalUI - Simple terminal widgets for C#

build badge

Overview

This project is meant to provide a very simple Terminal "UI" for dotnet projects. There are no movable windows, no mouse support, etc. It really is meant to provide some useful "widgets" or "elements" that can be created and easily updated in-place. A great example of this is a ProgressBar. Once created, you have a handle to the ProgressBar and can easily updated. For example:

// This will create a progress bar at the current cursor index (x and y) that 
// consumes the remaining terminal width. It will then set the percentage to 42%.
ProgressBar progressBar = new ProgressBar();
progressBar.UpdateProgress(0.42);

Demo

Here you can see a screen grab of a few of these elements in use:

demo

License

TerminalUI is licensed under the GNU Lesser General Public License (LGPL) v2.1 or later

Copyright © 2021 Steve Cross

This program is free software; you can redistribute it and/or modify
it under the terms of the GNU Lesser General Public License as published by
the Free Software Foundation; either version 2.1 of the License, or
(at your option) any later version.

This program is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
GNU Lesser General Public License for more details.

You should have received a copy of the GNU Lesser General Public License
along with this program; if not, see http://www.gnu.org/licenses/.