Skip to content

Tables

console

Functions

  • print(input)
  • println(input)

Note

print() and println() use BBCode so you can use that

  • readln() Returns string
  • clear()
  • abort_reading()
  • get_width()
  • get_height()
  • add_click_hook(func) Adds func function to console click hook. Function must have 3 args:
    1
    2
    3
    4
    5
    6
    7
    8
    9
    function clicked(x, y, type)
        -- `type` passes the index of the pressed button:
        -- 0 - None
        -- 1 - Left
        -- 2 - Right
        -- 3 - Middle
        -- 4 - Extra button 1
        -- 5 - Extra button 2
    end
    
  • remove_click_hook(func) Removes func function from console click hook.