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

How to use Text Scale

Started by Desslink, 14 January 2013 - 05:07 AM
Desslink #1
Posted 14 January 2013 - 06:07 AM
All is in the title:
I want to use

term.setTextScale(2)
I enter this line in an empty program and it returns me:

test:1: attempt to call nil
if you know how to fix it or use it, please leave a reply
Orwell #2
Posted 14 January 2013 - 06:13 AM
The function setTextScale can only be used on monitors, not on the built in terminal. Sorry..
If you'd like an example for monitors, ask away. :)/>
Desslink #3
Posted 14 January 2013 - 06:24 AM
Yes it's for change the text scale on my monitor
Orwell #4
Posted 14 January 2013 - 06:26 AM
Then you'd do it like this:

local monitor = peripheral.wrap('left') -- change left to the side your monitor is on
monitor.setTextScale(2)
monitor.clear()
monitor.write('Test!')
Desslink #5
Posted 14 January 2013 - 06:36 AM
thanks and just an another thing, can it possible to copy/paste in the computers?
Orwell #6
Posted 14 January 2013 - 07:03 AM
thanks and just an another thing, can it possible to copy/paste in the computers?
Not really, (you can paste exactly one line AFAIK). Check out the pastebin program to download programs from the internet. :)/>
remiX #7
Posted 14 January 2013 - 07:16 AM
Yeah, you can only copy paste one line at a time which is a pain.

Use pastebin if you can :)/>
Desslink #8
Posted 14 January 2013 - 01:10 PM
ok and how the copy/paste work (it isn't with Ctrl+C or V)
Pastebin is an another mod ?
theoriginalbit #9
Posted 14 January 2013 - 01:13 PM
pastebin is a website http://pastebin.com
to download a script from pastebin the http api needs to be enabled, then you type this into the terminal (replacing values where appropriate)
pastebin get <pastebin url extension> <file path to save to>
for example:
pastebin get 9Fg3uYAd startup
would dowload the script at pastebin.com/9Fg3uYAd into the startup file
to put a script onto pastebin use
pastebin put <file path to dump to pastebin>