Created
October 4, 2020 01:16
-
-
Save x4fx77x4f/26a002fa2b8a9ae60fa8265f818d5bea to your computer and use it in GitHub Desktop.
A simple demo using a Wired Console Screen in StarfallEx
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
--@server | |
wire.adjustInputs({"Console"}, {"Wirelink"}) | |
local con = wire.ports.Console | |
con[2041] = 0 | |
local function writeString(str, i) | |
for j=1, #str do | |
local k = (i+j-1)*2 | |
con[k] = str:sub(j, j):byte() | |
con[k+1] = 0000999 | |
end | |
end | |
writeString("123456789012345678901234567890", 0) | |
for i=1, 18 do | |
writeString(tostring(i+1), i*30) | |
end |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment