diff --git a/Terminal.Gui/ConsoleDrivers/CursesDriver/binding.cs b/Terminal.Gui/ConsoleDrivers/CursesDriver/binding.cs index a1dc3386e2..16caaa05ca 100644 --- a/Terminal.Gui/ConsoleDrivers/CursesDriver/binding.cs +++ b/Terminal.Gui/ConsoleDrivers/CursesDriver/binding.cs @@ -380,7 +380,7 @@ private static nint get_ptr (string key) private static void LoadMethods () { - string [] libs = OperatingSystem.IsMacOS + string [] libs = OperatingSystem.IsMacOS() ? ["libncurses.dylib"] : ["libncursesw.so.6", "libncursesw.so.5"]; var attempts = 1;