Skip to content

Instantly share code, notes, and snippets.

@x4fx77x4f
Created October 4, 2020 01:16
Show Gist options
  • Save x4fx77x4f/26a002fa2b8a9ae60fa8265f818d5bea to your computer and use it in GitHub Desktop.
Save x4fx77x4f/26a002fa2b8a9ae60fa8265f818d5bea to your computer and use it in GitHub Desktop.
A simple demo using a Wired Console Screen in StarfallEx
--@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