Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
<PackageId>ConsoleInteractivePrompt</PackageId>
<PackageLicenseUrl>https://github.com/breadbyte/ConsoleInteractive/blob/main/LICENSE</PackageLicenseUrl>
<LangVersion>default</LangVersion>
<TargetFrameworks>net7.0;net8.0</TargetFrameworks>
<TargetFramework>net10.0</TargetFramework>
<OutputType>Library</OutputType>
<PublishSingleFile>false</PublishSingleFile>
</PropertyGroup>
Expand Down
8 changes: 3 additions & 5 deletions ConsoleInteractive/ConsoleInteractive/InternalContext.cs
Original file line number Diff line number Diff line change
Expand Up @@ -27,11 +27,9 @@ internal static bool SuppressInput {

internal static void SetCursorVisible(bool visible) {
// It's useful to have the cursor visible in debug situations
#if DEBUG
return;
#endif

#if !DEBUG
Console.CursorVisible = visible;
#endif
}

[GeneratedRegex("\\u001B\\[[\\d;]+m", RegexOptions.Compiled)]
Expand All @@ -40,4 +38,4 @@ internal static void SetCursorVisible(bool visible) {
[GeneratedRegex("(§([0-9a-fk-or]|(?:§[0-9a-fr])))", RegexOptions.Compiled)]
private static partial Regex GetFormatRegex();
}
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
<IsPackable>false</IsPackable>
<Nullable>enable</Nullable>
<LangVersion>default</LangVersion>
<TargetFramework>net7.0</TargetFramework>
<TargetFramework>net10.0</TargetFramework>
</PropertyGroup>

<ItemGroup>
Expand Down
6 changes: 6 additions & 0 deletions global.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
{
"sdk": {
"version": "10.0.104",
"rollForward": "latestFeature"
}
}