Skip to content

Commit

Permalink
move set content to the end.
Browse files Browse the repository at this point in the history
  • Loading branch information
figuerom16 committed Jan 2, 2024
1 parent f852b0f commit 929ec16
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -63,12 +63,13 @@ use the `RunLocalShell` method after creating a `Terminal`, as follows:
```go
// win is a fyne.Window created to hold the content
t := terminal.New()
w.SetContent(t)

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

w.SetContent(t)
w.ShowAndRun()
```

Expand All @@ -85,7 +86,6 @@ For example to open a terminal to an SSH connection that you have created:
go session.Run("$SHELL || bash")

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

go func() {
_ = t.RunWithConnection(in, out)
Expand All @@ -108,6 +108,6 @@ For example to open a terminal to an SSH connection that you have created:
}()
t.AddListener(ch)

// Run the app
w.SetContent(t)
w.ShowAndRun()
```

0 comments on commit 929ec16

Please sign in to comment.