global record window record Window write: function(text: string) blit: function(text: string, textColor: string, backgroundColor: string) scroll: function(y: integer) clear: function() clearLine: function() getCursorPos: function(): integer, integer setCursorPos: function(x: integer, y: integer) getCursorBlink: function(): boolean setCursorBlink: function(blink: boolean) getSize: function(): integer, integer isColor: function(): boolean isColour: function(): boolean getTextColor: function(): number getTextColour: function(): number setTextColor: function(color: number) setTextColour: function(colour: number) getBackgroundColor: function(): number getBackgroundColour: function(): number setBackgroundColor: function(color: number) setBackgroundColour: function(colour: number) getPaletteColor: function(color: number): number, number, number getPaletteColour: function(colour: number): number, number, number setPaletteColour: function(color: number, r_rgb: number, g: number | nil, b: number | nil) setPaletteColor: function(colour: number, r_rgb: number, g: number | nil, b: number | nil) getLine: function(y: integer): string, string, string 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 create: function(parent: term.Redirect, x: integer, y: integer, width: integer, height: integer, startVisible: boolean | nil): Window end