{"id":13640200,"url":"https://github.com/fyne-io/terminal","last_synced_at":"2025-05-15T22:12:10.138Z","repository":{"id":37248480,"uuid":"242604526","full_name":"fyne-io/terminal","owner":"fyne-io","description":"A graphical terminal emulator for Linux using Fyne","archived":false,"fork":false,"pushed_at":"2025-04-18T15:05:03.000Z","size":13696,"stargazers_count":277,"open_issues_count":18,"forks_count":41,"subscribers_count":10,"default_branch":"master","last_synced_at":"2025-04-19T04:37:51.579Z","etag":null,"topics":["cross-platform","fyne","go","golang","hacktoberfest"],"latest_commit_sha":null,"homepage":"","language":"Go","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"other","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/fyne-io.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,"zenodo":null}},"created_at":"2020-02-23T22:56:26.000Z","updated_at":"2025-04-18T15:05:06.000Z","dependencies_parsed_at":"2023-10-15T14:57:26.131Z","dependency_job_id":"fd366876-3e70-48f7-bdc0-7b9e35a011d6","html_url":"https://github.com/fyne-io/terminal","commit_stats":{"total_commits":317,"total_committers":19,"mean_commits":16.68421052631579,"dds":0.637223974763407,"last_synced_commit":"9755d1f0986a3c6f29dbbddca2aae5058e70ce5a"},"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/fyne-io%2Fterminal","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/fyne-io%2Fterminal/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/fyne-io%2Fterminal/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/fyne-io%2Fterminal/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/fyne-io","download_url":"https://codeload.github.com/fyne-io/terminal/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":254430335,"owners_count":22069909,"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":["cross-platform","fyne","go","golang","hacktoberfest"],"created_at":"2024-08-02T01:01:08.797Z","updated_at":"2025-05-15T22:12:05.129Z","avatar_url":"https://github.com/fyne-io.png","language":"Go","funding_links":[],"categories":["Uncategorized"],"sub_categories":["Uncategorized"],"readme":"\u003cp align=\"center\"\u003e\n  \u003ca href=\"https://goreportcard.com/report/github.com/fyne-io/terminal\"\u003e\u003cimg src=\"https://goreportcard.com/badge/github.com/fyne-io/terminal\" alt=\"Code Status\" /\u003e\u003c/a\u003e\n  \u003ca href=\"https://github.com/fyne-io/terminal/actions\"\u003e\u003cimg src=\"https://github.com/fyne-io/terminal/workflows/Platform%20Tests/badge.svg\" alt=\"Build Status\" /\u003e\u003c/a\u003e\n  \u003ca href='https://coveralls.io/github/fyne-io/terminal?branch=master'\u003e\u003cimg src='https://coveralls.io/repos/github/fyne-io/terminal/badge.svg?branch=master' alt='Coverage Status' /\u003e\u003c/a\u003e\n  \u003ca href='http://gophers.slack.com/messages/fyne'\u003e\u003cimg src='https://img.shields.io/badge/join-us%20on%20slack-gray.svg?longCache=true\u0026logo=slack\u0026colorB=blue' alt='Join us on Slack' /\u003e\u003c/a\u003e\n\u003c/p\u003e\n\n# Fyne Terminal\n\nA terminal emulator using the Fyne toolkit, supports Linux, macOS, Windows and BSD.\n\nRunning on Linux with a custom zsh theme.\n\u003cimg alt=\"screenshot\" src=\"img/linux.png\" width=\"929\" /\u003e\n\nRunning on macOS with a powerlevel10k zsh theme and classic style.\n\u003cimg alt=\"screenshot\" src=\"img/macos.png\" width=\"912\" /\u003e\n\nRunning on Windows with PowerShell running inside.\n\u003cimg alt=\"screenshot\" src=\"img/windows.png\" width=\"900\" /\u003e\n\n# Installing on command line\n\nJust use the go get command (you'll need a Go and C compiler installed first):\n\n```\ngo install github.com/fyne-io/terminal/cmd/fyneterm@latest\n```\n\n# Installing as an app\n\nTo get the app installed alongside your other applications (with metadata, icons etc),\nuse the `fyne` tool, as illustrated below:\n\n```\n$ go get fyne.io/fyne/v2/cmd/fyne\n$ fyne get github.com/fyne-io/terminal/cmd/fyneterm\n```\n\n# TODO\n\nThere are lots of great things that could be added to this app.\nAlready planned is:\n\n* Tabs\n* Scroll-back\n* Background and font/size customisation\n* Split panels\n\n# Library\n\nYou can also use this project as a library to create your own\nterminal based applications, using the import path \"github.com/fyne-io/terminal\".\n\nThere are two modes, using the default shell or connecting to a remote shell.\n\n## Local Shell\n\nTo load a terminal widget and launch the current shell (works on macOS and Linux;\non Windows, it always uses PowerShell) use the `RunLocalShell` method after creating\na `Terminal`, as follows:\n\n```go\n\t// run new terminal and close app on terminal exit.\n\tt := terminal.New()\n\tgo func() {\n\t\t_ = t.RunLocalShell()\n\t\tlog.Printf(\"Terminal's shell exited with exit code: %d\", t.ExitCode())\n\t\ta.Quit()\n\t}()\n\n\t// w is a fyne.Window created to hold the content\n\tw.SetContent(t)\n\tw.ShowAndRun()\n```\n\n## Remote connection\n\nFor example to open a terminal to an SSH connection that you have created:\n\n```go\n\t// session is an *ssh.Session from golang.org/x/crypto/ssh\n\tin, _ := session.StdinPipe()\n\tout, _ := session.StdoutPipe()\n\tgo session.Run(\"$SHELL || bash\")\n\n\t// run new terminal and close app on terminal exit.\n\tt := terminal.New()\n\tgo func() {\n\t\t_ = t.RunWithConnection(in, out)\n\t\ta.Quit()\n\t}()\n\n\t// OPTIONAL: dynamically resize the terminal session\n\tch := make(chan terminal.Config)\n\tgo func() {\n\t\trows, cols := uint(0), uint(0)\n\t\tfor {\n\t\t\tconfig := \u003c-ch\n\t\t\tif rows == config.Rows \u0026\u0026 cols == config.Columns {\n\t\t\t\tcontinue\n\t\t\t}\n\t\t\trows, cols = config.Rows, config.Columns\n\t\t\tsession.WindowChange(int(rows), int(cols))\n\t\t}\n\t}()\n\tt.AddListener(ch)\n\n\t// w is a fyne.Window created to hold the content\n\tw.SetContent(t)\n\tw.ShowAndRun()\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ffyne-io%2Fterminal","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Ffyne-io%2Fterminal","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ffyne-io%2Fterminal/lists"}