![]() ![]() Return the colour that new text will be written as. blink boolean Whether the cursor should blink.Ĭlears the terminal, filling it with the current background colour.Sets whether the cursor should be visible (and blinking) at the current cursor position. y number The new y position of the cursor.Ĭhecks if the cursor is currently blinking.x number The new x position of the cursor.terminal writes will begin from this position. y number The number of lines to move up by.ParametersĮvery pixel in the terminal will be replaced by the line y pixels below it. Unlike functions like write and print, this does not wrap the text - it simply copies the This must be a multiple of 0.5 between 0.5 and 5. A larger scale will result in the monitor having a lower resolution, but display Get the current palette for a specific colour. Writes text to the terminal with the specific foreground and background characters. Set the colour that new text will be written as.ĭetermine if this terminal supports colour. Sets whether the cursor should be visible (and blinking) at the current cursor position.Ĭlears the terminal, filling it with the current background colour.Ĭlears the line the cursor is currently on, filling it with the current background Move all positions up (or down) by y pixels.Ĭhecks if the cursor is currently blinking. Write text at the current cursor position, moving the cursor to the end of the text. Write "Hello, world!" to an adjacent monitor: local monitor = peripheral.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |