input.lua (477B)
1 ---@meta mp.input 2 3 ---@class mp.input 4 local input = {} 5 6 ---@class InputGetOpts 7 ---@field prompt string? 8 ---@field default_text string? 9 ---@field id string? 10 ---@field submit (fun(text: string))? 11 ---@field opened (fun())? 12 ---@field edited (fun(text: string))? 13 ---@field complete (fun(text_before_cursor: string): string[], number)? 14 ---@field closed (fun(text: string))? 15 16 ---@param options InputGetOpts 17 function input.get(options) end 18 19 function input.terminate() end 20 21 return input