Implement monitoring lua client

This commit is contained in:
2022-09-21 10:33:16 +02:00
parent 1fde73778b
commit 2af0136703
7 changed files with 239 additions and 25 deletions

27
lua/types/os.d.tl Normal file
View File

@@ -0,0 +1,27 @@
global record os
pullEvent: function(filter: string | nil): string, any...
pullEventRaw: function(filter: string | nil): string, any...
sleep: function(time: number)
version: function(): string
run: function(env: table, path: string, ...: any): boolean
queueEvent: function(name: string, ...: any)
startTimer: function(time: number): integer
cancelTimer: function(token: integer)
setAlarm: function(time: number): integer
cancelAlarm: function(token: integer)
shutdown: function()
reboot: function()
getComputerID: function(): integer
computerID: function(): integer
getComputerLabel: function(): string
computerLabel: function(): string
setComputerLabel: function(label: string | nil)
clock: function(): number
time: function(locale: string | nil): number
time: function(locale: table): integer
day: function(args: string | nil): integer
epoch: function(args: string | nil): integer
date: function(): string
date: function(format: string): string | table
date: function(format: string, time: number): string | table
end

View File

@@ -31,6 +31,7 @@ global record window
setVisible: function(visible: boolean)
isVisible: function(): boolean
redraw: function()
restoreCursor: function()
getPosition: function(): integer, integer
reposition: function(new_x: integer, new_y: integer, new_width: integer | nil, new_height: integer | nil, new_parent: term.Redirect | nil)
end