The video posted above is pretty clear, and you can just look at the code used in the video - It's not hard to work out what each part does!
To change the text size as part of a program, use the following code:
peripheral.wrap("SIDE").setTextScale(SIZE)
Where 'SIDE' is the side to which the monitor is attached, and 'SIZE' is a number between 1 and 5 that sets the text size.
To output text to the monitor, you shoud use the following code:
peripheral.wrap("SIDE").write("TEXT YOU WANT")
Where 'SIDE' is the side of the computer that the monitor is attached to.
You can also use the 'clear()' and 'setCursorPos()' functions as usual, but the 'term' part at the beginning of the standard code should be replaced with 'peripheral.wrap("SIDE")'. For example:
peripheral.wrap("SIDE").clear() //Clears the monitor screen
peripheral.wrap("SIDE").setCursorPos(1,1) //Sets the co-ordinates of the cursor to (1,1)
If you will be using the above pieces of code lots in your program, you can define 'peripheral.wrap("SIDE")' as a variable called something like 'monitor' to make your life easier. For example:
monitor = peripheral.wrap("SIDE")
monitor.clear() //clears the screen
monitor.write("Hello") //writes 'Hello' to the screen
This is a much easier way to use this code!
If you want to use this code on its own and not as part of a program, run the computer program 'lua' (to open up the Lua command prompt), then use the commands directly!
Hope this helps!