{"id":18377501,"url":"https://github.com/mcsmanager/pty","last_synced_at":"2026-01-12T06:37:28.747Z","repository":{"id":41381413,"uuid":"509301688","full_name":"MCSManager/PTY","owner":"MCSManager","description":"Cross-platform pseudo-teletype application","archived":false,"fork":false,"pushed_at":"2024-09-29T09:51:39.000Z","size":2180,"stargazers_count":25,"open_issues_count":0,"forks_count":7,"subscribers_count":2,"default_branch":"master","last_synced_at":"2024-12-06T00:12:07.583Z","etag":null,"topics":["console","go","pseudo-teletype","pty","teletype","terminal"],"latest_commit_sha":null,"homepage":"https://github.com/MCSManager/pty","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/MCSManager.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":"2022-07-01T02:57:39.000Z","updated_at":"2024-11-14T09:12:38.000Z","dependencies_parsed_at":"2024-06-19T06:16:01.414Z","dependency_job_id":"5febe14d-4fcf-4227-a8e4-dd3b12d8ff8b","html_url":"https://github.com/MCSManager/PTY","commit_stats":{"total_commits":190,"total_committers":4,"mean_commits":47.5,"dds":"0.25263157894736843","last_synced_commit":"8dbfffd872f39da57f024f19db8c7f6128a97809"},"previous_names":[],"tags_count":20,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/MCSManager%2FPTY","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/MCSManager%2FPTY/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/MCSManager%2FPTY/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/MCSManager%2FPTY/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/MCSManager","download_url":"https://codeload.github.com/MCSManager/PTY/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":230454431,"owners_count":18228392,"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":["console","go","pseudo-teletype","pty","teletype","terminal"],"created_at":"2024-11-06T00:28:19.949Z","updated_at":"2026-01-12T06:37:28.736Z","avatar_url":"https://github.com/MCSManager.png","language":"Go","readme":"\n# Pseudo-teletype App\n\n[![--](https://img.shields.io/badge/Go_Version-1.19-green.svg)](https://github.com/MCSManager)\n[![--](https://img.shields.io/badge/Support-Windows/Linux-yellow.svg)](https://github.com/MCSManager)\n[![--](https://img.shields.io/badge/License-MIT-red.svg)](https://github.com/MCSManager)\n\n\nEnglish | [简体中文](README_CN.md)\n\n\u003cbr /\u003e\n\n## What is PTY?\n\n\n\u003cdiv align=center\u003e\n\n![terminal image](https://user-images.githubusercontent.com/18360009/202891148-e7e5bf63-c4a9-454f-8f62-c91dc594cefa.png)\n\n\n\u003c/div\u003e\n\n\n\ntty = \"teletype\"，pty = \"pseudo-teletype\"\n\nIn UNIX, /dev/tty\\* is any device that acts like a \"teletype\"\n\nA pty is a pseudotty, a device entry that acts like a terminal to the process reading and writing there,\nbut is managed by something else.\nThey first appeared for X Window and screen and the like,\nwhere you needed something that acted like a terminal but could be used from another program.\n\n\u003cbr /\u003e\n\n## Quickstart\n\nStart a PTY and set window size.\n\n- Note: -cmd receives an array, and the parameters of the command are passed in the form of an array and needs to be serialized, such as：`[\\\"java\\\",\\\"-jar\\\",\\\"ser.jar\\\",\\\"nogui\\\"]`\n\n```bash\ngo build\n./pty -dir \".\" -cmd [\\\"bash\\\"] -size 50,50\n```\n\nYou can execute any command, just like the SSH terminal.\n\n```\nping google.com\ntop\nhtop\n```\n\n\u003cbr /\u003e\n\n## Flags:\n\n```\n  -cmd string\n        command\n  -coder string\n        Coder (default \"UTF-8\")\n  -dir string\n        command work path (default \".\")\n  -size string\n        Initialize pty size, stdin will be forwarded directly (default \"50,50\")\n```\n\n\u003cbr /\u003e\n\n## MCSManager\n\nMCSManager is a Distributed, Docker-supported, Multilingual, and Lightweight control panel for Minecraft server and all console programs.\n\nThis application will provide PTY functionality for MCSManager,\nit is specifically designed for MCSManager,\nyou can also try porting to your own application.\n\nMore info: [https://github.com/mcsmanager/mcsmanager](https://github.com/mcsmanager/mcsmanager)\n\n\u003cbr /\u003e\n\n## Contributing\n\nInterested in getting involved?\n\n- If you want to add a new feature, please create an issue first to describe the new feature, as well as the implementation approach. Once a proposal is accepted, create an implementation of the new features and submit it as a pull request.\n- If you are just fixing bugs, you can simply submit PR.\n\n\u003cbr /\u003e\n\n## MIT license\n\nReleased under the [MIT License](https://opensource.org/licenses/MIT).\n\nCopyright 2022 [zijiren233](https://github.com/zijiren233) and contributors.\n","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmcsmanager%2Fpty","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fmcsmanager%2Fpty","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmcsmanager%2Fpty/lists"}