{"id":17137193,"url":"https://github.com/squeek502/lua-windcon","last_synced_at":"2025-03-24T07:15:13.747Z","repository":{"id":77411216,"uuid":"319050690","full_name":"squeek502/lua-windcon","owner":"squeek502","description":"Lua module for interacting with the console on Windows","archived":false,"fork":false,"pushed_at":"2020-12-08T20:46:52.000Z","size":12,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":3,"default_branch":"master","last_synced_at":"2025-01-29T12:32:42.183Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"C","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"unlicense","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/squeek502.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","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":"2020-12-06T14:19:56.000Z","updated_at":"2020-12-08T20:46:55.000Z","dependencies_parsed_at":null,"dependency_job_id":"a1a99a43-173c-4fba-acdd-e23355870b0e","html_url":"https://github.com/squeek502/lua-windcon","commit_stats":null,"previous_names":[],"tags_count":2,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/squeek502%2Flua-windcon","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/squeek502%2Flua-windcon/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/squeek502%2Flua-windcon/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/squeek502%2Flua-windcon/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/squeek502","download_url":"https://codeload.github.com/squeek502/lua-windcon/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":245224581,"owners_count":20580367,"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":[],"created_at":"2024-10-14T20:06:27.418Z","updated_at":"2025-03-24T07:15:13.714Z","avatar_url":"https://github.com/squeek502.png","language":"C","funding_links":[],"categories":[],"sub_categories":[],"readme":"# lua-windcon\n\n[![Build status](https://ci.appveyor.com/api/projects/status/7ppcr73lx2hboy0a?svg=true)](https://ci.appveyor.com/project/squeek502/lua-windcon)\n\n`windcon` is a [Lua](https://www.lua.org/) module for interacting with the console on Windows.\n\n```lua\nlocal windcon = require('windcon')\n\n-- Clear the screen\nwindcon.clear()\n\n-- Get the console size\nlocal w, h = windcon.size()\n\n-- Move the cursor to the center\nwindcon.movecursor(w / 2, h / 2)\n\n-- Hide the cursor\nwindcon.showcursor(false)\n```\n\n## Installation\nWith [Luarocks](https://luarocks.org/modules/squeek502/windcon):\n\n```\nluarocks install windcon\n```\n\n## API Reference\n\n### `windcon.showcursor([state = true])`\nSets the visibility of the cursor to `state`. On success, returns `true`.\n\n### `windcon.movecursor(x, y)`\nMoves the cursor to the given coordinates. On success, returns `true`; otherwise, returns `nil, errmsg`.\n\n### `windcon.clear()`\nClears the screen. On success, returns `true`; otherwise, returns `nil, errmsg`.\n\n### `windcon.size()`\nReturns the width and height of the console.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsqueek502%2Flua-windcon","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fsqueek502%2Flua-windcon","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsqueek502%2Flua-windcon/lists"}