Skip to content

Instantly share code, notes, and snippets.

@R3V1Z3
Created November 3, 2025 20:58
Show Gist options
  • Select an option

  • Save R3V1Z3/3226c2084294041989205c5d37f69b08 to your computer and use it in GitHub Desktop.

Select an option

Save R3V1Z3/3226c2084294041989205c5d37f69b08 to your computer and use it in GitHub Desktop.
title minWidth minHeight
Box Drawing Test
60
25
function globalRender()
  buffer:clear()
  
  -- Title
  buffer:write(5, 2, "Box Drawing Test", 33, 0, true)
  
  -- Simple box
  buffer:drawBox(5, 5, 30, 10, "border")
  buffer:write(10, 9, "Hello World!", 37, 0, false)
end

function globalHandleKey(key)
  -- key should be a table
  if key.name == "q" or key.name == "Q" then
    return false
  end
  return true
end

setMultiSectionMode(true)

Test

Press Q to exit.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment