diff --git a/.builds/amd64_freebsd.yml b/.builds/amd64_freebsd.yml deleted file mode 100644 index 7c473cf..0000000 --- a/.builds/amd64_freebsd.yml +++ /dev/null @@ -1,14 +0,0 @@ -arch: amd64 -environment: - PROJECT_NAME: 'cview' - CGO_ENABLED: '1' - GO111MODULE: 'on' -image: freebsd/latest -packages: - - go -sources: - - https://git.sr.ht/~tslocum/cview -tasks: - - test: | - cd $PROJECT_NAME - go test ./... diff --git a/.builds/amd64_linux_alpine.yml b/.builds/amd64_linux_alpine.yml deleted file mode 100644 index fe64726..0000000 --- a/.builds/amd64_linux_alpine.yml +++ /dev/null @@ -1,14 +0,0 @@ -arch: x86_64 -environment: - PROJECT_NAME: 'cview' - CGO_ENABLED: '1' - GO111MODULE: 'on' -image: alpine/edge -packages: - - go -sources: - - https://git.sr.ht/~tslocum/cview -tasks: - - test: | - cd $PROJECT_NAME - go test ./... diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml new file mode 100644 index 0000000..e66f95d --- /dev/null +++ b/.gitlab-ci.yml @@ -0,0 +1,8 @@ +stages: + - test + +test: + image: golang:latest + stage: test + script: + - go test -v ./... diff --git a/CONTRIBUTING.md b/CONTRIBUTING.md index 95824c4..ec583a2 100644 --- a/CONTRIBUTING.md +++ b/CONTRIBUTING.md @@ -5,15 +5,11 @@ suggestions and patches. Please include as much relevant information as possible. -Review project [documentation](https://godoc.org/git.sr.ht/~tslocum/cview) +Review project [documentation](https://godoc.org/gitlab.com/tslocum/cview) before submitting an issue. -Share issues and suggestions on the [issue tracker](https://todo.sr.ht/~tslocum/cview). +Share issues and suggestions on the [issue tracker](https://gitlab.com/tslocum/cview/issues). # Patches (pull requests) -Send patches to the [cview-dev](https://lists.sr.ht/~tslocum/cview-dev) mailing -list. - -See [git-send-email.io](https://git-send-email.io) for information on sending -patches via email. +Submit patches as [pull requests](https://gitlab.com/tslocum/cview/merge_requests). diff --git a/FORK.md b/FORK.md index 5b5f80a..c9f3d6d 100644 --- a/FORK.md +++ b/FORK.md @@ -1,5 +1,5 @@ This document explains why [tview](https://github.com/rivo/tview) was forked to -create [cview](https://git.sr.ht/~tslocum/cview) and tracks which tview pull +create [cview](https://gitlab.com/tslocum/cview) and tracks which tview pull requests have been merged into cview. # Why fork? diff --git a/README.md b/README.md index 5dca57d..28351e0 100644 --- a/README.md +++ b/README.md @@ -1,18 +1,18 @@ # cview -[![GoDoc](https://godoc.org/git.sr.ht/~tslocum/cview?status.svg)](https://godoc.org/git.sr.ht/~tslocum/cview) -[![builds.sr.ht status](https://builds.sr.ht/~tslocum/cview.svg)](https://builds.sr.ht/~tslocum/cview) +[![GoDoc](https://godoc.org/gitlab.com/tslocum/cview?status.svg)](https://godoc.org/gitlab.com/tslocum/cview) +[![CI status](https://gitlab.com/tslocum/cview/badges/master/pipeline.svg)](https://gitlab.com/tslocum/cview/commits/master) [![Donate](https://img.shields.io/liberapay/receives/rocketnine.space.svg?logo=liberapay)](https://liberapay.com/rocketnine.space) Terminal-based user interface toolkit This package is a fork of [tview](https://github.com/rivo/tview). -See [FORK.md](https://man.sr.ht/~tslocum/cview/FORK.md) for more information. +See [FORK.md](https://gitlab.com/tslocum/cview/blob/master/FORK.md) for more information. ## Demo Try the demo: ```ssh cview.rocketnine.space -p 20000``` -[![Recording of presentation demo](https://git.sr.ht/~tslocum/cview/blob/master/cview.gif)](https://git.sr.ht/~tslocum/cview/tree/master/demos/presentation) +[![Recording of presentation demo](https://gitlab.com/tslocum/cview/blob/master/cview.gif)](https://gitlab.com/tslocum/cview/tree/master/demos/presentation) ## Features @@ -29,12 +29,12 @@ Available widgets: Widgets may be customized and extended to suit any application. -[Mouse support](https://godoc.org/git.sr.ht/~tslocum/cview#hdr-Mouse_Support) is available. +[Mouse support](https://godoc.org/gitlab.com/tslocum/cview#hdr-Mouse_Support) is available. ## Installation ```bash -go get git.sr.ht/~tslocum/cview +go get gitlab.com/tslocum/cview ``` ## Hello World @@ -45,7 +45,7 @@ This basic example creates a box titled "Hello, World!" and displays it in your package main import ( - "git.sr.ht/~tslocum/cview" + "gitlab.com/tslocum/cview" ) func main() { @@ -63,7 +63,9 @@ the program in the "demos/presentation" subdirectory. ## Documentation -Package documentation is available on [godoc](https://godoc.org/git.sr.ht/~tslocum/cview). +Package documentation is available on [godoc](https://godoc.org/gitlab.com/tslocum/cview). + +An [introduction tutorial](https://github.com/rivo/tview) is also available. ## Dependencies @@ -72,10 +74,5 @@ This package is based on [github.com/gdamore/tcell](https://github.com/gdamore/t ## Support -[CONTRIBUTING.md](https://man.sr.ht/~tslocum/cview/CONTRIBUTING.md) describes how to share +[CONTRIBUTING.md](https://gitlab.com/tslocum/cview/blob/master/CONTRIBUTING.md) describes how to share issues, suggestions and patches (pull requests). - -cview has two mailing lists: - -- [cview-discuss](https://lists.sr.ht/~tslocum/cview-discuss) for general discussion -- [cview-dev](https://lists.sr.ht/~tslocum/cview-dev) for development discussion diff --git a/box.go b/box.go index ed0bc71..5db3a8a 100644 --- a/box.go +++ b/box.go @@ -11,7 +11,7 @@ import ( // Note that all classes which subclass from Box will also have access to its // functions. // -// See https://git.sr.ht/~tslocum/cview/wiki/Box for an example. +// See https://gitlab.com/tslocum/cview/wiki/Box for an example. type Box struct { // The position of the rect. x, y, width, height int diff --git a/button.go b/button.go index 0ed28bb..762dc96 100644 --- a/button.go +++ b/button.go @@ -6,7 +6,7 @@ import ( // Button is labeled box that triggers an action when selected. // -// See https://git.sr.ht/~tslocum/cview/wiki/Button for an example. +// See https://gitlab.com/tslocum/cview/wiki/Button for an example. type Button struct { *Box diff --git a/checkbox.go b/checkbox.go index 086bfb9..6a056d3 100644 --- a/checkbox.go +++ b/checkbox.go @@ -7,7 +7,7 @@ import ( // Checkbox implements a simple box for boolean values which can be checked and // unchecked. // -// See https://git.sr.ht/~tslocum/cview/wiki/Checkbox for an example. +// See https://gitlab.com/tslocum/cview/wiki/Checkbox for an example. type Checkbox struct { *Box diff --git a/demos/box/main.go b/demos/box/main.go index efa807e..9c0df89 100644 --- a/demos/box/main.go +++ b/demos/box/main.go @@ -3,7 +3,7 @@ package main import ( "github.com/gdamore/tcell" - "git.sr.ht/~tslocum/cview" + "gitlab.com/tslocum/cview" ) func main() { diff --git a/demos/button/main.go b/demos/button/main.go index 757835c..729b269 100644 --- a/demos/button/main.go +++ b/demos/button/main.go @@ -1,7 +1,7 @@ // Demo code for the Button primitive. package main -import "git.sr.ht/~tslocum/cview" +import "gitlab.com/tslocum/cview" func main() { app := cview.NewApplication() diff --git a/demos/checkbox/main.go b/demos/checkbox/main.go index 6ef31ce..d9e04e5 100644 --- a/demos/checkbox/main.go +++ b/demos/checkbox/main.go @@ -1,7 +1,7 @@ // Demo code for the Checkbox primitive. package main -import "git.sr.ht/~tslocum/cview" +import "gitlab.com/tslocum/cview" func main() { app := cview.NewApplication() diff --git a/demos/dropdown/main.go b/demos/dropdown/main.go index 23b8279..650ffa8 100644 --- a/demos/dropdown/main.go +++ b/demos/dropdown/main.go @@ -1,7 +1,7 @@ // Demo code for the DropDown primitive. package main -import "git.sr.ht/~tslocum/cview" +import "gitlab.com/tslocum/cview" func main() { app := cview.NewApplication() diff --git a/demos/flex/main.go b/demos/flex/main.go index 9b81194..ae56296 100644 --- a/demos/flex/main.go +++ b/demos/flex/main.go @@ -2,7 +2,7 @@ package main import ( - "git.sr.ht/~tslocum/cview" + "gitlab.com/tslocum/cview" ) func main() { diff --git a/demos/form/main.go b/demos/form/main.go index 80d6df9..0318025 100644 --- a/demos/form/main.go +++ b/demos/form/main.go @@ -2,7 +2,7 @@ package main import ( - "git.sr.ht/~tslocum/cview" + "gitlab.com/tslocum/cview" ) func main() { diff --git a/demos/frame/main.go b/demos/frame/main.go index a5e5706..794b99f 100644 --- a/demos/frame/main.go +++ b/demos/frame/main.go @@ -3,7 +3,7 @@ package main import ( "github.com/gdamore/tcell" - "git.sr.ht/~tslocum/cview" + "gitlab.com/tslocum/cview" ) func main() { diff --git a/demos/grid/main.go b/demos/grid/main.go index 7a84253..f8f8add 100644 --- a/demos/grid/main.go +++ b/demos/grid/main.go @@ -2,7 +2,7 @@ package main import ( - "git.sr.ht/~tslocum/cview" + "gitlab.com/tslocum/cview" ) func main() { diff --git a/demos/inputfield/autocomplete/main.go b/demos/inputfield/autocomplete/main.go index 9ca78e7..658eb36 100644 --- a/demos/inputfield/autocomplete/main.go +++ b/demos/inputfield/autocomplete/main.go @@ -4,7 +4,7 @@ import ( "strings" "github.com/gdamore/tcell" - "git.sr.ht/~tslocum/cview" + "gitlab.com/tslocum/cview" ) // 1,000 most common English words. diff --git a/demos/inputfield/autocompleteasync/main.go b/demos/inputfield/autocompleteasync/main.go index 27c67a9..62ed6c6 100644 --- a/demos/inputfield/autocompleteasync/main.go +++ b/demos/inputfield/autocompleteasync/main.go @@ -8,7 +8,7 @@ import ( "sync" "github.com/gdamore/tcell" - "git.sr.ht/~tslocum/cview" + "gitlab.com/tslocum/cview" ) type company struct { diff --git a/demos/inputfield/simple/main.go b/demos/inputfield/simple/main.go index ba06379..a10ca2e 100644 --- a/demos/inputfield/simple/main.go +++ b/demos/inputfield/simple/main.go @@ -3,7 +3,7 @@ package main import ( "github.com/gdamore/tcell" - "git.sr.ht/~tslocum/cview" + "gitlab.com/tslocum/cview" ) func main() { diff --git a/demos/list/main.go b/demos/list/main.go index c430afa..dd1cc31 100644 --- a/demos/list/main.go +++ b/demos/list/main.go @@ -2,7 +2,7 @@ package main import ( - "git.sr.ht/~tslocum/cview" + "gitlab.com/tslocum/cview" ) func main() { diff --git a/demos/modal/main.go b/demos/modal/main.go index dfc9c25..04dc401 100644 --- a/demos/modal/main.go +++ b/demos/modal/main.go @@ -2,7 +2,7 @@ package main import ( - "git.sr.ht/~tslocum/cview" + "gitlab.com/tslocum/cview" ) func main() { diff --git a/demos/pages/main.go b/demos/pages/main.go index fd8c104..279aeea 100644 --- a/demos/pages/main.go +++ b/demos/pages/main.go @@ -4,7 +4,7 @@ package main import ( "fmt" - "git.sr.ht/~tslocum/cview" + "gitlab.com/tslocum/cview" ) const pageCount = 5 diff --git a/demos/presentation/center.go b/demos/presentation/center.go index 1c75474..679abb3 100644 --- a/demos/presentation/center.go +++ b/demos/presentation/center.go @@ -1,6 +1,6 @@ package main -import "git.sr.ht/~tslocum/cview" +import "gitlab.com/tslocum/cview" // Center returns a new primitive which shows the provided primitive in its // center, given the provided primitive's size. diff --git a/demos/presentation/code.go b/demos/presentation/code.go index aeaa82b..81c5f6b 100644 --- a/demos/presentation/code.go +++ b/demos/presentation/code.go @@ -3,7 +3,7 @@ package main import ( "fmt" - "git.sr.ht/~tslocum/cview" + "gitlab.com/tslocum/cview" ) // The width of the code window. diff --git a/demos/presentation/colors.go b/demos/presentation/colors.go index 1b77bf1..7e5b97b 100644 --- a/demos/presentation/colors.go +++ b/demos/presentation/colors.go @@ -4,7 +4,7 @@ import ( "strings" "github.com/gdamore/tcell" - "git.sr.ht/~tslocum/cview" + "gitlab.com/tslocum/cview" ) const colorsText = `You can use color tags almost everywhere to partially change the color of a string. Simply put a color name or hex string in square brackets to change the following characters' color. H[green]er[white]e i[yellow]s a[darkcyan]n ex[red]amp[white]le. The [black:red]tags [black:green]look [black:yellow]like [::u]this: [blue:yellow:u[] [#00ff00[]` diff --git a/demos/presentation/cover.go b/demos/presentation/cover.go index c9e119e..7f8438c 100644 --- a/demos/presentation/cover.go +++ b/demos/presentation/cover.go @@ -4,8 +4,8 @@ import ( "fmt" "strings" - "git.sr.ht/~tslocum/cview" "github.com/gdamore/tcell" + "gitlab.com/tslocum/cview" ) const logo = ` diff --git a/demos/presentation/end.go b/demos/presentation/end.go index c462cda..09419d6 100644 --- a/demos/presentation/end.go +++ b/demos/presentation/end.go @@ -4,7 +4,7 @@ import ( "fmt" "github.com/gdamore/tcell" - "git.sr.ht/~tslocum/cview" + "gitlab.com/tslocum/cview" ) // End shows the final slide. @@ -12,7 +12,7 @@ func End(nextSlide func()) (title string, content cview.Primitive) { textView := cview.NewTextView().SetDoneFunc(func(key tcell.Key) { nextSlide() }) - url := "https://git.sr.ht/~tslocum/cview" + url := "https://gitlab.com/tslocum/cview" fmt.Fprint(textView, url) return "End", Center(len(url), 1, textView) } diff --git a/demos/presentation/flex.go b/demos/presentation/flex.go index 8091c73..99fcf49 100644 --- a/demos/presentation/flex.go +++ b/demos/presentation/flex.go @@ -2,7 +2,7 @@ package main import ( "github.com/gdamore/tcell" - "git.sr.ht/~tslocum/cview" + "gitlab.com/tslocum/cview" ) // Flex demonstrates flexbox layout. diff --git a/demos/presentation/form.go b/demos/presentation/form.go index 74340e9..2d222d3 100644 --- a/demos/presentation/form.go +++ b/demos/presentation/form.go @@ -1,13 +1,13 @@ package main import ( - "git.sr.ht/~tslocum/cview" + "gitlab.com/tslocum/cview" ) const form = `[green]package[white] main [green]import[white] ( - [red]"git.sr.ht/~tslocum/cview"[white] + [red]"gitlab.com/tslocum/cview"[white] ) [green]func[white] [yellow]main[white]() { diff --git a/demos/presentation/grid.go b/demos/presentation/grid.go index 8f5d728..a77c580 100644 --- a/demos/presentation/grid.go +++ b/demos/presentation/grid.go @@ -2,7 +2,7 @@ package main import ( "github.com/gdamore/tcell" - "git.sr.ht/~tslocum/cview" + "gitlab.com/tslocum/cview" ) // Grid demonstrates the grid layout. diff --git a/demos/presentation/helloworld.go b/demos/presentation/helloworld.go index a3fc325..27e6c64 100644 --- a/demos/presentation/helloworld.go +++ b/demos/presentation/helloworld.go @@ -2,13 +2,13 @@ package main import ( "github.com/gdamore/tcell" - "git.sr.ht/~tslocum/cview" + "gitlab.com/tslocum/cview" ) const helloWorld = `[green]package[white] main [green]import[white] ( - [red]"git.sr.ht/~tslocum/cview"[white] + [red]"gitlab.com/tslocum/cview"[white] ) [green]func[white] [yellow]main[white]() { diff --git a/demos/presentation/inputfield.go b/demos/presentation/inputfield.go index d23f629..7eb8601 100644 --- a/demos/presentation/inputfield.go +++ b/demos/presentation/inputfield.go @@ -2,7 +2,7 @@ package main import ( "github.com/gdamore/tcell" - "git.sr.ht/~tslocum/cview" + "gitlab.com/tslocum/cview" ) const inputField = `[green]package[white] main @@ -11,7 +11,7 @@ const inputField = `[green]package[white] main [red]"strconv"[white] [red]"github.com/gdamore/tcell"[white] - [red]"git.sr.ht/~tslocum/cview"[white] + [red]"gitlab.com/tslocum/cview"[white] ) [green]func[white] [yellow]main[white]() { diff --git a/demos/presentation/introduction.go b/demos/presentation/introduction.go index 44f3baf..f22b651 100644 --- a/demos/presentation/introduction.go +++ b/demos/presentation/introduction.go @@ -1,6 +1,6 @@ package main -import "git.sr.ht/~tslocum/cview" +import "gitlab.com/tslocum/cview" // Introduction returns a cview.List with the highlights of the cview package. func Introduction(nextSlide func()) (title string, content cview.Primitive) { diff --git a/demos/presentation/main.go b/demos/presentation/main.go index 80e7072..1f5957e 100644 --- a/demos/presentation/main.go +++ b/demos/presentation/main.go @@ -16,8 +16,8 @@ import ( "fmt" "strconv" - "git.sr.ht/~tslocum/cview" "github.com/gdamore/tcell" + "gitlab.com/tslocum/cview" ) // Slide is a function which returns the slide's main primitive and its title. diff --git a/demos/presentation/progressbar.go b/demos/presentation/progressbar.go index fe40461..4acd9eb 100644 --- a/demos/presentation/progressbar.go +++ b/demos/presentation/progressbar.go @@ -3,7 +3,7 @@ package main import ( "time" - "git.sr.ht/~tslocum/cview" + "gitlab.com/tslocum/cview" ) // ProgressBar demonstrates the ProgressBar. diff --git a/demos/presentation/table.go b/demos/presentation/table.go index e45d36f..7570f7a 100644 --- a/demos/presentation/table.go +++ b/demos/presentation/table.go @@ -5,7 +5,7 @@ import ( "strings" "github.com/gdamore/tcell" - "git.sr.ht/~tslocum/cview" + "gitlab.com/tslocum/cview" ) const tableData = `OrderDate|Region|Rep|Item|Units|UnitCost|Total diff --git a/demos/presentation/textview.go b/demos/presentation/textview.go index 2fa78ad..ccca782 100644 --- a/demos/presentation/textview.go +++ b/demos/presentation/textview.go @@ -5,8 +5,8 @@ import ( "strconv" "time" - "git.sr.ht/~tslocum/cview" "github.com/gdamore/tcell" + "gitlab.com/tslocum/cview" ) const textView1 = `[green]func[white] [yellow]main[white]() { @@ -65,7 +65,7 @@ const textView2 = `[green]package[white] main [red]"strconv"[white] [red]"github.com/gdamore/tcell"[white] - [red]"git.sr.ht/~tslocum/cview"[white] + [red]"gitlab.com/tslocum/cview"[white] ) [green]func[white] [yellow]main[white]() { diff --git a/demos/presentation/treeview.go b/demos/presentation/treeview.go index de1b973..6cd5a49 100644 --- a/demos/presentation/treeview.go +++ b/demos/presentation/treeview.go @@ -4,12 +4,12 @@ import ( "strings" "github.com/gdamore/tcell" - "git.sr.ht/~tslocum/cview" + "gitlab.com/tslocum/cview" ) const treeAllCode = `[green]package[white] main -[green]import[white] [red]"git.sr.ht/~tslocum/cview"[white] +[green]import[white] [red]"gitlab.com/tslocum/cview"[white] [green]func[white] [yellow]main[white]() { $$$ diff --git a/demos/primitive/main.go b/demos/primitive/main.go index 8ff2aca..2910a68 100644 --- a/demos/primitive/main.go +++ b/demos/primitive/main.go @@ -5,7 +5,7 @@ import ( "fmt" "github.com/gdamore/tcell" - "git.sr.ht/~tslocum/cview" + "gitlab.com/tslocum/cview" ) // RadioButtons implements a simple primitive for radio button selections. diff --git a/demos/progressbar/main.go b/demos/progressbar/main.go index 18f329a..0a9d4a6 100644 --- a/demos/progressbar/main.go +++ b/demos/progressbar/main.go @@ -4,7 +4,7 @@ package main import ( "time" - "git.sr.ht/~tslocum/cview" + "gitlab.com/tslocum/cview" ) func main() { diff --git a/demos/table/main.go b/demos/table/main.go index 9565dc6..bb7e3c3 100644 --- a/demos/table/main.go +++ b/demos/table/main.go @@ -5,7 +5,7 @@ import ( "strings" "github.com/gdamore/tcell" - "git.sr.ht/~tslocum/cview" + "gitlab.com/tslocum/cview" ) func main() { diff --git a/demos/textview/main.go b/demos/textview/main.go index 27da0cf..1f7adfc 100644 --- a/demos/textview/main.go +++ b/demos/textview/main.go @@ -8,7 +8,7 @@ import ( "time" "github.com/gdamore/tcell" - "git.sr.ht/~tslocum/cview" + "gitlab.com/tslocum/cview" ) const corporate = `Leverage agile frameworks to provide a robust synopsis for high level overviews. Iterative approaches to corporate strategy foster collaborative thinking to further the overall value proposition. Organically grow the holistic world view of disruptive innovation via workplace diversity and empowerment. diff --git a/demos/treeview/main.go b/demos/treeview/main.go index 6594204..c86a181 100644 --- a/demos/treeview/main.go +++ b/demos/treeview/main.go @@ -6,7 +6,7 @@ import ( "path/filepath" "github.com/gdamore/tcell" - "git.sr.ht/~tslocum/cview" + "gitlab.com/tslocum/cview" ) // Show a navigable tree view of the current directory. diff --git a/demos/unicode/main.go b/demos/unicode/main.go index 0db6637..935dc41 100644 --- a/demos/unicode/main.go +++ b/demos/unicode/main.go @@ -4,7 +4,7 @@ package main import ( "fmt" - "git.sr.ht/~tslocum/cview" + "gitlab.com/tslocum/cview" ) func main() { diff --git a/doc.go b/doc.go index a8047ff..98a16d3 100644 --- a/doc.go +++ b/doc.go @@ -38,7 +38,7 @@ world!": package main import ( - "git.sr.ht/~tslocum/cview" + "gitlab.com/tslocum/cview" ) func main() { diff --git a/doc_test.go b/doc_test.go index dda9960..30cde9b 100644 --- a/doc_test.go +++ b/doc_test.go @@ -21,7 +21,7 @@ func ExampleNewApplication() { mainLayout.AddItem(sharedTextView, 1, 0, 1, 1, 0, 0, false) // Create about layout using Grid. - aboutTextView := NewTextView().SetText("cview muti-layout application example\n\nhttps://git.sr.ht/~tslocum/cview").SetTextAlign(AlignCenter) + aboutTextView := NewTextView().SetText("cview muti-layout application example\n\nhttps://gitlab.com/tslocum/cview").SetTextAlign(AlignCenter) aboutLayout := NewGrid() aboutLayout.AddItem(aboutTextView, 0, 0, 1, 1, 0, 0, false) aboutLayout.AddItem(sharedTextView, 1, 0, 1, 1, 0, 0, false) diff --git a/dropdown.go b/dropdown.go index af4c001..4c47f72 100644 --- a/dropdown.go +++ b/dropdown.go @@ -15,7 +15,7 @@ type dropDownOption struct { // DropDown implements a selection widget whose options become visible in a // drop-down list when activated. // -// See https://git.sr.ht/~tslocum/cview/wiki/DropDown for an example. +// See https://gitlab.com/tslocum/cview/wiki/DropDown for an example. type DropDown struct { *Box diff --git a/flex.go b/flex.go index b529211..c4f6913 100644 --- a/flex.go +++ b/flex.go @@ -23,7 +23,7 @@ type flexItem struct { // distributed along that dimension depends on their layout settings, which is // either a fixed length or a proportional length. See AddItem() for details. // -// See https://git.sr.ht/~tslocum/cview/wiki/Flex for an example. +// See https://gitlab.com/tslocum/cview/wiki/Flex for an example. type Flex struct { *Box diff --git a/form.go b/form.go index 7b9c370..fba155d 100644 --- a/form.go +++ b/form.go @@ -38,7 +38,7 @@ type FormItem interface { // Checkbox. These elements can be optionally followed by one or more buttons // for which you can define form-wide actions (e.g. Save, Clear, Cancel). // -// See https://git.sr.ht/~tslocum/cview/wiki/Form for an example. +// See https://gitlab.com/tslocum/cview/wiki/Form for an example. type Form struct { *Box diff --git a/frame.go b/frame.go index f560a60..e83da99 100644 --- a/frame.go +++ b/frame.go @@ -15,7 +15,7 @@ type frameText struct { // Frame is a wrapper which adds a border around another primitive. The top area // (header) and the bottom area (footer) may also contain text. // -// See https://git.sr.ht/~tslocum/cview/wiki/Frame for an example. +// See https://gitlab.com/tslocum/cview/wiki/Frame for an example. type Frame struct { *Box diff --git a/go.mod b/go.mod index 3ae8dd3..b1f42db 100644 --- a/go.mod +++ b/go.mod @@ -1,4 +1,4 @@ -module git.sr.ht/~tslocum/cview +module gitlab.com/tslocum/cview go 1.12 diff --git a/grid.go b/grid.go index 5c13197..c0e8e74 100644 --- a/grid.go +++ b/grid.go @@ -27,7 +27,7 @@ type gridItem struct { // and "l" keys) while the grid has focus and none of its contained primitives // do. // -// See https://git.sr.ht/~tslocum/cview/wiki/Grid for an example. +// See https://gitlab.com/tslocum/cview/wiki/Grid for an example. type Grid struct { *Box diff --git a/inputfield.go b/inputfield.go index 7f67497..6e8719f 100644 --- a/inputfield.go +++ b/inputfield.go @@ -29,7 +29,7 @@ import ( // - Ctrl-W: Delete the last word before the cursor. // - Ctrl-U: Delete the entire line. // -// See https://git.sr.ht/~tslocum/cview/wiki/InputField for an example. +// See https://gitlab.com/tslocum/cview/wiki/InputField for an example. type InputField struct { *Box diff --git a/list.go b/list.go index 155c951..b3dad8a 100644 --- a/list.go +++ b/list.go @@ -17,7 +17,7 @@ type listItem struct { // List displays rows of items, each of which can be selected. // -// See https://git.sr.ht/~tslocum/cview/wiki/List for an example. +// See https://gitlab.com/tslocum/cview/wiki/List for an example. type List struct { *Box diff --git a/modal.go b/modal.go index 6a563ad..d418677 100644 --- a/modal.go +++ b/modal.go @@ -8,7 +8,7 @@ import ( // for an immediate decision. It needs to have at least one button (added via // AddButtons()) or it will never disappear. // -// See https://git.sr.ht/~tslocum/cview/wiki/Modal for an example. +// See https://gitlab.com/tslocum/cview/wiki/Modal for an example. type Modal struct { *Box diff --git a/pages.go b/pages.go index 3d7ea89..c27fd28 100644 --- a/pages.go +++ b/pages.go @@ -16,7 +16,7 @@ type page struct { // root primitive. It allows to easily switch the visibility of the contained // primitives. // -// See https://git.sr.ht/~tslocum/cview/wiki/Pages for an example. +// See https://gitlab.com/tslocum/cview/wiki/Pages for an example. type Pages struct { *Box diff --git a/table.go b/table.go index a765de0..cfc80c1 100644 --- a/table.go +++ b/table.go @@ -208,7 +208,7 @@ func (c *TableCell) GetLastPosition() (x, y, width int) { // // Use SetInputCapture() to override or modify keyboard input. // -// See https://git.sr.ht/~tslocum/cview/wiki/Table for an example. +// See https://gitlab.com/tslocum/cview/wiki/Table for an example. type Table struct { *Box diff --git a/textview.go b/textview.go index 4a012c2..6fe7399 100644 --- a/textview.go +++ b/textview.go @@ -88,7 +88,7 @@ type textViewIndex struct { // The ScrollToHighlight() function can be used to jump to the currently // highlighted region once when the text view is drawn the next time. // -// See https://git.sr.ht/~tslocum/cview/wiki/TextView for an example. +// See https://gitlab.com/tslocum/cview/wiki/TextView for an example. type TextView struct { sync.Mutex *Box diff --git a/treeview.go b/treeview.go index 4fc0325..ef812da 100644 --- a/treeview.go +++ b/treeview.go @@ -238,7 +238,7 @@ func (n *TreeNode) SetIndent(indent int) *TreeNode { // using SetPrefixes() for different levels, for example to display hierarchical // bullet point lists. // -// See https://git.sr.ht/~tslocum/cview/wiki/TreeView for an example. +// See https://gitlab.com/tslocum/cview/wiki/TreeView for an example. type TreeView struct { *Box