{"id":20942516,"url":"https://github.com/userexistserror/conpty","last_synced_at":"2025-10-09T14:41:59.876Z","repository":{"id":38357211,"uuid":"293606048","full_name":"UserExistsError/conpty","owner":"UserExistsError","description":"Windows Pseudo Console (ConPTY) for Golang","archived":false,"fork":false,"pushed_at":"2024-07-09T18:43:02.000Z","size":12,"stargazers_count":33,"open_issues_count":0,"forks_count":10,"subscribers_count":3,"default_branch":"master","last_synced_at":"2025-06-15T23:04:36.644Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"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/UserExistsError.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-09-07T18:42:13.000Z","updated_at":"2025-03-15T21:46:31.000Z","dependencies_parsed_at":"2023-12-02T19:22:34.349Z","dependency_job_id":"8db88c28-b38a-4dab-8bd1-a31e2a7251ae","html_url":"https://github.com/UserExistsError/conpty","commit_stats":null,"previous_names":[],"tags_count":5,"template":false,"template_full_name":null,"purl":"pkg:github/UserExistsError/conpty","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/UserExistsError%2Fconpty","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/UserExistsError%2Fconpty/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/UserExistsError%2Fconpty/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/UserExistsError%2Fconpty/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/UserExistsError","download_url":"https://codeload.github.com/UserExistsError/conpty/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/UserExistsError%2Fconpty/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":279001507,"owners_count":26083118,"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","status":"online","status_checked_at":"2025-10-09T02:00:07.460Z","response_time":59,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"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-11-18T23:27:54.850Z","updated_at":"2025-10-09T14:41:59.840Z","avatar_url":"https://github.com/UserExistsError.png","language":"Go","readme":"# conpty\n\nWindows Pseudo Console (ConPTY) for Golang\n\nSee:\n\nhttps://devblogs.microsoft.com/commandline/windows-command-line-introducing-the-windows-pseudo-console-conpty/\n\n## Usage\n\n```go\npackage main\n\nimport (\n\t\"context\"\n\t\"io\"\n\t\"log\"\n\t\"os\"\n\n\t\"github.com/UserExistsError/conpty\"\n)\n\nfunc main() {\n\tcommandLine := `c:\\windows\\system32\\cmd.exe`\n\tcpty, err := conpty.Start(commandLine)\n\tif err != nil {\n\t\tlog.Fatalf(\"Failed to spawn a pty:  %v\", err)\n\t}\n\tdefer cpty.Close()\n\n\tgo io.Copy(os.Stdout, cpty)\n\tgo io.Copy(cpty, os.Stdin)\n\n\texitCode, err := cpty.Wait(context.Background())\n\tif err != nil {\n\t\tlog.Fatalf(\"Error: %v\", err)\n\t}\n\tlog.Printf(\"ExitCode: %d\", exitCode)\n}\n```","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fuserexistserror%2Fconpty","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fuserexistserror%2Fconpty","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fuserexistserror%2Fconpty/lists"}