Skip to content

Commit

Permalink
Using Go required by develop Fyne
Browse files Browse the repository at this point in the history
  • Loading branch information
andydotxyz committed Jul 5, 2023
1 parent f920dbb commit 3508925
Show file tree
Hide file tree
Showing 4 changed files with 5 additions and 10 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/platform_tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ jobs:
strategy:
fail-fast: false
matrix:
go-version: [1.14.x, 1.18.x]
go-version: [1.17.x, 1.20.x]
os: [ubuntu-latest, macos-latest]

steps:
Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/static_analysis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ jobs:
- uses: actions/checkout@v2
- uses: WillAbides/setup-go-faster@v1.5.0
with:
go-version: '1.16.x'
go-version: '1.17.x'

- name: Get dependencies
run: |
Expand All @@ -33,4 +33,4 @@ jobs:
run: golint -set_exit_status $(go list -tags ci ./...)

- name: Staticcheck
run: staticcheck -go 1.12 ./...
run: staticcheck -go 1.17 ./...
2 changes: 1 addition & 1 deletion go.mod
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
module github.com/fyne-io/terminal

go 1.13
go 1.17

require (
fyne.io/fyne/v2 v2.3.6-0.20230704203313-e050d7994adc
Expand Down
7 changes: 1 addition & 6 deletions output.go
Original file line number Diff line number Diff line change
Expand Up @@ -133,12 +133,7 @@ func (t *Terminal) handleOutputChar(r rune) {
t.content.Rows[t.cursorRow].Cells = append(t.content.Rows[t.cursorRow].Cells, newCell)
}

cell := t.content.Rows[t.cursorRow].Cells[t.cursorCol]
if cell.Rune != r || cell.Style.TextColor() != cellStyle.FGColor || cell.Style.BackgroundColor() != cellStyle.BGColor {
cell.Rune = r
cell.Style = cellStyle
t.content.SetCell(t.cursorRow, t.cursorCol, cell)
}
t.content.SetCell(t.cursorRow, t.cursorCol, widget.TextGridCell{Rune: r, Style: cellStyle})
t.cursorCol++
}

Expand Down

0 comments on commit 3508925

Please sign in to comment.