• Stars
    star
    217
  • Rank 175,846 (Top 4 %)
  • Language
    Go
  • License
    Other
  • Created about 4 years ago
  • Updated about 1 month ago

Reviews

There are no reviews yet. Be the first to send feedback to the community and the maintainers!

Repository Details

A graphical terminal emulator for Linux using Fyne

Code Status Build Status Coverage Status Join us on Slack

Fyne Terminal

A terminal emulator using the Fyne toolkit, supports Linux, macOS, Windows and BSD.

Running on Linux with a custom zsh theme. screenshot

Running on macOS with a powerlevel10k zsh theme and classic style. screenshot

Running on Windows with PowerShell running inside. screenshot

Installing on command line

Just use the go get command (you'll need a Go and C compiler installed first):

go get github.com/fyne-io/terminal/cmd/fyneterm

Installing as an app

To get the app installed alongside your other applications (with metadata, icons etc), use the fyne tool, as illustrated below:

$ go get fyne.io/fyne/v2/cmd/fyne
$ fyne get github.com/fyne-io/terminal/cmd/fyneterm

TODO

There are lots of great things that could be added to this app. Already planned is:

  • Tabs
  • Scroll-back
  • Background and font/size customisation
  • Split panels
  • Windows support
  • Copy and Paste

Library

You can also use this project as a library to create your own terminal based applications, using the import path "github.com/fyne-io/terminal".

There are two modes, using the default shell (macOS and Linux) or connecting to a remote shell.

Local Shell

To load a terminal widget and launch the current shell (works on macOS and Linux) use the RunLocalShell method after creating a Terminal, as follows:

	// win is a fyne.Window created to hold the content
	t := terminal.New()
	w.SetContent(t)

	go func() {
		_ = t.RunLocalShell()
		a.Quit()
	}()
	w.ShowAndRun()

Remote connection

For example to open a terminal to an SSH connection that you have created:

	// session is an *ssh.Session from golang.org/x/crypto/ssh
	// win is a fyne.Window created to hold the content
	in, _ := session.StdinPipe()
	out, _ := session.StdoutPipe()

	go session.Run("$SHELL || bash")

	t := terminal.New()
	w.SetContent(t)

	go func() {
		_ = t.RunWithConnection(in, out)
		a.Quit()
	}()
	w.ShowAndRun()

More Repositories

1

fyne

Cross platform GUI toolkit in Go inspired by Material Design
Go
22,970
star
2

examples

Examples apps using the Fyne toolkit
Go
578
star
3

fynedesk

A full desktop environment for Linux/Unix using Fyne
Go
526
star
4

fyne-cross

Cross compiler tool for Fyne apps
Go
217
star
5

fyne-x

Community extensions to the cross platform GUI in Go based on Material Design
Go
209
star
6

defyne

The Fyne IDE
Go
162
star
7

calculator

Fyne Calculator application
Go
45
star
8

developer.fyne.io

Fyne developer documentation website
HTML
27
star
9

solitaire

Fyne solitaire application
Go
24
star
10

pixeledit

A image pixel editing app
Go
20
star
11

apps

Fyne App Browser
Go
18
star
12

fin

A Fyne login manager for linux desktop computers
Go
17
star
13

apps.fyne.io

A central listing site for available Fyne applications
CSS
17
star
14

fyne-io.github.io

Fyne.io Website
SCSS
15
star
15

7guis

Fyne implementation of 7GUIs: A GUI Programming Benchmark - https://eugenkiss.github.io/7guis/
Go
13
star
16

life

Fyne game of life simulation
Go
11
star
17

flatpak_demo

A demo of a Fyne application packaged as a Flatpak.
Go
6
star
18

gomobile-bridge

A bridge module for Fyne based mobile apps and libraries that rely on gomobile
Go
6
star
19

setup

Helper tools for getting your development environment set up for Fyne
Go
4
star
20

demo.fyne.io

Fyne website to demo running inside a browser
JavaScript
3
star
21

image

Collection of image codecs useful in GUI apps
Go
3
star
22

fyne-cross-images

Repository for managing fyne-cross images
Dockerfile
3
star
23

tour.fyne.io

A web based tour of the Fyne toolkit - replaced by developer.fyne.io/tour/
Go
3
star
24

proposals

Proposals that we are working on for future releases
3
star
25

docs.fyne.io

Documentation website
SCSS
3
star
26

tutorials

Source code for all of the YouTube / https://developer.fyne.io tutorials
Go
2
star
27

tools

Toolchain and helpful commands for building and managing Fyne apps
Go
2
star
28

conf.fyne.io

Website for Fyne Conference information
HTML
1
star
29

cloud

Cloud providers and helpers for the Fyne toolkit
Go
1
star