System.IsLocked
Skip to content
mnscript
bool System.IsLocked() 

Description ​

Returns whether the terminal is locked or not.

Returns ​

bool

Example ​

msc
using System;
using Console;

//Prints whether the terminal is locked or not.
Console.WriteLine("Terminal Locked: "..System.IsLocked());