Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- -- This script prints all special characters you can type in ComputerCraft
- -- These can be typed in Lua like this "\num" where num is a number from 0 - 255 (ex. "\141")
- -- Created by ReimarPB
- -- To run:
- -- > pastebin get UnmwmDYp font
- -- > font
- term.clear()
- term.setCursorPos(1, 1)
- local width, height = term.getSize()
- local x = 1 -- The x position of our cursor
- for i = 0, 255, 1 do
- -- Print numbers at the side and newlines
- if x + 1 > width or x == 1 then
- if x > 1 then print("") end
- term.setTextColor(colors.lightGray)
- term.write(string.format("%03d", i) .. " ")
- term.setTextColor(colors.white)
- x = 4
- end
- -- Print the character
- local char = loadstring("return \"\\" .. i .. "\"")()
- term.write(char .. " ")
- x = x + 2
- end
- term.setCursorPos(1, height)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement