print("你好！")
local term = require("term")
term.clear()
local gpu = require("component").gpu
local w, h = gpu.getResolution()
gpu.fill(1, 1, w, h, " ")
gpu.setForeground(0xF00000)
gpu.setBackground(0x3422E9)
-- gpu.fill(1, 1, w/2, h/2, "好")
local width = (w - 11) / 9
local height = (h - 11) / 5
-- gpu.setViewport(30, 20)
for i=0,9 do
  gpu.fill(i * width + 1, 1, 1, h, "|")
  gpu.fill(1, i * height + 1, w, 1, "-")
end
local os = require("os")
while (true) do 
  gpu.set(6, 10, "Date In Game: " .. os.date())
  os.sleep(0.5)
end

-- gpu.copy(1, 1, w/2, h/2, w/2, h/2)
-- gpu.setBackground(0x8421A4)
-- gpu.set(1, 1, "Hello")