Fixes #415. Colors: The native method "COLOR_PAIRS" does not exist

This commit is contained in:
BDisp
2023-07-19 03:00:34 +01:00
committed by Tig
parent cd119eadfb
commit 683272f959
2 changed files with 3 additions and 3 deletions

View File

@@ -43,6 +43,7 @@
//
using System;
using System.Runtime.InteropServices;
using Terminal.Gui;
namespace Unix.Terminal {
#pragma warning disable CS1591 // Missing XML comment for publicly visible type or member
@@ -93,7 +94,8 @@ namespace Unix.Terminal {
if (attempts == 1) {
attempts++;
if (Microsoft.DotNet.PlatformAbstractions.RuntimeEnvironment.OperatingSystem.Contains ("opensuse")) {
var (exitCode, result) = ClipboardProcessRunner.Bash ("cat /etc/os-release", waitForOutput: true);
if (exitCode == 0 && result.Contains ("opensuse")) {
libs [0] = "libncursesw.so.5";
}
} else {

View File

@@ -16,8 +16,6 @@
<InformationalVersion>1.0</InformationalVersion>
</PropertyGroup>
<ItemGroup>
<PackageReference Include="Microsoft.DotNet.PlatformAbstractions" Version="3.1.6" />
<PackageReference Include="Microsoft.NETFramework.ReferenceAssemblies" Version="1.0.3" PrivateAssets="all" />
<PackageReference Include="NStack.Core" Version="1.0.7" />
<InternalsVisibleTo Include="UnitTests" />
</ItemGroup>