Table of Contents

Method IsLinux

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

IsLinux()

Determines whether the current operating system is Linux.

public static bool IsLinux()

Returns

bool

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

Remarks

This method returns true only when running on a Linux distribution. Other Unix-like platforms such as macOS and FreeBSD return false.