Will Baldoumas
e07ccd9f66
Allow Confirmation Prompt Styling ( #1210 )
...
* Allow Confirmation Prompt Styling
* Remove style null check
Co-authored-by: Cédric Luthi <cedric.luthi@gmail.com>
* Remove style null coalesce
Co-authored-by: Cédric Luthi <cedric.luthi@gmail.com>
* Update comment
Co-authored-by: Cédric Luthi <cedric.luthi@gmail.com>
* Remove style null check
Co-authored-by: Cédric Luthi <cedric.luthi@gmail.com>
* Update comment
Co-authored-by: Cédric Luthi <cedric.luthi@gmail.com>
* Remove style null coalesce
Co-authored-by: Cédric Luthi <cedric.luthi@gmail.com>
---------
Co-authored-by: Cédric Luthi <cedric.luthi@gmail.com>
2023-11-13 18:23:09 +01:00
Cédric Luthi
4219bbbf61
Allow passing a nullable style in DefaultValueStyle() and ChoicesStyle()
...
This will allow to slightly simplify the implementation of #1210
See also related discussion on https://github.com/spectreconsole/spectre.console/pull/1349#discussion_r1388385384
2023-11-10 08:01:18 +01:00
Cédric Luthi
29a43686d4
Fix AnsiConsoleOutput safe height
...
The safe height (introduced in 3e2eea730bf0f6fe4a5e336faa312b526d351079) would be 80 (the value of the safe width) instead of 24.
Removing the explicit `defaultValue` parameter ensures that the correct constants are used, i.e. Constants.DefaultTerminalWidth and Constants.DefaultTerminalHeight.
2023-11-09 12:11:56 +01:00
Nils Andresen
bbf58ee814
( #1188 ) Rows measure greedy
2023-10-19 07:46:12 +02:00
Patrik Svensson
943c045fab
Fixes TextPath rendering bugs ( #1308 )
...
* Do not emit line break when rendering
* Don't be greedy when measuring.
* Fix a condition that decides if the path fits in the allotted space.
Closes #1307
2023-09-18 08:04:57 +02:00
Phil Scott
ed9e198d60
Progress bar header and footer ( #1262 )
2023-09-16 22:39:43 +02:00
Patrik Svensson
3bee7212b7
Merge pull request #1303 from nils-a/feature/GH-684
2023-09-16 19:37:00 +02:00
Patrik Svensson
c82d8c4523
Add option to show separator between table rows ( #1304 )
...
* Add option to show separator between table rows
* Panels should show header if borders are not shown
Closes #835
2023-09-16 18:49:12 +02:00
Nils Andresen
bef21e8a21
( #684 ) Enable setting the color of the values in a BreakdownChart
2023-09-15 20:12:06 +02:00
Ola Bäcker
037e109699
Fix figlet centering possibly throwing due to negative size ( #1302 )
2023-09-14 19:50:12 +02:00
Fraser Waters
cec5fb4595
Render tables with zero-width columns ( #1197 )
...
Fixes https://github.com/spectreconsole/spectre.console/issues/361
2023-09-12 15:46:25 +02:00
Jeppe Roi Kristensen
e0ded712e8
Add fix to avoid exception on Rows with no children
2023-06-13 00:36:06 +02:00
fredrikbentzen
71a5d83067
Fixed render issue where writeline inside status caused corrupt output #415 #694
2023-06-04 20:31:12 +02:00
Elisha Aguilera
018f4ebd17
Minor refactors ( #1081 )
2023-05-14 15:30:27 +01:00
Cédric Luthi
6acf9b8c63
Add an implicit operator to convert from Color to Style ( #1160 )
2023-05-10 14:20:12 +01:00
MaxAtoms
1334319dd1
Add Alacritty as supported Ansi console
2023-04-03 12:42:24 +02:00
Patrik Svensson
70da3f40ff
Merge pull request #1161 from MartinZikmund/dev/mazi/stringcomparer-confirmation
2023-03-16 09:57:15 +01:00
Martin Zikmund
5075732564
Adjustments based on code review
2023-03-16 09:45:42 +01:00
Gérald Barré
baa8220a52
Use StringComparison.Ordinal instead of culture-sensitive comparisons
2023-02-20 20:23:06 -05:00
Martin Zikmund
9cd7b24e65
Allow configuration of confirmation prompt comparison via StringComparer
2023-02-11 17:09:16 +01:00
Martin Zikmund
29846ba505
Ensure correct comparer is used for TextPrompt
2023-02-04 19:56:37 +01:00
Martin Zikmund
720db951f3
feat: Allow case-insensitive confirmation prompt
2023-02-04 13:24:11 +01:00
Patrik Svensson
54be64ec84
Add JSON text renderer ( #1086 )
...
* Add JsonText widget to render highlighted JSON
Closes #1051
2022-12-31 18:17:15 +00:00
Nils Andresen
f895bb175d
modified tokenizer to not break on on ]]] at the end of a style
2022-12-01 22:32:32 +01:00
Jaime Finat Sáez
4258cbfb85
Performance issue solved ( #1096 )
2022-11-30 18:13:31 +01:00
Patrik Svensson
55c3f3b7a8
Figlet text should not pad on right side automatically
2022-11-15 12:36:49 +01:00
Patrik Svensson
02ff3fc910
Fix alignment bug
2022-11-15 12:36:49 +01:00
Patrik Svensson
c3ec6a7363
Add Layout widget ( #1041 )
...
* Add width to panels
* Add height to panels
* Replace RenderContext with RenderOptions
* Remove exclusivity from alternative buffer
* Add Layout widget
* Add Align widget
2022-11-15 10:12:17 +01:00
Patrik Svensson
a70cc90797
Fix issues with nullability and netstandard2.0
2022-11-10 12:01:13 +01:00
Patrik Svensson
7dce4af552
Add support for .NET 7.0
2022-11-10 12:01:13 +01:00
Łukasz Sowa
6a4d8c8f30
Add culture option to TypeConverterHelper, TextPrompt and AnsiConsole ( #1014 )
...
* Add culture option to TypeConverterHelper, TextPrompt and AnsiConsole
* Add IHasCulture interface
2022-10-15 11:19:06 +02:00
picture-vision
f085da76c1
Added Suckless Simple Terminal (st) to list of ansi terminals
2022-10-13 22:32:11 +02:00
nilaoda
8fa53f8fb1
Allow PACKET
key on MultiSelectionPrompt
2022-10-13 20:43:03 +02:00
Salvage
999c59909b
Fix @ being used in figlet font
2022-10-01 17:12:11 +02:00
Salvage
422012c994
Make documentation consistent
2022-09-26 23:32:57 -04:00
Salvage
4f0ec87522
Allow selections to wrap around
2022-09-26 23:32:57 -04:00
Gary McDougall
eb02c3d534
Custom mask for secret ( #970 )
...
* Masking Character added, not yet used.
* Setting the masking character can be chained with other extensions.
* Added string extension for masking, and replaced hardcoded asterisks.
* Check if mask is null first.
* Fixed Typo in previous test and added new test for custom masks.
* Added tests for masking with null character
* Added docs and example.
* Adjusted extensions so that Mask is integrated into Secret extension. Updated Exampls and Tests accordingly
2022-09-26 20:34:41 +02:00
nkochnev
1082ac1efc
Backward direction of autocomplete with Tab + Shift
2022-09-19 08:58:45 +02:00
Eduardo Cáceres
a60910c15f
Update .NET 5 -> .NET 6 in docs
2022-09-19 08:47:23 +02:00
renovate[bot]
73ab977f26
chore: Update dependency Wcwidth.Sources to v1
2022-09-17 13:52:22 +02:00
Cédric Luthi
e96a821ead
Set the DevelopmentDependency flag on the Spectre.Console.Analyzer project
...
It was applied by mistake on Spectre.Console in #938 .
2022-09-06 19:03:22 +02:00
lonix1
506253bc34
build: set nuget package as dev dependency
...
Docs: https://github.com/NuGet/Home/wiki/DevelopmentDependency-support-for-PackageReference
2022-08-29 10:20:32 +02:00
Bastian Eicher
90c2d988ab
Detect non-interactive console via System.Console.IsInputRedirected instead of Environment.UserInteractive
2022-08-29 08:57:53 +02:00
Nils Andresen
2bd1383cbe
Fixed punctuation
2022-08-29 08:54:30 +02:00
Nils Andresen
00a9ba325e
restructured MarkupTokenizer a bit.
2022-08-29 08:54:30 +02:00
Nils Andresen
a6618f762c
Modified MarkupTokenizer
...
So escaped markup in markup is valid.
2022-08-29 08:54:30 +02:00
Nils Andresen
638149f44b
fixed punctuation in exception
2022-08-29 08:54:30 +02:00
Nils Andresen
d94dc2fcb2
fixed build error
...
error NU1504: Duplicate 'PackageReference' items
found. Remove the duplicate items or use the Update
functionality to ensure a consistent restore behavior. The duplicate
'PackageReference' items are: System.Memory 4.5.5, System.Memory 4.5.5.
2022-08-17 16:03:44 +02:00
Nils Andresen
9d985f0f0a
( #922 ) fixed ArgumentNullException on .NET Framework
...
It seems, when Spectre.Console is compiled for
netstandard2.0, StackTrace.GetFrames() returns null
instead of an empty array.
2022-08-17 16:03:44 +02:00
Patrik Svensson
dc93edef15
Remove the 'net50' TFM
...
Also updates all dependencies to the latest version.
Closes #829
2022-07-02 11:18:34 +02:00