mirror of
https://github.com/gui-cs/Terminal.Gui.git
synced 2026-01-01 08:50:25 +01:00
Fixes #415. Colors: The native method "COLOR_PAIRS" does not exist
This commit is contained in:
@@ -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 {
|
||||
|
||||
@@ -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>
|
||||
|
||||
Reference in New Issue
Block a user