{"id":15888070,"url":"https://github.com/lpghatguy/textbox","last_synced_at":"2025-08-05T15:14:14.231Z","repository":{"id":66218276,"uuid":"80991765","full_name":"LPGhatguy/textbox","owner":"LPGhatguy","description":"Logic-only library to manage text box state in Lua UI libraries","archived":false,"fork":false,"pushed_at":"2017-10-12T00:21:06.000Z","size":14,"stargazers_count":8,"open_issues_count":3,"forks_count":18,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-03-11T11:51:25.616Z","etag":null,"topics":["love2d","lua"],"latest_commit_sha":null,"homepage":null,"language":"Lua","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/LPGhatguy.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE.md","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2017-02-05T12:37:03.000Z","updated_at":"2025-01-24T01:23:16.000Z","dependencies_parsed_at":"2023-03-10T23:43:52.261Z","dependency_job_id":null,"html_url":"https://github.com/LPGhatguy/textbox","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/LPGhatguy%2Ftextbox","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/LPGhatguy%2Ftextbox/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/LPGhatguy%2Ftextbox/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/LPGhatguy%2Ftextbox/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/LPGhatguy","download_url":"https://codeload.github.com/LPGhatguy/textbox/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":244066180,"owners_count":20392406,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["love2d","lua"],"created_at":"2024-10-06T06:06:16.610Z","updated_at":"2025-03-20T09:30:27.471Z","avatar_url":"https://github.com/LPGhatguy.png","language":"Lua","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Textbox\n[![Travis CI Build Status](https://api.travis-ci.org/LPGhatguy/textbox.svg?branch=master)](https://travis-ci.org/LPGhatguy/textbox)\n\nTextbox is a library used to manage text box state. It is meant to be used as the input manager for any LÖVE UI widget or toolkit.\n\nTextbox is based around the lifecycle of `InputContext` objects. One `InputContext` object is intended to map to one text input field. While the input has focus, you should call the `textinput` and `keypressed` methods on the `InputContext` object when appropriate. These correspond to the arguments and semantics of the LÖVE API.\n\n## Installation\nTextbox requires **LÖVE 0.10.0** or newer.\n\nPut the `textbox` folder into your project and require it.\n\n## Features\nTextbox provides these features:\n\n- Text entry\n- Selection\n- Cursor movement\n- Backspace and forward-delete\n- Home/End keys\n- Select all\n- Copy/Cut/Paste\n\n## Sample Usage\nSee the `demo` folder for more detailed examples.\n\n```lua\nlocal textbox = require(\"textbox\")\n\nlocal context = textbox.InputContext()\n\nfunction love.draw()\n\tlove.graphics.print(context.value, 0, 0)\nend\n\nfunction love.keypressed(key)\n\tcontext:keypressed(key)\nend\n\nfunction love.textinput(text)\n\tcontext:textinput(text)\nend\n```\n\n## TODO\n- Explicit UTF-8 support\n- IME support\n- Multiline editing","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Flpghatguy%2Ftextbox","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Flpghatguy%2Ftextbox","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Flpghatguy%2Ftextbox/lists"}