Skip to content

Commit

Permalink
Change import path to go.mau.fi/tcell
Browse files Browse the repository at this point in the history
  • Loading branch information
tulir authored and n-peugnet committed Nov 9, 2022
1 parent 68adf46 commit c1778dd
Show file tree
Hide file tree
Showing 69 changed files with 124 additions and 116 deletions.
2 changes: 1 addition & 1 deletion TUTORIAL.md
Original file line number Diff line number Diff line change
Expand Up @@ -172,7 +172,7 @@ import (
"fmt"
"log"

"github.com/gdamore/tcell/v2"
"go.mau.fi/tcell"
)

func drawText(s tcell.Screen, x1, y1, x2, y2 int, style tcell.Style, text string) {
Expand Down
3 changes: 2 additions & 1 deletion _demos/beep.go
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
//go:build ignore
// +build ignore

// Copyright 2019 The TCell Authors
Expand All @@ -22,7 +23,7 @@ import (
"os"
"time"

"github.com/gdamore/tcell/v2"
"go.mau.fi/tcell"
)

func main() {
Expand Down
5 changes: 3 additions & 2 deletions _demos/boxes.go
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
//go:build ignore
// +build ignore

// Copyright 2015 The TCell Authors
Expand All @@ -24,7 +25,7 @@ import (
"os"
"time"

"github.com/gdamore/tcell/v2"
"go.mau.fi/tcell"
)

func makebox(s tcell.Screen) {
Expand All @@ -46,7 +47,7 @@ func makebox(s tcell.Screen) {
rgb := tcell.NewHexColor(int32(rand.Int() & 0xffffff))
st = st.Background(rgb)
} else if s.Colors() > 1 {
st = st.Background(tcell.Color(rand.Int() % s.Colors()) | tcell.ColorValid)
st = st.Background(tcell.Color(rand.Int()%s.Colors()) | tcell.ColorValid)
} else {
st = st.Reverse(rand.Int()%2 == 0)
gl = glyphs[rand.Int()%len(glyphs)]
Expand Down
3 changes: 2 additions & 1 deletion _demos/colors.go
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
//go:build ignore
// +build ignore

// Copyright 2019 The TCell Authors
Expand Down Expand Up @@ -28,7 +29,7 @@ import (
"os"
"time"

"github.com/gdamore/tcell/v2"
"go.mau.fi/tcell"
)

var red = int32(rand.Int() % 256)
Expand Down
3 changes: 2 additions & 1 deletion _demos/cursors.go
Original file line number Diff line number Diff line change
Expand Up @@ -20,8 +20,9 @@ package main

import (
"fmt"
"github.com/gdamore/tcell/v2"
"os"

"go.mau.fi/tcell"
)

func main() {
Expand Down
5 changes: 3 additions & 2 deletions _demos/hello_world.go
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
//go:build ignore
// +build ignore

// Copyright 2020 The TCell Authors
Expand All @@ -20,8 +21,8 @@ import (
"fmt"
"os"

"github.com/gdamore/tcell/v2"
"github.com/gdamore/tcell/v2/encoding"
"go.mau.fi/tcell"
"go.mau.fi/tcell/encoding"

"github.com/mattn/go-runewidth"
)
Expand Down
4 changes: 2 additions & 2 deletions _demos/mouse.go
Original file line number Diff line number Diff line change
Expand Up @@ -26,8 +26,8 @@ import (
"os/exec"
"runtime"

"github.com/gdamore/tcell/v2"
"github.com/gdamore/tcell/v2/encoding"
"go.mau.fi/tcell"
"go.mau.fi/tcell/encoding"

"github.com/mattn/go-runewidth"
)
Expand Down
5 changes: 3 additions & 2 deletions _demos/unicode.go
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
//go:build ignore
// +build ignore

// Copyright 2019 The TCell Authors
Expand All @@ -22,9 +23,9 @@ import (
"fmt"
"os"

"github.com/gdamore/tcell/v2"
"github.com/gdamore/tcell/v2/encoding"
runewidth "github.com/mattn/go-runewidth"
"go.mau.fi/tcell"
"go.mau.fi/tcell/encoding"
)

var row = 0
Expand Down
2 changes: 1 addition & 1 deletion encoding/all.go
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ package encoding

import (
"github.com/gdamore/encoding"
"github.com/gdamore/tcell/v2"
"go.mau.fi/tcell"

"golang.org/x/text/encoding/charmap"
"golang.org/x/text/encoding/japanese"
Expand Down
2 changes: 1 addition & 1 deletion errors.go
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ import (
"errors"
"time"

"github.com/gdamore/tcell/v2/terminfo"
"go.mau.fi/tcell/terminfo"
)

var (
Expand Down
2 changes: 1 addition & 1 deletion go.mod
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
module github.com/gdamore/tcell/v2
module go.mau.fi/tcell

go 1.12

Expand Down
2 changes: 1 addition & 1 deletion termbox/compat.go
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ package termbox
import (
"errors"

"github.com/gdamore/tcell/v2"
"go.mau.fi/tcell"
)

var screen tcell.Screen
Expand Down
2 changes: 1 addition & 1 deletion terminfo/a/aixterm/term.go
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

package aixterm

import "github.com/gdamore/tcell/v2/terminfo"
import "go.mau.fi/tcell/terminfo"

func init() {

Expand Down
2 changes: 1 addition & 1 deletion terminfo/a/alacritty/term.go
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

package alacritty

import "github.com/gdamore/tcell/v2/terminfo"
import "go.mau.fi/tcell/terminfo"

func init() {

Expand Down
2 changes: 1 addition & 1 deletion terminfo/a/ansi/term.go
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

package ansi

import "github.com/gdamore/tcell/v2/terminfo"
import "go.mau.fi/tcell/terminfo"

func init() {

Expand Down
2 changes: 1 addition & 1 deletion terminfo/b/beterm/term.go
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

package beterm

import "github.com/gdamore/tcell/v2/terminfo"
import "go.mau.fi/tcell/terminfo"

func init() {

Expand Down
10 changes: 5 additions & 5 deletions terminfo/base/base.go
Original file line number Diff line number Diff line change
Expand Up @@ -24,9 +24,9 @@ package base
import (
// The following imports just register themselves --
// thse are the terminal types we aggregate in this package.
_ "github.com/gdamore/tcell/v2/terminfo/a/ansi"
_ "github.com/gdamore/tcell/v2/terminfo/v/vt100"
_ "github.com/gdamore/tcell/v2/terminfo/v/vt102"
_ "github.com/gdamore/tcell/v2/terminfo/v/vt220"
_ "github.com/gdamore/tcell/v2/terminfo/x/xterm"
_ "go.mau.fi/tcell/terminfo/a/ansi"
_ "go.mau.fi/tcell/terminfo/v/vt100"
_ "go.mau.fi/tcell/terminfo/v/vt102"
_ "go.mau.fi/tcell/terminfo/v/vt220"
_ "go.mau.fi/tcell/terminfo/x/xterm"
)
2 changes: 1 addition & 1 deletion terminfo/c/cygwin/term.go
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

package cygwin

import "github.com/gdamore/tcell/v2/terminfo"
import "go.mau.fi/tcell/terminfo"

func init() {

Expand Down
2 changes: 1 addition & 1 deletion terminfo/d/dtterm/term.go
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

package dtterm

import "github.com/gdamore/tcell/v2/terminfo"
import "go.mau.fi/tcell/terminfo"

func init() {

Expand Down
2 changes: 1 addition & 1 deletion terminfo/dynamic/dynamic.go
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ import (
"strconv"
"strings"

"github.com/gdamore/tcell/v2/terminfo"
"go.mau.fi/tcell/terminfo"
)

type termcap struct {
Expand Down
2 changes: 1 addition & 1 deletion terminfo/e/emacs/term.go
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

package emacs

import "github.com/gdamore/tcell/v2/terminfo"
import "go.mau.fi/tcell/terminfo"

func init() {

Expand Down
68 changes: 34 additions & 34 deletions terminfo/extended/extended.go
Original file line number Diff line number Diff line change
Expand Up @@ -21,38 +21,38 @@ package extended
import (
// The following imports just register themselves --
// these are the terminal types we aggregate in this package.
_ "github.com/gdamore/tcell/v2/terminfo/a/aixterm"
_ "github.com/gdamore/tcell/v2/terminfo/a/alacritty"
_ "github.com/gdamore/tcell/v2/terminfo/a/ansi"
_ "github.com/gdamore/tcell/v2/terminfo/b/beterm"
_ "github.com/gdamore/tcell/v2/terminfo/c/cygwin"
_ "github.com/gdamore/tcell/v2/terminfo/d/dtterm"
_ "github.com/gdamore/tcell/v2/terminfo/e/emacs"
_ "github.com/gdamore/tcell/v2/terminfo/f/foot"
_ "github.com/gdamore/tcell/v2/terminfo/g/gnome"
_ "github.com/gdamore/tcell/v2/terminfo/h/hpterm"
_ "github.com/gdamore/tcell/v2/terminfo/k/konsole"
_ "github.com/gdamore/tcell/v2/terminfo/k/kterm"
_ "github.com/gdamore/tcell/v2/terminfo/l/linux"
_ "github.com/gdamore/tcell/v2/terminfo/p/pcansi"
_ "github.com/gdamore/tcell/v2/terminfo/r/rxvt"
_ "github.com/gdamore/tcell/v2/terminfo/s/screen"
_ "github.com/gdamore/tcell/v2/terminfo/s/simpleterm"
_ "github.com/gdamore/tcell/v2/terminfo/s/sun"
_ "github.com/gdamore/tcell/v2/terminfo/t/termite"
_ "github.com/gdamore/tcell/v2/terminfo/t/tmux"
_ "github.com/gdamore/tcell/v2/terminfo/v/vt100"
_ "github.com/gdamore/tcell/v2/terminfo/v/vt102"
_ "github.com/gdamore/tcell/v2/terminfo/v/vt220"
_ "github.com/gdamore/tcell/v2/terminfo/v/vt320"
_ "github.com/gdamore/tcell/v2/terminfo/v/vt400"
_ "github.com/gdamore/tcell/v2/terminfo/v/vt420"
_ "github.com/gdamore/tcell/v2/terminfo/v/vt52"
_ "github.com/gdamore/tcell/v2/terminfo/w/wy50"
_ "github.com/gdamore/tcell/v2/terminfo/w/wy60"
_ "github.com/gdamore/tcell/v2/terminfo/w/wy99_ansi"
_ "github.com/gdamore/tcell/v2/terminfo/x/xfce"
_ "github.com/gdamore/tcell/v2/terminfo/x/xterm"
_ "github.com/gdamore/tcell/v2/terminfo/x/xterm_kitty"
_ "github.com/gdamore/tcell/v2/terminfo/x/xterm_termite"
_ "go.mau.fi/tcell/terminfo/a/aixterm"
_ "go.mau.fi/tcell/terminfo/a/alacritty"
_ "go.mau.fi/tcell/terminfo/a/ansi"
_ "go.mau.fi/tcell/terminfo/b/beterm"
_ "go.mau.fi/tcell/terminfo/c/cygwin"
_ "go.mau.fi/tcell/terminfo/d/dtterm"
_ "go.mau.fi/tcell/terminfo/e/emacs"
_ "go.mau.fi/tcell/terminfo/f/foot"
_ "go.mau.fi/tcell/terminfo/g/gnome"
_ "go.mau.fi/tcell/terminfo/h/hpterm"
_ "go.mau.fi/tcell/terminfo/k/konsole"
_ "go.mau.fi/tcell/terminfo/k/kterm"
_ "go.mau.fi/tcell/terminfo/l/linux"
_ "go.mau.fi/tcell/terminfo/p/pcansi"
_ "go.mau.fi/tcell/terminfo/r/rxvt"
_ "go.mau.fi/tcell/terminfo/s/screen"
_ "go.mau.fi/tcell/terminfo/s/simpleterm"
_ "go.mau.fi/tcell/terminfo/s/sun"
_ "go.mau.fi/tcell/terminfo/t/termite"
_ "go.mau.fi/tcell/terminfo/t/tmux"
_ "go.mau.fi/tcell/terminfo/v/vt100"
_ "go.mau.fi/tcell/terminfo/v/vt102"
_ "go.mau.fi/tcell/terminfo/v/vt220"
_ "go.mau.fi/tcell/terminfo/v/vt320"
_ "go.mau.fi/tcell/terminfo/v/vt400"
_ "go.mau.fi/tcell/terminfo/v/vt420"
_ "go.mau.fi/tcell/terminfo/v/vt52"
_ "go.mau.fi/tcell/terminfo/w/wy50"
_ "go.mau.fi/tcell/terminfo/w/wy60"
_ "go.mau.fi/tcell/terminfo/w/wy99_ansi"
_ "go.mau.fi/tcell/terminfo/x/xfce"
_ "go.mau.fi/tcell/terminfo/x/xterm"
_ "go.mau.fi/tcell/terminfo/x/xterm_kitty"
_ "go.mau.fi/tcell/terminfo/x/xterm_termite"
)
2 changes: 1 addition & 1 deletion terminfo/f/foot/foot.go
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

package foot

import "github.com/gdamore/tcell/v2/terminfo"
import "go.mau.fi/tcell/terminfo"

func init() {

Expand Down
2 changes: 1 addition & 1 deletion terminfo/g/gnome/term.go
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

package gnome

import "github.com/gdamore/tcell/v2/terminfo"
import "go.mau.fi/tcell/terminfo"

func init() {

Expand Down
2 changes: 1 addition & 1 deletion terminfo/h/hpterm/term.go
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

package hpterm

import "github.com/gdamore/tcell/v2/terminfo"
import "go.mau.fi/tcell/terminfo"

func init() {

Expand Down
2 changes: 1 addition & 1 deletion terminfo/k/konsole/term.go
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

package konsole

import "github.com/gdamore/tcell/v2/terminfo"
import "go.mau.fi/tcell/terminfo"

func init() {

Expand Down
2 changes: 1 addition & 1 deletion terminfo/k/kterm/term.go
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

package kterm

import "github.com/gdamore/tcell/v2/terminfo"
import "go.mau.fi/tcell/terminfo"

func init() {

Expand Down
2 changes: 1 addition & 1 deletion terminfo/l/linux/term.go
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

package linux

import "github.com/gdamore/tcell/v2/terminfo"
import "go.mau.fi/tcell/terminfo"

func init() {

Expand Down
4 changes: 2 additions & 2 deletions terminfo/mkinfo.go
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ import (
"strconv"
"strings"

"github.com/gdamore/tcell/v2/terminfo"
"go.mau.fi/tcell/terminfo"
)

type termcap struct {
Expand Down Expand Up @@ -623,7 +623,7 @@ func dotGoInfo(w io.Writer, terms []*TData) {
}

var packname = ""
var tipackname = "github.com/gdamore/tcell/v2/terminfo"
var tipackname = "go.mau.fi/tcell/terminfo"

func dotGoFile(fname string, terms []*TData) error {
w := os.Stdout
Expand Down
2 changes: 1 addition & 1 deletion terminfo/p/pcansi/term.go
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

package pcansi

import "github.com/gdamore/tcell/v2/terminfo"
import "go.mau.fi/tcell/terminfo"

func init() {

Expand Down
2 changes: 1 addition & 1 deletion terminfo/r/rxvt/term.go
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

package rxvt

import "github.com/gdamore/tcell/v2/terminfo"
import "go.mau.fi/tcell/terminfo"

func init() {

Expand Down

0 comments on commit c1778dd

Please sign in to comment.