monitor.getTextScale

From ComputerCraft
Jump to: navigation, search

monitor.getTextScale
Function
Syntax
monitor.getTextScale()
Returns number
API Monitor
Source CC:Tweaked

Returns the value of a monitor peripheral's text scale as set by it's setTextScale command, defaulting to 1 if the function was never invoked.

ExampleExampleScale value retrieval
Gets a monitors text scale, changes it, then get's it again
Code
local mon = peripheral.find("monitor")
print(mon.getTextScale())
mon.setTextScale(5)
print(mon.getTextScale())