Skip to content

Commit

Permalink
Review copyright notice
Browse files Browse the repository at this point in the history
  • Loading branch information
Fernando Cerqueira committed Sep 11, 2023
1 parent 7744361 commit eea4dd3
Show file tree
Hide file tree
Showing 36 changed files with 140 additions and 57 deletions.
8 changes: 8 additions & 0 deletions PromptPlus.sln
Original file line number Diff line number Diff line change
Expand Up @@ -104,6 +104,14 @@ Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "PipelineSamples", "Samples\
EndProject
Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "AlternateScreenSamples", "Samples\AlternateScreenSamples\AlternateScreenSamples.csproj", "{83BB7962-34D7-4F51-8856-94BDC7B68A64}"
EndProject
Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = "Licenses", "Licenses", "{ADBB4294-4DC0-43FC-A57A-4C2F9BDB68A8}"
ProjectSection(SolutionItems) = preProject
LICENSE\LICENSE-FIGlet.Net.md = LICENSE\LICENSE-FIGlet.Net.md
LICENSE\LICENSE-Sharprompt.md = LICENSE\LICENSE-Sharprompt.md
LICENSE\LICENSE-SpectreConsole.md = LICENSE\LICENSE-SpectreConsole.md
LICENSE\LICENSE-xmldoc2md.md = LICENSE\LICENSE-xmldoc2md.md
EndProjectSection
EndProject
Global
GlobalSection(SolutionConfigurationPlatforms) = preSolution
Debug|Any CPU = Debug|Any CPU
Expand Down
3 changes: 1 addition & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -130,8 +130,7 @@ PromptPlus driver console **Supports 4/8/24-bit colors** in the terminal with *
## Migrate Version
[**Top**](#table-of-contents)

Until version 3 the console engine was based on a model from another project that has several serious problems that cause exceptions during execution in addition to increasing the complexity of the code for correct rendering...
**PromptPlus v4** has been **completely rebuilt** for a better experience, with significant improvements with new controls and more developer power. The console driver now supports better rendering, with the ability to detect terminal capabilities and allow for 24-bit color, text overflow strategies based on terminal size, and left and right margins for a nicer layout.
Until version 3 the console engine was based on a model from another project. **PromptPlus v4** has been **completely rebuilt** for a better experience, with significant improvements with new controls and more developer power. The console driver now supports better rendering, with the ability to detect terminal capabilities and allow for 24-bit color, text overflow strategies based on terminal size, and left and right margins for a nicer layout.
**The Controls have been revised to be more responsive, allow color styles in many of their elements**, and adapt to the terminal size even with resizing.

For migrate V3.3 to V4.0 [**see this link**](https://fracerqueira.github.io/PromptPlus/migrateversion.html).
Expand Down
6 changes: 5 additions & 1 deletion Samples/ConsoleFeaturesSamples/Program.cs
Original file line number Diff line number Diff line change
@@ -1,4 +1,8 @@
// See https://aka.ms/new-console-template for more information
// ***************************************************************************************
// MIT LICENCE
// Copyright 2020 Patrik Svensson, Phil Scott, Nils Andresen.
// https://spectreconsole.net
// ***************************************************************************************

using PPlus;
using PPlus.Controls;
Expand Down
4 changes: 2 additions & 2 deletions Src/Controls/Objects/BaseControl.cs
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
// ***************************************************************************************
// MIT LICENCE
// The maintenance and evolution is maintained by the PromptPlus project under MIT license
// This code was based on work from https://github.com/shibayan/Sharprompt
// Copyright (c) 2019 shibayan.
// https://github.com/shibayan/Sharprompt
// ***************************************************************************************

using System;
Expand Down
4 changes: 2 additions & 2 deletions Src/Controls/Objects/EastAsianWidth.cs
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
// ***************************************************************************************
// MIT LICENCE
// The maintenance and evolution is maintained by the PromptPlus project under MIT license
// This code was based on work from https://github.com/shibayan/Sharprompt
// Copyright (c) 2019 shibayan.
// https://github.com/shibayan/Sharprompt
// ***************************************************************************************

using System.Collections.Generic;
Expand Down
3 changes: 2 additions & 1 deletion Src/Controls/Objects/Paginator.cs
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
// ***************************************************************************************
// MIT LICENCE
// The maintenance and evolution is maintained by the PromptPlus project under MIT license
// Copyright (c) 2019 shibayan.
// https://github.com/shibayan/Sharprompt
// ***************************************************************************************

using System;
Expand Down
4 changes: 2 additions & 2 deletions Src/Controls/Objects/Spinners.cs
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
// **********************************************************************************************************
// MIT LICENCE
// The maintenance and evolution is maintained by the PromptPlus project under MIT license
// This code was based on work from https://github.com/spectreconsole/spectre.console
// Copyright 2020 Patrik Svensson, Phil Scott, Nils Andresen.
// https://spectreconsole.net
// **********************************************************************************************************

using System.Collections.Generic;
Expand Down
8 changes: 7 additions & 1 deletion Src/Controls/Objects/SpinnersData.cs
Original file line number Diff line number Diff line change
@@ -1,4 +1,10 @@
using System.Collections.Generic;
// **********************************************************************************************************
// MIT LICENCE
// Copyright 2020 Patrik Svensson, Phil Scott, Nils Andresen.
// https://spectreconsole.net
// **********************************************************************************************************

using System.Collections.Generic;

namespace PPlus.Controls.Objects
{
Expand Down
4 changes: 2 additions & 2 deletions Src/Controls/SpinnersType.cs
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
// **********************************************************************************************************
// MIT LICENCE
// The maintenance and evolution is maintained by the PromptPlus project under MIT license
// This code was based on work from https://github.com/sindresorhus/cli-spinners/blob/master/spinners.json
// Copyright 2020 Patrik Svensson, Phil Scott, Nils Andresen.
// https://spectreconsole.net
// **********************************************************************************************************

namespace PPlus.Controls
Expand Down
4 changes: 2 additions & 2 deletions Src/Drivers/Ansi/AnsiBuilder.cs
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
// ***************************************************************************************
// MIT LICENCE
// The maintenance and evolution is maintained by the PromptPlus project under MIT license
// This code was based on work from https://github.com/spectreconsole/spectre.console
// Copyright 2020 Patrik Svensson, Phil Scott, Nils Andresen.
// https://spectreconsole.net
// ***************************************************************************************

using System;
Expand Down
4 changes: 2 additions & 2 deletions Src/Drivers/Ansi/AnsiColorBuilder.cs
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
// ***************************************************************************************
// MIT LICENCE
// The maintenance and evolution is maintained by the PromptPlus project under MIT license
// This code was based on work from https://github.com/spectreconsole/spectre.console
// Copyright 2020 Patrik Svensson, Phil Scott, Nils Andresen.
// https://spectreconsole.net
// ***************************************************************************************

using System;
Expand Down
4 changes: 2 additions & 2 deletions Src/Drivers/Ansi/AnsiDetector.cs
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
// ***************************************************************************************
// MIT LICENCE
// The maintenance and evolution is maintained by the PromptPlus project under MIT license
// This code was based on work from https://github.com/spectreconsole/spectre.console
// Copyright 2020 Patrik Svensson, Phil Scott, Nils Andresen.
// https://spectreconsole.net
// ***************************************************************************************

using System;
Expand Down
4 changes: 2 additions & 2 deletions Src/Drivers/Ansi/AnsiSequences.cs
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
// ***************************************************************************************
// MIT LICENCE
// The maintenance and evolution is maintained by the PromptPlus project under MIT license
// This code was based on work from https://github.com/spectreconsole/spectre.console
// Copyright 2020 Patrik Svensson, Phil Scott, Nils Andresen.
// https://spectreconsole.net
// ***************************************************************************************

using System.Linq;
Expand Down
4 changes: 2 additions & 2 deletions Src/Drivers/Color.cs
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
// ***************************************************************************************
// MIT LICENCE
// The maintenance and evolution is maintained by the PromptPlus project under MIT license
// This code was based on work from https://github.com/spectreconsole/spectre.console
// Copyright 2020 Patrik Svensson, Phil Scott, Nils Andresen.
// https://spectreconsole.net
// ***************************************************************************************

using System;
Expand Down
4 changes: 2 additions & 2 deletions Src/Drivers/ColorExtensions.cs
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
// ***************************************************************************************
// MIT LICENCE
// The maintenance and evolution is maintained by the PromptPlus project under MIT license
// This code was based on work from https://github.com/spectreconsole/spectre.console
// Copyright 2020 Patrik Svensson, Phil Scott, Nils Andresen.
// https://spectreconsole.net
// ***************************************************************************************

namespace PPlus
Expand Down
4 changes: 2 additions & 2 deletions Src/Drivers/ColorSystem.cs
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
// ***************************************************************************************
// MIT LICENCE
// The maintenance and evolution is maintained by the PromptPlus project under MIT license
// This code was based on work from https://github.com/spectreconsole/spectre.console
// Copyright 2020 Patrik Svensson, Phil Scott, Nils Andresen.
// https://spectreconsole.net
// ***************************************************************************************

namespace PPlus
Expand Down
4 changes: 2 additions & 2 deletions Src/Drivers/Colors/ColorPalette.cs
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
// ***************************************************************************************
// MIT LICENCE
// The maintenance and evolution is maintained by the PromptPlus project under MIT license
// This code was based on work from https://github.com/spectreconsole/spectre.console
// Copyright 2020 Patrik Svensson, Phil Scott, Nils Andresen.
// https://spectreconsole.net
// ***************************************************************************************

using System;
Expand Down
4 changes: 2 additions & 2 deletions Src/Drivers/Colors/ColorSystemDetector.cs
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
// ***************************************************************************************
// MIT LICENCE
// The maintenance and evolution is maintained by the PromptPlus project under MIT license
// This code was based on work from https://github.com/spectreconsole/spectre.console
// Copyright 2020 Patrik Svensson, Phil Scott, Nils Andresen.
// https://spectreconsole.net
// ***************************************************************************************

using System;
Expand Down
4 changes: 2 additions & 2 deletions Src/Drivers/Colors/ColorTable.cs
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
// ***************************************************************************************
// MIT LICENCE
// The maintenance and evolution is maintained by the PromptPlus project under MIT license
// This code was based on work from https://github.com/spectreconsole/spectre.console
// Copyright 2020 Patrik Svensson, Phil Scott, Nils Andresen.
// https://spectreconsole.net
// ***************************************************************************************

using System;
Expand Down
4 changes: 2 additions & 2 deletions Src/Drivers/CursorDirection.cs
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
// ***************************************************************************************
// MIT LICENCE
// The maintenance and evolution is maintained by the PromptPlus project under MIT license
// This code was based on work from https://github.com/spectreconsole/spectre.console
// Copyright 2020 Patrik Svensson, Phil Scott, Nils Andresen.
// https://spectreconsole.net
// ***************************************************************************************

namespace PPlus
Expand Down
5 changes: 3 additions & 2 deletions Src/Drivers/Markup/MarkupToken.cs
Original file line number Diff line number Diff line change
@@ -1,9 +1,10 @@
// ***************************************************************************************
// MIT LICENCE
// The maintenance and evolution is maintained by the PromptPlus project under MIT license
// This code was based on work from https://github.com/spectreconsole/spectre.console
// Copyright 2020 Patrik Svensson, Phil Scott, Nils Andresen.
// https://spectreconsole.net
// ***************************************************************************************


namespace PPlus.Drivers.Markup
{
internal sealed class MarkupToken
Expand Down
4 changes: 2 additions & 2 deletions Src/Drivers/Markup/MarkupTokenKind.cs
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
// ***************************************************************************************
// MIT LICENCE
// The maintenance and evolution is maintained by the PromptPlus project under MIT license
// This code was based on work from https://github.com/spectreconsole/spectre.console
// Copyright 2020 Patrik Svensson, Phil Scott, Nils Andresen.
// https://spectreconsole.net
// ***************************************************************************************

namespace PPlus.Drivers.Markup
Expand Down
5 changes: 3 additions & 2 deletions Src/Drivers/Markup/MarkupTokenizer.cs
Original file line number Diff line number Diff line change
@@ -1,9 +1,10 @@
// ***************************************************************************************
// MIT LICENCE
// The maintenance and evolution is maintained by the PromptPlus project under MIT license
// This code was based on work from https://github.com/spectreconsole/spectre.console
// Copyright 2020 Patrik Svensson, Phil Scott, Nils Andresen.
// https://spectreconsole.net
// ***************************************************************************************


using System;
using System.IO;
using System.Text;
Expand Down
4 changes: 2 additions & 2 deletions Src/Drivers/Overflow.cs
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
// ***************************************************************************************
// MIT LICENCE
// The maintenance and evolution is maintained by the PromptPlus project under MIT license
// This code was based on work from https://github.com/spectreconsole/spectre.console
// Copyright 2020 Patrik Svensson, Phil Scott, Nils Andresen.
// https://spectreconsole.net
// ***************************************************************************************

namespace PPlus
Expand Down
7 changes: 6 additions & 1 deletion Src/Drivers/ReadLineExtension.cs
Original file line number Diff line number Diff line change
@@ -1,4 +1,9 @@
using System;
// ***************************************************************************************
// MIT LICENCE
// The maintenance and evolution is maintained by the PromptPlus project under MIT license
// ***************************************************************************************

using System;
using PPlus.Controls;
using PPlus.Controls.Objects;

Expand Down
4 changes: 2 additions & 2 deletions Src/Drivers/Segment.cs
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
// ***************************************************************************************
// MIT LICENCE
// The maintenance and evolution is maintained by the PromptPlus project under MIT license
// This code was based on work from https://github.com/spectreconsole/spectre.console
// Copyright 2020 Patrik Svensson, Phil Scott, Nils Andresen.
// https://spectreconsole.net
// ***************************************************************************************

using PPlus.Drivers.Markup;
Expand Down
4 changes: 2 additions & 2 deletions Src/Drivers/Style.cs
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
// ***************************************************************************************
// MIT LICENCE
// The maintenance and evolution is maintained by the PromptPlus project under MIT license
// This code was based on work from https://github.com/spectreconsole/spectre.console
// Copyright 2020 Patrik Svensson, Phil Scott, Nils Andresen.
// https://spectreconsole.net
// ***************************************************************************************

using System;
Expand Down
4 changes: 2 additions & 2 deletions Src/Drivers/StyleExtensions.cs
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
// ***************************************************************************************
// MIT LICENCE
// The maintenance and evolution is maintained by the PromptPlus project under MIT license
// This code was based on work from https://github.com/spectreconsole/spectre.console
// Copyright 2020 Patrik Svensson, Phil Scott, Nils Andresen.
// https://spectreconsole.net
// ***************************************************************************************

namespace PPlus
Expand Down
4 changes: 2 additions & 2 deletions Src/Drivers/StyleParser.cs
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
// ***************************************************************************************
// MIT LICENCE
// The maintenance and evolution is maintained by the PromptPlus project under MIT license
// This code was based on work from https://github.com/spectreconsole/spectre.console
// Copyright 2020 Patrik Svensson, Phil Scott, Nils Andresen.
// https://spectreconsole.net
// ***************************************************************************************

using PPlus.Drivers.Colors;
Expand Down
1 change: 0 additions & 1 deletion Src/Drivers/TerminalDetector.cs
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,6 @@
// ***************************************************************************************

using System;
using static PPlus.Drivers.Ansi.AnsiDetector;
using System.Runtime.InteropServices;

namespace PPlus.Drivers
Expand Down
12 changes: 12 additions & 0 deletions Src/NugetREADME.md
Original file line number Diff line number Diff line change
Expand Up @@ -125,3 +125,15 @@ Copyright 2021 @ Fernando Cerqueira

This project is licensed under the [MIT License](https://github.com/FRACerqueira/PromptPlus/blob/master/LICENSE)


## **Credits**

PromptPlus includes code from other software released under the MIT license:

- [Spectre.Console](https://spectreconsole.net/), Copyright (c) 2020 Patrik Svensson, Phil Scott, Nils Andresen.
- [Sharprompt](https://github.com/shibayan/Sharprompt), Copyright (c) 2019 shibayan.
- [xmldoc2md](https://github.com/FRACerqueira/xmldoc2md), Copyright (c) 2022 Charles de Vandière.

PromptPlus includes the following under the AGPLv3 license:

- [FIGlet.Net](https://github.com/WenceyWang/FIGlet.Net), Copyright (c) WenceyWang.
16 changes: 15 additions & 1 deletion Src/README.txt
Original file line number Diff line number Diff line change
Expand Up @@ -144,4 +144,18 @@ var kp = PromptPlus
-----------

Copyright 2021 @ Fernando Cerqueira
PromptPlus project is licensed under the the MIT license.
PromptPlus project is licensed under the the MIT license.


**Credits**
-----------

PromptPlus includes code from other software released under the MIT license:

Spectre.Console, Copyright (c) 2020 Patrik Svensson, Phil Scott, Nils Andresen.
Sharprompt, Copyright (c) 2019 shibayan.
xmldoc2md, Copyright (c) 2022 Charles de Vandière.

PromptPlus includes the following under the AGPLv3 license:

FIGlet.Net, Copyright (c) WenceyWang.
8 changes: 7 additions & 1 deletion UnitTests/Controls/EastAsianWidthTests.cs
Original file line number Diff line number Diff line change
@@ -1,4 +1,10 @@
using PPlus.Controls.Objects;
// ***************************************************************************************
// MIT LICENCE
// Copyright (c) 2019 shibayan.
// https://github.com/shibayan/Sharprompt
// ***************************************************************************************

using PPlus.Controls.Objects;
using PPlus.Tests.Util;

namespace PPlus.Tests.Controls
Expand Down
8 changes: 7 additions & 1 deletion UnitTests/Objects/ColorTests.cs
Original file line number Diff line number Diff line change
@@ -1,4 +1,10 @@
using PPlus.Tests.Util;
// ***************************************************************************************
// MIT LICENCE
// Copyright 2020 Patrik Svensson, Phil Scott, Nils Andresen.
// https://spectreconsole.net
// ***************************************************************************************

using PPlus.Tests.Util;
using Shouldly;

namespace PPlus.Tests.Objects
Expand Down
8 changes: 7 additions & 1 deletion UnitTests/Objects/StyleTest.cs
Original file line number Diff line number Diff line change
@@ -1,4 +1,10 @@
using PPlus.Drivers;
// ***************************************************************************************
// MIT LICENCE
// Copyright 2020 Patrik Svensson, Phil Scott, Nils Andresen.
// https://spectreconsole.net
// ***************************************************************************************

using PPlus.Drivers;
using PPlus.Tests.Util;
using Shouldly;

Expand Down
Loading

0 comments on commit eea4dd3

Please sign in to comment.