Elwood.ConsoleFramework
0.0.3
dotnet add package Elwood.ConsoleFramework --version 0.0.3
NuGet\Install-Package Elwood.ConsoleFramework -Version 0.0.3
<PackageReference Include="Elwood.ConsoleFramework" Version="0.0.3" />
paket add Elwood.ConsoleFramework --version 0.0.3
#r "nuget: Elwood.ConsoleFramework, 0.0.3"
// Install Elwood.ConsoleFramework as a Cake Addin
#addin nuget:?package=Elwood.ConsoleFramework&version=0.0.3
// Install Elwood.ConsoleFramework as a Cake Tool
#tool nuget:?package=Elwood.ConsoleFramework&version=0.0.3
Console Framework
Console framework is cross-platform toolkit that allows to develop TUI applications using C# and based on WPF-like concepts.
Features
- Declarative markup (custom lightweight XAML implementation)
- Data binding (integrated with XAML markup)
- Retained mode rendering system
- WPF-compatible simple and flexible layout system
- A lot of controls available (including Grid, ScrollViewer, ListBox, ComboBox)
- Routed events system (compatible with WPF)
- Windows, Mac OS X and Linux (64-bit) support
Install from NuGet
NuGet package is available here https://www.nuget.org/packages/Elwood.ConsoleFramework
Build from source
To build a library with examples you can use standard dotnet tool:
dotnet build
It should work in all platforms.
Native dependencies
For Windows there are no native dependencies required. But in Linux and Mac OS X environments you should prepare some native dependencies to be able to execute examples. Dependencies are:
- libtermkey
- libc
- ncursesw
To build libtermkey go to its source code directory and simply run
make
After that you can copy binaries from ./libs into directory with examples. Or you can use binaries of libtermkey from zip in /native directory.
Libc and ncursesw are distributed in binaries in vast majority of Linux distros and OS X, so all you need is locate actual binaries and copy them in the output directory if the target machine does not have them, for example, if you are Mac OS X user, you will need to install libtermkey.
brew install --universal libtermkey
Console Framework expects that libraries will be available strictly by these names on Linux. If your system already has symlinks libc.so.6 and libncursesw.so.5, you can skip this step.
Running examples
In Windows
dotnet run --project StandaloneExamples/ManyControls
In Linux
cd StandaloneExamples/ManyControls
dotnet build
# Copy native dependencies
unzip ../../native/libtermkey-0.18-x86_64.zip -d bin/Debug/netcoreapp2.0/
cd bin/Debug/netcoreapp2.0/
dotnet ManyControls.dll
Press Ctrl+D to exit application.
Running unit tests
dotnet test Tests
Development
There were two IDEs where I've worked with .NET Core project: Visual Studio 2017 Community and JetBrains Rider. Both of them works well with this source code.
Mono support
Support of Mono runtime have been discontinued. If you need library for Mono, you can download previous releases. All further development will be continued for .NET Core runtime only.
Terminal emulators in Mac OS X
Standard terminal emulator is not very good for console applications deals with mouse. My recommendation is to use ITerm2. ITerm2 provides a good emulation with mouse support. If you want to see how console framework renders in various Mac emulators, visit http://elwood.su/2014/02/console-framework-on-mac/
License
Copyright 2011-2018 I. Kostromin
License: MIT/X11
Product | Versions Compatible and additional computed target framework versions. |
---|---|
.NET | net5.0 was computed. net5.0-windows was computed. net6.0 was computed. net6.0-android was computed. net6.0-ios was computed. net6.0-maccatalyst was computed. net6.0-macos was computed. net6.0-tvos was computed. net6.0-windows was computed. net7.0 was computed. net7.0-android was computed. net7.0-ios was computed. net7.0-maccatalyst was computed. net7.0-macos was computed. net7.0-tvos was computed. net7.0-windows was computed. net8.0 was computed. 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. |
.NET Core | netcoreapp2.0 was computed. netcoreapp2.1 was computed. netcoreapp2.2 was computed. netcoreapp3.0 was computed. netcoreapp3.1 was computed. |
.NET Standard | netstandard2.0 is compatible. netstandard2.1 was computed. |
.NET Framework | net461 was computed. net462 was computed. net463 was computed. net47 was computed. net471 was computed. net472 was computed. net48 was computed. net481 was computed. |
MonoAndroid | monoandroid was computed. |
MonoMac | monomac was computed. |
MonoTouch | monotouch was computed. |
Tizen | tizen40 was computed. tizen60 was computed. |
Xamarin.iOS | xamarinios was computed. |
Xamarin.Mac | xamarinmac was computed. |
Xamarin.TVOS | xamarintvos was computed. |
Xamarin.WatchOS | xamarinwatchos was computed. |
-
.NETStandard 2.0
- Elwood.Binding (>= 0.0.3)
- Elwood.Xaml (>= 0.0.3)
- System.Threading.Thread (>= 4.3.0)
NuGet packages
This package is not used by any NuGet packages.
GitHub repositories
This package is not used by any popular GitHub repositories.
Version | Downloads | Last updated |
---|---|---|
0.0.3 | 1,841 | 5/19/2018 |