Skip to content

Commit

Permalink
Fix import path
Browse files Browse the repository at this point in the history
  • Loading branch information
zyedidia committed Feb 12, 2024
1 parent 2db011d commit f797bbe
Show file tree
Hide file tree
Showing 11 changed files with 32 additions and 34 deletions.
18 changes: 9 additions & 9 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,18 +6,18 @@ _Tcell_ is a _Go_ package that provides a cell based view for text terminals, li
It was inspired by _termbox_, but includes many additional improvements.

[![Stand With Ukraine](https://raw.githubusercontent.com/vshymanskyy/StandWithUkraine/main/badges/StandWithUkraine.svg)](https://stand-with-ukraine.pp.ua)
[![Linux](https://img.shields.io/github/actions/workflow/status/gdamore/tcell/linux.yml?branch=main&logoColor=grey&logo=linux&label=)](https://github.com/gdamore/tcell/actions/workflows/linux.yml)
[![Windows](https://img.shields.io/github/actions/workflow/status/gdamore/tcell/windows.yml?branch=main&logoColor=grey&logo=windows&label=)](https://github.com/gdamore/tcell/actions/workflows/windows.yml)
[![Apache License](https://img.shields.io/github/license/gdamore/tcell.svg?logoColor=silver&logo=opensourceinitiative&color=blue&label=)](https://github.com/gdamore/tcell/blob/master/LICENSE)
[![Docs](https://img.shields.io/badge/godoc-reference-blue.svg?label=&logo=go)](https://pkg.go.dev/github.com/gdamore/tcell/v2)
[![Linux](https://img.shields.io/github/actions/workflow/status/micro-editor/tcell/linux.yml?branch=main&logoColor=grey&logo=linux&label=)](https://github.com/micro-editor/tcell/actions/workflows/linux.yml)
[![Windows](https://img.shields.io/github/actions/workflow/status/micro-editor/tcell/windows.yml?branch=main&logoColor=grey&logo=windows&label=)](https://github.com/micro-editor/tcell/actions/workflows/windows.yml)
[![Apache License](https://img.shields.io/github/license/micro-editor/tcell.svg?logoColor=silver&logo=opensourceinitiative&color=blue&label=)](https://github.com/micro-editor/tcell/blob/master/LICENSE)
[![Docs](https://img.shields.io/badge/godoc-reference-blue.svg?label=&logo=go)](https://pkg.go.dev/github.com/micro-editor/tcell/v2)
[![Discord](https://img.shields.io/discord/639503822733180969?label=&logo=discord)](https://discord.gg/urTTxDN)
[![Coverage](https://img.shields.io/codecov/c/github/gdamore/tcell?logoColor=grey&logo=codecov&label=)](https://codecov.io/gh/gdamore/tcell)
[![Go Report Card](https://goreportcard.com/badge/github.com/gdamore/tcell/v2)](https://goreportcard.com/report/github.com/gdamore/tcell/v2)
[![Coverage](https://img.shields.io/codecov/c/github/micro-editor/tcell?logoColor=grey&logo=codecov&label=)](https://codecov.io/gh/micro-editor/tcell)
[![Go Report Card](https://goreportcard.com/badge/github.com/micro-editor/tcell/v2)](https://goreportcard.com/report/github.com/micro-editor/tcell/v2)

Please see [here](UKRAINE.md) for an important message for the people of Russia.

NOTE: This is version 2 of _Tcell_. There are breaking changes relative to version 1.
Version 1.x remains available using the import `github.com/gdamore/tcell`.
Version 1.x remains available using the import `github.com/micro-editor/tcell`.

## Tutorial

Expand Down Expand Up @@ -135,7 +135,7 @@ fired up with cmd.exe or PowerShell works fine however.)
## _Termbox_ Compatibility

A compatibility layer for _termbox_ is provided in the `compat` directory.
To use it, try importing `github.com/gdamore/tcell/termbox` instead.
To use it, try importing `github.com/micro-editor/tcell/termbox` instead.
Most _termbox-go_ programs will probably work without further modification.

## Working With Unicode
Expand Down Expand Up @@ -285,4 +285,4 @@ please let me know. PRs are especially welcome.
_Tcell_ is absolutely free, but if you want to obtain commercial, professional support, there are options.

- [TideLift](https://tidelift.com/) subscriptions include support for _Tcell_, as well as many other open source packages.
- [Staysail Systems Inc.](mailto:[email protected]) offers direct support, and custom development around _Tcell_ on an hourly basis.
- [Staysail Systems Inc.](mailto:[email protected]) offers direct support, and custom development around _Tcell_ on an hourly basis.
2 changes: 1 addition & 1 deletion _demos/cursors.go
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ package main

import (
"fmt"
"github.com/gdamore/tcell/v2"
"github.com/micro-editor/tcell/v2"
"os"
)

Expand Down
6 changes: 3 additions & 3 deletions _demos/hyperlink.go
Original file line number Diff line number Diff line change
Expand Up @@ -21,8 +21,8 @@ import (
"fmt"
"os"

"github.com/gdamore/tcell/v2"
"github.com/gdamore/tcell/v2/encoding"
"github.com/micro-editor/tcell/v2"
"github.com/micro-editor/tcell/v2/encoding"

"github.com/mattn/go-runewidth"
)
Expand All @@ -48,7 +48,7 @@ func displayDemo(s tcell.Screen) {
style := tcell.StyleDefault
x := (w - 55) / 2
x = emitStr(s, x, h/2, style, "Please visit the ")
x = emitStr(s, x, h/2, style.Url("https://github.com/gdamore/tcell"), "GitHub Repository")
x = emitStr(s, x, h/2, style.Url("https://github.com/micro-editor/tcell"), "GitHub Repository")
emitStr(s, x, h/2, style, " for the source code.")
style = tcell.StyleDefault.Foreground(tcell.ColorCadetBlue.TrueColor()).Background(tcell.ColorWhite)
emitStr(s, (w-18)/2, h/2+2, style, "Press ESC to exit.")
Expand Down
4 changes: 2 additions & 2 deletions _demos/setsize.go
Original file line number Diff line number Diff line change
Expand Up @@ -21,8 +21,8 @@ import (
"fmt"
"os"

"github.com/gdamore/tcell/v2"
"github.com/gdamore/tcell/v2/encoding"
"github.com/micro-editor/tcell/v2"
"github.com/micro-editor/tcell/v2/encoding"

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

"github.com/gdamore/tcell/v2"
"github.com/gdamore/tcell/v2/encoding"
"github.com/micro-editor/tcell/v2"
"github.com/micro-editor/tcell/v2/encoding"

"github.com/mattn/go-runewidth"
"github.com/mattn/go-sixel"
Expand Down
2 changes: 1 addition & 1 deletion encoding/encoding_init_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ package encoding
import (
"testing"

"github.com/gdamore/tcell/v2"
"github.com/micro-editor/tcell/v2"
)

func TestGBK(t *testing.T) {
Expand Down
1 change: 0 additions & 1 deletion go.mod
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,6 @@ go 1.12

require (
github.com/gdamore/encoding v1.0.0
github.com/gdamore/tcell/v2 v2.7.0
github.com/lucasb-eyer/go-colorful v1.2.0
github.com/mattn/go-runewidth v0.0.15
golang.org/x/sys v0.15.0
Expand Down
5 changes: 1 addition & 4 deletions go.sum
Original file line number Diff line number Diff line change
@@ -1,14 +1,11 @@
github.com/gdamore/encoding v1.0.0 h1:+7OoQ1Bc6eTm5niUzBa0Ctsh6JbMW6Ra+YNuAtDBdko=
github.com/gdamore/encoding v1.0.0/go.mod h1:alR0ol34c49FCSBLjhosxzcPHQbf2trDkoo5dl+VrEg=
github.com/gdamore/tcell/v2 v2.7.0 h1:I5LiGTQuwrysAt1KS9wg1yFfOI3arI3ucFrxtd/xqaA=
github.com/gdamore/tcell/v2 v2.7.0/go.mod h1:hl/KtAANGBecfIPxk+FzKvThTqI84oplgbPEmVX60b8=
github.com/lucasb-eyer/go-colorful v1.2.0 h1:1nnpGOrhyZZuNyfu1QjKiUICQ74+3FNCN69Aj6K7nkY=
github.com/lucasb-eyer/go-colorful v1.2.0/go.mod h1:R4dSotOR9KMtayYi1e77YzuveK+i7ruzyGqttikkLy0=
github.com/mattn/go-runewidth v0.0.15 h1:UNAjwbU9l54TA3KzvqLGxwWjHmMgBUVhBiTjelZgg3U=
github.com/mattn/go-runewidth v0.0.15/go.mod h1:Jdepj2loyihRzMpdS35Xk/zdY8IAYHsh153qUoGf23w=
github.com/rivo/uniseg v0.2.0 h1:S1pD9weZBuJdFmowNwbpi7BJ8TNftyUImj/0WQi72jY=
github.com/rivo/uniseg v0.2.0/go.mod h1:J6wj4VEh+S6ZtnVlnTBMWIodfgj8LQOQFoIToxlJtxc=
github.com/rivo/uniseg v0.4.3 h1:utMvzDsuh3suAEnhH0RdHmoPbU648o6CvXxTx4SBMOw=
github.com/rivo/uniseg v0.4.3/go.mod h1:FN3SvrM+Zdj16jyLfmOkMNblXMcoc8DfTHruCPUcx88=
github.com/yuin/goldmark v1.4.13/go.mod h1:6yULJ656Px+3vBD8DxQVa3kxgyrAnzto9xy5taEt/CY=
golang.org/x/crypto v0.0.0-20190308221718-c2843e01d9a2/go.mod h1:djNgcEr1/C05ACkg1iLfiJU5Ep61QUkGW8qpdssI0+w=
golang.org/x/crypto v0.0.0-20210921155107-089bfa567519/go.mod h1:GvvjBRRGRdwPK5ydBHafDWAxML/pGHZbMvKqRZ5+Abc=
Expand Down
20 changes: 11 additions & 9 deletions screen.go
Original file line number Diff line number Diff line change
Expand Up @@ -245,15 +245,6 @@ type Screen interface {
// Resume resumes after Suspend().
Resume() error

// GetClipboard sends an OSC 52 escape sequence to the tty requesting
// that the clipboard contents be sent in base64 encoding.
GetClipboard(string) ([]byte, error)

// SetClipboard sends an OSC 52 escape sequence to the tty with a base64
// encoded string requesting that the string be decoded and placed into
// the system clipboard.
SetClipboard(string, []byte) error

// Beep attempts to sound an OS-dependent audible alert and returns an error
// when unsuccessful.
Beep() error
Expand All @@ -267,6 +258,15 @@ type Screen interface {
// Also, some emulators can support this but may have it disabled by default.
SetSize(int, int)

// GetClipboard sends an OSC 52 escape sequence to the tty requesting
// that the clipboard contents be sent in base64 encoding.
GetClipboard(string) ([]byte, error)

// SetClipboard sends an OSC 52 escape sequence to the tty with a base64
// encoded string requesting that the string be decoded and placed into
// the system clipboard.
SetClipboard(string, []byte) error

// LockRegion sets or unsets a lock on a region of cells. A lock on a
// cell prevents the cell from being redrawn.
LockRegion(x, y, width, height int, lock bool)
Expand Down Expand Up @@ -343,6 +343,8 @@ type screenImpl interface {
Resume() error
Beep() error
SetSize(int, int)
GetClipboard(string) ([]byte, error)
SetClipboard(string, []byte) error
Tty() (Tty, bool)

// Following methods are not part of the Screen api, but are used for interaction with
Expand Down
2 changes: 1 addition & 1 deletion terminfo/a/alacritty/direct.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 "github.com/micro-editor/tcell/v2/terminfo"

func init() {

Expand Down
2 changes: 1 addition & 1 deletion wscreen.go
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ package tcell

import (
"errors"
"github.com/gdamore/tcell/v2/terminfo"
"github.com/micro-editor/tcell/v2/terminfo"
"strings"
"sync"
"syscall/js"
Expand Down

0 comments on commit f797bbe

Please sign in to comment.