This is a read-only snapshot of the ComputerCraft forums, taken in April 2020.
chowder64's profile picture

monitor text scale

Started by chowder64, 05 December 2012 - 11:33 AM
chowder64 #1
Posted 05 December 2012 - 12:33 PM
i'm trying to make the text on my monitor smaller but

monitor.setTextScale(0.5)

doesn't seem to work. it's probably how i'm using the command but i can not get it to work.
can someone please help me?

programs:
1) run:
shell.run ("monitor", "top", "test")

2) test:
local w, h = term.getSize()
term.setCursorPos(w,1)
monitor.setTextScale(0.5)

term.setCursorPos(10,1)
term.write (w)
term.setCursorPos(10, 5)
term.write (h)
Cranium #2
Posted 05 December 2012 - 12:47 PM
You need to wrap the peripheral before you can call to it.


local monitor = peripheral.wrap("side") --change side to the side the monitor is on
monitor.setTextScale(.5)
monitor.write("whatever")
Edited on 05 December 2012 - 01:33 PM
Lyqyd #3
Posted 05 December 2012 - 02:04 PM
You need to wrap the peripheral before you can call to it.


local monitor = peripheral.wrap("side") --change side to the side the monitor is on
monitor.setTextScale(.5)
mon.write("whatever")

At least be consistent–monitor or mon, pick one. :-)
Cranium #4
Posted 05 December 2012 - 02:33 PM
You need to wrap the peripheral before you can call to it.


local monitor = peripheral.wrap("side") --change side to the side the monitor is on
monitor.setTextScale(.5)
mon.write("whatever")

At least be consistent–monitor or mon, pick one. :-)
OOPS D:
Thanks for catching that for me. I am so used to using mon, that I put it in there. Fixed now…