Table of Contents

Method IsUnixLike

Namespace
Terminal.Gui.Drivers
Assembly
Terminal.Gui.dll

IsUnixLike()

Determines whether the current operating system is a Unix-like platform.

public static bool IsUnixLike()

Returns

bool

true if the operating system is Linux, macOS, or FreeBSD; otherwise, false.

Remarks

Unix-like platforms include operating systems that derive from or closely follow traditional UNIX and POSIX design principles. On .NET, this currently includes Linux, macOS (Darwin), and FreeBSD.