{"id":22214173,"url":"https://github.com/grimdork/tcon","last_synced_at":"2025-03-25T06:24:28.444Z","repository":{"id":57568830,"uuid":"336495561","full_name":"grimdork/tcon","owner":"grimdork","description":"A simple wrapper for tcell-based text-only interfaces.","archived":false,"fork":false,"pushed_at":"2023-02-25T07:40:33.000Z","size":34,"stargazers_count":1,"open_issues_count":2,"forks_count":0,"subscribers_count":2,"default_branch":"main","last_synced_at":"2025-01-30T05:43:37.042Z","etag":null,"topics":["handler","tcell","terminal-based","wrapper"],"latest_commit_sha":null,"homepage":"","language":"Go","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/grimdork.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":"2021-02-06T08:56:48.000Z","updated_at":"2021-10-28T23:40:43.000Z","dependencies_parsed_at":"2024-06-20T14:03:36.361Z","dependency_job_id":"8c4cb28f-53ee-49a9-b13e-542f85716a9e","html_url":"https://github.com/grimdork/tcon","commit_stats":null,"previous_names":[],"tags_count":8,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/grimdork%2Ftcon","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/grimdork%2Ftcon/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/grimdork%2Ftcon/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/grimdork%2Ftcon/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/grimdork","download_url":"https://codeload.github.com/grimdork/tcon/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":245409691,"owners_count":20610585,"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":["handler","tcell","terminal-based","wrapper"],"created_at":"2024-12-02T21:14:17.644Z","updated_at":"2025-03-25T06:24:28.417Z","avatar_url":"https://github.com/grimdork.png","language":"Go","funding_links":[],"categories":[],"sub_categories":[],"readme":"# tcon\n\nA simple wrapper for tcell-based text-only interfaces.\n\n## Requirements\n\n-   `go get github.com/gdamore/tcell`\n\n## What and why?\n\nI wanted a terminal-based environment with a fixed-position command line and a large text area to display text. Other packages were mimicking GUIs in text mode, but that's more than I needed for some of my projects.\n\n## Features\n\n-   Command box with editable input and history.\n-   Text output with word wrap and less-mode.\n-   Title and status lines.\n-   Callbacks for input and command handling.\n\n## Keyboard shortcuts\n\nThere is a separate handler for different types of input. These are:\n\n-   OnCommandFunc: This callback receives a string with the command buffer. The rest is up to the user.\n-   OnRuneFunc: Filter callback to allow special handling while typing. Optionally return 0 to skip symbols.\n-   OnFunc: The generic callback, used with SetTabFunc() and SetEscFunc().\n-   OnCtrlFunc: Handler for control keys.\n\nNOTE: Remember to set up a key or command to call the Quit() method.\n\n## TODO\n\n(Possible) future enhancements:\n\n-   Coloured status and mode\n-   Command line manipulation in the filter?\n-   Built-in TAB-completion?\n-   Figure out why resizing sometimes messes up things\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fgrimdork%2Ftcon","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fgrimdork%2Ftcon","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fgrimdork%2Ftcon/lists"}